/* ═══════════════════════════════════════════════════════════════════
   PARTNEX — v19 UI enhancements (loaded after app.css)
   Same orange colour scheme, light + dark. Sections:
   1. tokens  2. sticky header  3. product / buy page  4. general polish
   5. dark-mode fixes  6. desktop / large screens
   ═══════════════════════════════════════════════════════════════════ */

/* 1 ─ tokens */
:root {
  --r-xl: 24px;
  --shadow-card: 0 1px 2px rgba(15,23,42, .04), 0 8px 24px rgba(15,23,42, .06);
  --shadow-pop: 0 14px 34px rgba(15,23,42, .16);
  --ring: 0 0 0 4px rgba(124,92,255, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
html[data-theme="dark"] {
  --shadow-card: 0 1px 0 rgba(255,255,255, .03) inset, 0 10px 28px rgba(0,0,0, .35);
  --shadow-pop: 0 16px 40px rgba(0,0,0, .55);
}

/* 2 ─ sticky header: profile · name · balance */
.top-header {
  position: sticky; top: 0; z-index: 120;
  padding: 10px 14px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 2px 10px rgba(124,92,255, .06);
}
.top-header .header-row { gap: 10px; }
.hdr-user {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
  background: none; border: 0; padding: 2px 6px 2px 0; margin: 0; cursor: pointer;
  text-align: left; font-family: inherit; color: var(--text); border-radius: 999px;
  transition: transform .15s var(--ease);
}
.hdr-user:active { transform: scale(.97); }
.hdr-avatar {
  position: relative; width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 16px;
  box-shadow: 0 0 0 2px var(--bg2), 0 0 0 4px rgba(124,92,255, .45);
}
.hdr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hdr-user-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.hdr-greet { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-name { font-size: 15px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.top-header .header-actions { gap: 8px; }
.hdr-balance {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 5px 0 5px;
  border: 0; border-radius: 999px; cursor: pointer; font-family: inherit; font-weight: 800;
  background: linear-gradient(135deg, #22d3ee, #7c5cff); color: #fff;
  box-shadow: 0 6px 16px rgba(124,92,255, .32), inset 0 1px 0 rgba(255,255,255, .25);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), opacity .2s var(--ease), max-width .25s var(--ease);
}
/* Hide balance when user scrolls (search pins into header) */
body.search-pinned .hdr-balance,
.top-header.search-in-header .hdr-balance {
  opacity: 0; max-width: 0; padding: 0; margin: 0; overflow: hidden; pointer-events: none;
}
.hdr-balance:active { transform: scale(.95); box-shadow: 0 3px 10px rgba(245,184,61, .3); }
.hdr-bal-ico {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; background: rgba(255,255,255, .22);
}
.hdr-bal-text { font-size: 14px; letter-spacing: -.2px; white-space: nowrap; font-variant-numeric: tabular-nums; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; }
.hdr-bal-text .bal-sym { margin-right: 2px; opacity: .92; }
.hdr-bal-plus {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; background: #fff; color: var(--primary2);
}
.hdr-icon {
  width: 40px; height: 40px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--card-border); color: var(--text);
}
.hdr-icon .notif-badge { top: 4px; right: 4px; border-color: var(--card); }
@media (max-width: 360px) {
  .hdr-greet { display: none; }
  .hdr-avatar { width: 36px; height: 36px; }
  .hdr-bal-ico { display: none; }
  .hdr-balance { padding-left: 12px; }
}

/* 3 ─ product page = buy page (details, options, quantity and summary on the page; no popup) */
.pd-page { padding-bottom: calc(110px + var(--safe-bottom)); }
.pd-topbar { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; }
.pd-page .pd-back {
  display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 0 14px 0 8px;
  border-radius: 13px; border: 1px solid var(--card-border); background: var(--card); color: var(--text);
  font-weight: 800; font-size: 13px; box-shadow: var(--shadow-card);
}
.pd-page .pd-back:active { transform: scale(.96); }
.pd-page .pd-chip { border-radius: 999px; font-size: 11.5px; padding: 6px 12px; }
html[data-theme="dark"] .pd-page .pd-chip { background: rgba(245,184,61, .14); border-color: rgba(245,184,61, .3); color: #ffd98a; }
.pd-page .pd-fav {
  position: static; width: 40px; height: 40px; border-radius: 13px;
  background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--shadow-card);
}
.pd-hero-card {
  border-radius: var(--r-xl); overflow: hidden; margin-bottom: 12px;
  border: 1px solid var(--card-border); box-shadow: var(--shadow-card); isolation: isolate;
}
.pd-page .pd-hero { height: 220px; }
.pd-page .pd-hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 70px; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0, .28), transparent);
}
.pd-page .pd-hero .pd-tile { width: 96px; height: 96px; border-radius: 22px; }
.pd-page .pd-stock {
  z-index: 2; border-radius: 999px; padding: 6px 12px; font-size: 12px;
  background: rgba(17,24,39, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pd-page .pd-stock.out { background: rgba(225,29,72, .9); }
.pd-page .card.pd-card { padding: 16px; margin-bottom: 12px; border-radius: 20px !important; border: 1px solid var(--card-border); box-shadow: var(--shadow-card); }
.pd-head .pd-name { font-size: 21px; font-weight: 900; letter-spacing: -.35px; line-height: 1.2; color: var(--text); }
.pd-sub { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 5px; }
.pd-sub:empty { display: none; }
.pd-price-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--card-border);
}
.pd-price-lbl { font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.pd-price { font-size: 26px; font-weight: 900; color: var(--primary); line-height: 1.1; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.pd-price .disc-old { font-size: 12px; letter-spacing: 0; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pd-tags .gp-plan { font-size: 11px; border-radius: 999px; padding: 4px 10px; }
.pd-tags .gp-stock { font-size: 12px; padding: 3px 4px; }
.pd-sec-title {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-left: 11px; margin-bottom: 12px;
  font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--text);
}
.pd-sec-title::before { content: ''; position: absolute; left: 0; top: 1px; bottom: 1px; width: 4px; border-radius: 4px; background: var(--grad); }
.pd-sec-aside { text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pd-sec-aside b { color: var(--primary); }
.pd-page .ps-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.pd-page .ps-chip, .pd-page .ps-deliv { text-align: left; min-height: 52px; cursor: pointer; font-family: inherit; }
.pd-page .ps-chip .ps-chip-price { color: var(--primary); opacity: 1; font-size: 12px; margin-top: 3px; }
.pd-page .ps-chip.selected { position: relative; }
.pd-page .ps-chip.selected::after {
  content: '✓'; position: absolute; top: 6px; right: 8px; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900;
  background: var(--grad); color: #fff;
}
.pd-page .qb-stepper { height: 52px; border: 1px solid var(--card-border); border-radius: 16px; }
.pd-page .qb-stepper button { width: 52px; height: 42px; border-radius: 12px; font-weight: 700; }
.pd-page .qb-stepper button:active { background: rgba(245,184,61, .12); }
.pd-page .qb-stepper input { font-size: 18px; font-variant-numeric: tabular-nums; }
.pd-page .qb-chips { gap: 8px; padding-bottom: 2px; }
.pd-page .qb-chips .qty-quick-btn, .pd-page .qb-chips .format-btn {
  min-width: 52px; padding: 8px 14px; border-radius: 12px; font-weight: 800; font-size: 12.5px;
  border: 1.5px solid var(--card-border); background: var(--card); color: var(--text); cursor: pointer; font-family: inherit;
}
.pd-page .ps-fmt .format-btn { min-width: 76px; }
.pd-desc { margin-bottom: 12px; color: var(--text); opacity: .9; }
.pd-info-list { border-radius: 14px; background: var(--surface); padding: 2px 12px; }
.pd-info-list .pd-info-row { padding: 10px 0; }
.pd-info-row span:last-child { font-weight: 700; color: var(--text); text-align: right; margin-left: auto; }
.pd-feats { display: grid; gap: 9px; margin-top: 14px; }
.pd-feat { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--text); }
.pd-feat svg { flex-shrink: 0; width: 20px; height: 20px; padding: 3px; border-radius: 50%; color: var(--success); background: rgba(22,163,74, .12); }
.pd-summary .qb-line { padding: 6px 0; font-size: 13px; }
.pd-sum-total { margin-top: 6px; padding-top: 12px !important; border-top: 1px dashed var(--card-border); }
.pd-sum-total b { font-size: 14px; color: var(--text); }
.pd-sum-total small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 1px; }
.pd-summary #ps-total { font-size: 21px; color: var(--primary); font-variant-numeric: tabular-nums; }
.pd-page .ps-field input { min-height: 48px; }

/* bottom buy bar — the bottom nav steps aside on the product page so nothing overlaps */
body.on-product .bottom-nav { transform: translateY(115%); }
body.on-product .support-launcher, body.on-product .support-backdrop { display: none !important; }
.bottom-nav { transition: transform .25s var(--ease); }
#page-product .pd-bar {
  left: 10px; right: 10px; bottom: calc(10px + var(--safe-bottom));
  padding: 10px 10px 10px 18px; gap: 12px; border-radius: 22px; z-index: 210;
  background: rgba(244,245,251, .94); border: 1px solid rgba(34,211,238, .3);
  box-shadow: 0 8px 22px rgba(124,92,255, .14);
}
html[data-theme="dark"] #page-product .pd-bar { background: rgba(11,13,23, .94); border-color: rgba(34,211,238,.22); }
.pd-bar-info { flex: 1; min-width: 0; }
.pd-bar-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pd-bar-top:empty, .pd-bar-top .pd-old:empty { display: none; }
#page-product .pd-total { font-size: 22px; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
#page-product .pd-buy {
  width: auto; min-width: 148px; height: 52px; margin: 0; padding: 0 22px;
  border-radius: 999px !important; font-size: 15px; font-weight: 900; letter-spacing: .1px;
  background: linear-gradient(135deg, #22d3ee, #7c5cff) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(124,92,255, .34);
  position: relative; overflow: hidden;
  transition: transform .15s ease, filter .15s ease, box-shadow .2s ease;
}
#page-product .pd-buy:active { transform: scale(.96); }
#page-product .pd-buy.is-loading { pointer-events: none; filter: saturate(.85); }
#page-product .pd-buy.is-success {
  background: linear-gradient(135deg, #34d399, #059669) !important;
  box-shadow: 0 8px 18px rgba(5,150,105, .35);
  animation: pdBuyPop .45s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes pdBuyPop { 0% { transform: scale(.92); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
#page-product .pd-buy .pd-buy-spin {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; display: inline-block; vertical-align: -2px; margin-right: 8px;
  animation: pdSpin .7s linear infinite;
}
@keyframes pdSpin { to { transform: rotate(360deg); } }
#page-product .pd-buy.need-funds { background: var(--text); color: var(--bg2); box-shadow: 0 8px 20px rgba(15,23,42, .25); }
#page-product .pd-buy:disabled { background: var(--surface); color: var(--muted); box-shadow: none; opacity: 1; }

/* 4 ─ general polish */
.page-content { padding: 12px 14px 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 10px; }
button:focus:not(:focus-visible) { outline: none; }
.card { border-color: var(--card-border); }
.section-head { margin: 4px 0 10px; }
.section-title { font-size: 15px; letter-spacing: -.2px; }
.cat-tabs, .qb-chips, .ps-chips { scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar, .qb-chips::-webkit-scrollbar { display: none; }
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, rgba(34,211,238, .18) 50%, var(--surface) 75%); background-size: 200% 100%; border-radius: 18px; margin-bottom: 10px; }
.grid-product .grid-product-buy, .product-row .buy-btn { box-shadow: 0 6px 14px rgba(124,92,255, .22); border-radius: 999px !important; }
.primary-btn { box-shadow: 0 8px 20px rgba(124,92,255, .25); border-radius: 999px; }
.pd-ico { display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:9px; flex-shrink:0; background:rgba(34,211,238,.22); color:#7c5cff; }
.pd-ico.blue { background:rgba(79,140,255,.14); color:#3b82f6; }
.pd-ico.teal { background:rgba(34,211,238,.28); color:#2f6f7e; }
.pd-ico.amber { background:rgba(245,158,11,.16); color:#d97706; }
.pd-info-row { display:flex; align-items:flex-start; gap:8px; }
.pd-info-k { color:var(--muted); font-size:12px; min-width:64px; }
.pd-info-v { flex:1; font-weight:700; font-size:12.5px; white-space:pre-wrap; word-break:break-word; }
.pd-page.ps2 .pd-card { padding:10px 12px; border-radius:14px; margin-bottom:8px; }
.pd-page.ps2 .pd-hero { height:168px; background: linear-gradient(160deg, #f4f5fb, #e6e1ff 70%, #fff) !important; }
.pd-page.ps2 .pd-hero > img {
  position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px);
  object-fit: contain; object-position: center; border-radius: 12px;
}
.pd-page.ps2 .pd-hero .pd-tile { width: 88px; height: 88px; border-radius: 18px; background: #fff; }
.pd-page.ps2 .pd-hero::after { display: none; }
.pd-page.ps2 .pd-name { font-size:16px; font-weight:800; letter-spacing:-.3px; }
.pd-page.ps2 .pd-sub { font-size:12px; margin-top:2px; }
.pd-page.ps2 .pd-price { font-size:20px; }
.pd-page.ps2 .pd-sec-title { font-size:12px; margin-bottom:8px; }
.pd-page.ps2 .ps-chips { gap:6px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.pd-page.ps2 .ps-chip { min-height:40px; padding:7px 10px !important; border-radius:12px !important; }
.pd-page.ps2 #ps-deliv.ps-chips { grid-template-columns: 1fr 1fr; gap:8px; }
.pd-page.ps2 .ps-deliv {
  min-height:0; padding:8px 10px !important; border-radius:12px !important;
  display:flex; align-items:center; gap:8px; width:100%;
}
.pd-page.ps2 .pd-summary .qb-line { font-size:12.5px; padding:4px 0; }
.pd-page.ps2 .pd-bar { padding:8px 12px; }
.pd-page.ps2 .pd-fmt-btn { padding:8px 10px; }
.pd-hero-card { margin-bottom:8px; border-radius:16px; overflow:hidden; }
.ps-deliv-ico-wrap {
  width:28px; height:28px; border-radius:8px; display:inline-flex; align-items:center; justify-content:center;
  background:rgba(34,211,238,.18); color:#7c5cff; flex-shrink:0;
}
.ps-deliv.selected .ps-deliv-ico-wrap { background:rgba(124,92,255,.22); color:#5a3fd6; }
.ps-deliv { display:flex; align-items:center; gap:8px; }
.ps-deliv-text { display:flex; flex-direction:column; align-items:flex-start; gap:0; line-height:1.15; min-width:0; }
.ps-deliv-text b { font-size:12.5px; font-weight:800; letter-spacing:-.1px; }
.ps-deliv-text small { font-weight:700; opacity:.72; font-size:11px; font-variant-numeric:tabular-nums; }
.oc-btn.claim { background:linear-gradient(135deg,#22d3ee,#7c5cff); color:#fff; border:none; text-decoration:none; }
.pd-feats { display:flex; flex-direction:column; gap:8px; margin-bottom:10px; }
.pd-feat { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:12px; background:rgba(230,225,255,.45); border:1px solid rgba(34,211,238,.18); font-size:13px; font-weight:650; line-height:1.35; }
html[data-theme="dark"] .pd-feat { background:rgba(34,211,238,.1); }
.primary-btn:disabled { box-shadow: none; }
.nav-item .nav-icon { transition: background .2s var(--ease), color .2s var(--ease), width .2s var(--ease); }
.nav-item.active .nav-icon { width: 44px; height: 28px; }
.nav-label { font-size: 10px; }
.nav-item.active .nav-label { color: var(--primary); }
.notif-sheet, .modal-sheet { box-shadow: var(--shadow-pop); }
.profile-toggles { flex-wrap: wrap; }
#cur-toggle-row .currency-toggle { margin-top: 2px; }
.toast { font-weight: 700; }
@media (hover: hover) {
  .grid-product:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop) !important; }
  .product-row:hover { border-color: rgba(245,184,61, .4); }
  .hdr-balance:hover { box-shadow: 0 8px 22px rgba(124,92,255, .42); }
  .pd-page .ps-chip:not(.out):hover, .pd-page .ps-deliv:hover { border-color: rgba(245,184,61, .55) !important; }
}

/* 5 ─ dark-mode fixes */
html[data-theme="dark"] .ps2 .ps-chip.selected,
html[data-theme="dark"] .ps2 .ps-deliv.selected { background: rgba(245,184,61, .16) !important; color: #ffd98a !important; }
html[data-theme="dark"] .pd-page .ps-chip .ps-chip-price { color: #ffd98a; }
html[data-theme="dark"] .pd-tags .gp-plan { background: rgba(245,184,61, .12); border-color: rgba(245,184,61, .35); color: #ffd98a; }
html[data-theme="dark"] .hdr-avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(255,154,46, .6); }
html[data-theme="dark"] .pd-page .pd-fav { background: var(--card); color: #cbd5e1; }

/* 6 ─ desktop / large screens: keep the app column centred */
@media (min-width: 720px) {
  body { max-width: 600px; margin: 0 auto; box-shadow: 0 0 0 1px var(--card-border); min-height: 100vh; }
  .bottom-nav, #page-product .pd-bar { max-width: 600px; margin: 0 auto; }
  #page-product .pd-bar { left: 0; right: 0; width: calc(100% - 20px); max-width: 580px; }
  .pd-page .pd-hero { height: 280px; }
  .pd-page.ps2 .pd-hero { height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  #page-product .pd-bar, .bottom-nav { animation: none; transition: none; }
}

/* ═══════════════ v20 ═══════════════ */

/* 7 ─ sticky home categories (tiles → compact pills while stuck) */
#cat-sentinel { height: 1px; margin-bottom: -1px; }
html[data-theme] #cat-tabs.home-cat-tabs {
  position: sticky; top: calc(var(--hdr-h, 60px) + var(--search-h, 0px)); z-index: 90;
  margin: 0 -14px 6px; padding: 6px 14px 12px;
  transition: padding .2s var(--ease), background .2s, box-shadow .2s, top .01s;
}
html[data-theme] #cat-tabs.home-cat-tabs.stuck {
  padding: 4px 14px 6px; background: var(--welcome-bg);
  box-shadow: 0 12px 18px -14px rgba(15,23,42, .35);
}
/* Search already in header — no extra offset under the header row */
body.search-pinned #cat-tabs.home-cat-tabs {
  top: var(--hdr-h, 60px);
}
html[data-theme] #cat-tabs.stuck .cat-tab {
  flex-direction: row; height: 40px; min-width: 0; gap: 6px;
  padding: 0 13px 0 5px !important; border-radius: 999px !important;
  font-size: 12px !important; box-shadow: none !important;
}
html[data-theme] #cat-tabs.stuck .cat-tab svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; }
html[data-theme] #cat-tabs.stuck .cat-tab span { max-width: 130px; }
body.cats-stuck .home-search-float.stuck { box-shadow: none; }
#product-list { scroll-margin-top: calc(var(--hdr-h, 60px) + var(--search-h, 0px) + 66px); }

/* 8 ─ big TXT / CSV choice */
.ps-deliv { display: flex; align-items: center; gap: 12px; width: 100%; }
.ps-deliv-ico-wrap {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34,211,238, .16); color: #7c5cff;
}
.ps-deliv.selected .ps-deliv-ico-wrap { background: rgba(34,211,238, .28); color: #2f5f70; }
.ps-deliv-text { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.ps-deliv-text b { font-size: 13.5px; font-weight: 800; }
.ps-deliv-text small { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.pd-fmt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-page .pd-fmt-btn {
  display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px; text-align: left;
  border-radius: 18px; border: 2px solid var(--card-border); background: var(--card); color: var(--text);
  cursor: pointer; font-family: inherit; position: relative; transition: border-color .18s var(--ease), box-shadow .18s, transform .12s;
}
.pd-page .pd-fmt-btn:active { transform: scale(.97); }
.pd-fmt-ico {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; letter-spacing: .5px; color: #2563eb; background: rgba(37,99,235, .12);
}
.pd-fmt-ico svg { display: block; }
.pd-fmt-ico.txt { color: #1d4ed8; background: rgba(37,99,235, .12); }
.pd-fmt-ico.csv { color: #15803d; background: rgba(22,163,74, .14); }
.pd-fmt-text { display: flex; flex-direction: column; min-width: 0; }
.pd-fmt-text b { font-size: 14.5px; font-weight: 800; }
.pd-fmt-text small { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.pd-page .pd-fmt-btn.selected { border-color: var(--primary); background: rgba(34,211,238, .16); box-shadow: 0 8px 20px rgba(124,92,255, .16); color: var(--text) !important; }
.pd-page .pd-fmt-btn.selected::after {
  content: '\2713'; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; color: #fff; background: var(--grad);
}
@media (max-width: 350px) { .pd-fmt-text small { display: none; } }

/* 9 ─ product grid cards */
.grid-product .gp-hero { position: relative; }
.gp-soldout {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42, .45); color: #fff; font-weight: 900; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  -webkit-backdrop-filter: grayscale(1); backdrop-filter: grayscale(1);
}
.grid-product.is-out { opacity: .82; }
.grid-product.is-out .gp-price { color: var(--muted) !important; }
.gp-from { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; margin-right: 1px; }
.gp-stock.low { color: #ea580c; }
.gp-stock.low::before { animation: gpPulse 1.4s ease-in-out infinite; }
@keyframes gpPulse { 50% { opacity: .3; } }
.gp-sales { font-weight: 700; color: var(--muted); }
.gp-pcs { font-weight: 800; letter-spacing: .3px; }
.grid-product .grid-product-buy:disabled { background: var(--surface) !important; color: var(--muted) !important; box-shadow: none; opacity: 1; }

/* 10 ─ orders page */
.oc-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.oc-stat { padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--shadow-card); min-width: 0; }
.oc-stat small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.oc-stat b { display: block; margin-top: 3px; font-size: 17px; font-weight: 900; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.oc-stat:first-child b { color: var(--primary); }
.oc-search { position: relative; margin-bottom: 10px; }
.oc-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.oc-search input {
  width: 100%; height: 46px; padding: 0 14px 0 40px; border-radius: 14px; font: inherit; font-size: 14px;
  border: 1.5px solid var(--card-border); background: var(--card); color: var(--text); outline: none;
}
.oc-search input:focus { border-color: var(--primary); box-shadow: var(--ring); }
#order-filters.oc-filters { position: sticky; top: var(--hdr-h, 60px); z-index: 40; padding: 6px 0 10px; margin: 0; background: linear-gradient(var(--bg) 75%, transparent); }
.oc-filters .filter-chip { display: inline-flex; align-items: center; gap: 6px; }
.oc-n { font-size: 10px; font-weight: 900; min-width: 18px; padding: 1px 5px; border-radius: 999px; background: rgba(15,23,42, .08); text-align: center; }
.oc-n:empty { display: none; }
.filter-chip.active .oc-n { background: rgba(255,255,255, .28); }
.oc-day { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin: 14px 2px 8px; }
.oc-card {
  padding: 14px; margin-bottom: 10px; border-radius: 20px; background: var(--card);
  border: 1px solid var(--card-border); box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.oc-card::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--oc, var(--primary)); }
.oc-card.g-mail { --oc: #3b82f6; --oc-bg: rgba(59,130,246, .13); }
.oc-card.g-proxy { --oc: #16a34a; --oc-bg: rgba(22,163,74, .13); }
.oc-card.g-vpn { --oc: #f5b83d; --oc-bg: rgba(245,184,61, .13); }
.oc-card.g-social { --oc: #a855f7; --oc-bg: rgba(168,85,247, .13); }
.oc-top { display: flex; align-items: flex-start; gap: 12px; }
.oc-ico { width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--oc); background: var(--oc-bg); }
.oc-main { flex: 1; min-width: 0; }
.oc-title { font-size: 14.5px; font-weight: 800; color: var(--text); line-height: 1.3; word-break: break-word; }
.oc-sub { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 3px; word-break: break-word; }
.oc-status { flex-shrink: 0; font-size: 10.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.oc-status.delivered { color: #15803d; background: rgba(22,163,74, .12); }
.oc-status.pending { color: #b45309; background: rgba(245,158,11, .16); }
.oc-status.refunded { color: #be123c; background: rgba(225,29,72, .1); }
.oc-meta { display: flex; gap: 8px; margin-top: 12px; }
.oc-meta > div { flex: 1; padding: 8px 10px; border-radius: 12px; background: var(--surface); min-width: 0; }
.oc-meta small { display: block; font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.oc-meta b { display: block; font-size: 14px; font-weight: 900; color: var(--text); margin-top: 1px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-note { margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 600; line-height: 1.45; color: #92400e; background: rgba(245,158,11, .1); }
.oc-key { margin-top: 10px; display: flex; gap: 8px; align-items: stretch; }
.oc-key code {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface); color: var(--text);
  font-size: 12.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-all; border: 1px dashed var(--card-border);
}
.oc-key button { flex-shrink: 0; padding: 0 14px; border-radius: 12px; border: 0; font: inherit; font-size: 12px; font-weight: 800; color: #fff; background: var(--grad); cursor: pointer; }
.oc-prod-wrap { margin-top: 10px; }
.oc-prod-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 6px; font-size: 11px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .4px;
}
.oc-mini {
  border: 0; background: rgba(34,211,238, .18); color: var(--primary);
  font: inherit; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.oc-prod {
  max-height: 160px; overflow: auto; padding: 10px 12px; border-radius: 12px;
  background: var(--surface); border: 1px dashed var(--card-border);
  font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-all; color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.oc-prod-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.oc-prod-actions .oc-btn { flex: 1; min-width: 0; }
.oc-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.oc-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border-radius: 12px; border: 1.5px solid var(--card-border); background: var(--card); color: var(--text);
  font: inherit; font-size: 12.5px; font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.oc-btn.primary { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 6px 14px rgba(245,184,61, .25); }
.oc-btn.ghost { cursor: default; color: var(--muted); background: var(--surface); border-color: transparent; }
.oc-btn:active { transform: scale(.97); }
.oc-empty { padding: 50px 20px; }
.oc-empty-ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--primary); background: rgba(245,184,61, .12); }
.oc-empty-ico svg { width: 30px; height: 30px; }
.oc-empty-sub { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.oc-empty-btn { max-width: 220px; margin: 16px auto 0; }
html[data-theme="dark"] .oc-status.delivered { color: #4ade80; }
html[data-theme="dark"] .oc-status.pending { color: #fbbf24; }
html[data-theme="dark"] .oc-status.refunded { color: #fda4af; }
html[data-theme="dark"] .oc-note { color: #fcd34d; }
html[data-theme="dark"] .oc-n { background: rgba(255,255,255, .1); }

/* 11 ─ support button: hides while scrolling */
.support-launcher { transition: transform .3s var(--ease), opacity .3s var(--ease); }
.support-launcher.auto-hidden:not(.open) { transform: translateX(calc(100% + 16px)); opacity: 0; pointer-events: none; }
.support-launcher.auto-hidden:not(.open) * { pointer-events: none !important; }

/* 12 ─ purchase result screen (showPurchaseSuccess in utils.js) — no animation */
.bs-overlay {
  position: fixed; inset: 0; z-index: 3000; box-sizing: border-box;
  display: none; align-items: center; justify-content: center;
  padding: calc(20px + var(--safe-top)) 18px calc(20px + var(--safe-bottom));
  background: rgba(15,23,42, .58);
}
.bs-overlay.open { display: flex; }
.bs-card {
  box-sizing: border-box; width: 100%; max-width: 380px; max-height: 100%; overflow-y: auto;
  background: var(--card); color: var(--text);
  border: 1px solid var(--card-border); border-radius: 22px;
  padding: 22px 18px 16px; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0, .25);
}
.bs-title { margin: 0 0 6px; font-size: 21px; font-weight: 800; }
.bs-sub { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.bs-rows { background: var(--surface); border-radius: 14px; padding: 4px 12px; margin-bottom: 14px; text-align: left; }
.bs-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; }
.bs-row + .bs-row { border-top: 1px dashed var(--card-border); }
.bs-row span { color: var(--muted); flex-shrink: 0; }
.bs-row b { font-weight: 700; text-align: right; word-break: break-all; }
.bs-details {
  margin: 0 0 8px; padding: 10px 12px; max-height: 160px; overflow: auto; text-align: left;
  background: var(--surface); border-radius: 12px; font-size: 12.5px; white-space: pre-wrap; word-break: break-all;
}
.bs-lines-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0 0 8px; font-size: 12px; font-weight: 800; color: var(--muted); text-align: left;
}
.bs-copy-all {
  border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 800;
  background: rgba(245,184,61,.14); color: var(--primary, #f5b83d);
}
.bs-lines {
  display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow: auto;
  margin: 0 0 12px; text-align: left; padding-right: 2px;
}
.bs-line {
  display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 12px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--card-border);
}
.bs-line-txt {
  flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; font-weight: 650; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bs-line-copy {
  flex-shrink: 0; border: 0; border-radius: 10px; padding: 8px 12px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 800; background: var(--grad); color: #fff;
}
.bs-actions { display: flex; gap: 10px; margin-top: 6px; }
.bs-btn {
  flex: 1; border: 0; border-radius: 13px; padding: 13px 10px; font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.bs-btn.primary { background: var(--grad); color: #fff; }
.bs-btn.ghost { background: var(--surface); color: var(--text); }
.bs-card > .bs-btn { width: 100%; margin-bottom: 8px; }
html[data-theme="dark"] .bs-overlay { background: rgba(0,0,0, .65); }

/* ── Number & Mail (screenshot-style) ── */
.nm-page { padding-bottom: 12px; }
.nm-mode {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px;
  padding: 4px; border-radius: 14px; background: rgba(34,211,238,.14);
}
.nm-mode-btn {
  border: 0; border-radius: 11px; padding: 10px 12px; font: inherit; font-size: 13px; font-weight: 800;
  background: transparent; color: #64748b; cursor: pointer;
}
.nm-mode-btn.active { background: #fff; color: #1e293b; box-shadow: 0 4px 14px rgba(15,23,42,.08); }
.nm-seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 14px;
  padding: 5px; border-radius: 16px; background: #e8eef3;
}
.nm-seg-btn {
  border: 0; border-radius: 12px; padding: 12px 10px; font: inherit; font-size: 14px; font-weight: 800;
  background: transparent; color: #64748b; cursor: pointer; transition: .15s ease;
}
.nm-seg-btn.active { background: #fff; color: #12151c; box-shadow: 0 6px 18px rgba(15,23,42,.08); }
.nm-disabled {
  padding: 16px; border-radius: 14px; background: #fff; color: #64748b; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(17,24,39,.06); margin-bottom: 12px;
}
.nm-toolbar { margin-bottom: 4px; }
.nm-back {
  border: 0; background: #fff; color: #1e293b; font: inherit; font-size: 13px; font-weight: 800;
  padding: 8px 12px; border-radius: 999px; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(15,23,42,.06); cursor: pointer;
}
.nm-step-lbl {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #1e293b; margin-bottom: 10px;
}
.nm-step-lbl span:first-child {
  width: 22px; height: 22px; border-radius: 50%; background: #7c5cff; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
}
#page-nummail .nm-search-wrap {
  padding: 1.5px; border-radius: 16px; background: linear-gradient(135deg, #22d3ee, #7c5cff);
  box-shadow: 0 2px 10px rgba(124,92,255,.12); margin-bottom: 12px;
}
#page-nummail .nm-search-wrap:focus-within { box-shadow: 0 0 0 3px rgba(34,211,238,.28); }
#page-nummail .nm-search-inner {
  display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 14.5px; padding: 0 12px; height: 48px;
}
#page-nummail .nm-search-ic { color: #7c5cff; flex-shrink: 0; }
#page-nummail .nm-search-inner input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  color: #1e293b; font-size: 15px; font-weight: 600; font-family: inherit; height: 100%;
}
#page-nummail .nm-search-inner input::placeholder { color: #94a3b8; font-weight: 500; }
#page-nummail .nm-search-clear {
  border: none; background: rgba(124,92,255,.12); color: #7c5cff; width: 26px; height: 26px;
  border-radius: 50%; font-size: 12px; font-weight: 900; cursor: pointer; flex-shrink: 0;
}
.nm-cats {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px;
  scrollbar-width: none;
}
.nm-cats::-webkit-scrollbar { display: none; }
.nm-cat {
  flex-shrink: 0; border: 0; border-radius: 999px; padding: 9px 16px; font: inherit;
  font-size: 13px; font-weight: 700; background: #fff; color: #64748b; cursor: pointer;
  box-shadow: 0 1px 4px rgba(15,23,42,.04);
}
.nm-cat.active { background: #1A1C22; color: #fff; box-shadow: 0 6px 14px rgba(26,28,34,.22); }
.nm-popular-wrap {
  background: #f3f5f8; border-radius: 20px; padding: 14px 12px 16px; margin-bottom: 16px;
}
.nm-sec-title { font-size: 15px; font-weight: 800; color: #1e293b; margin: 0 4px 12px; }
.nm-pop-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.nm-pop-card {
  border: 0; background: #fff; border-radius: 16px; padding: 12px 4px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: 0 2px 10px rgba(15,23,42,.05); cursor: pointer; font: inherit;
  min-width: 0;
}
.nm-pop-card:active { transform: scale(.96); }
.nm-pop-card .nm-ico {
  width: 44px; height: 44px; border-radius: 50%; background: #f1f5f9;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.nm-pop-card .nm-ico img { width: 26px; height: 26px; object-fit: contain; }
.nm-pop-ico {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.nm-pop-name {
  font-size: 11px; font-weight: 800; color: #1e293b; text-align: center;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nm-all-head {
  display: flex; align-items: baseline; gap: 8px; margin: 4px 2px 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #94a3b8;
}
.nm-all-count { font-weight: 700; color: #94a3b8; }
.nm-sort { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 10px; scrollbar-width: none; }
.nm-sort::-webkit-scrollbar { display: none; }
.nm-sort-chip {
  flex-shrink: 0; border: 0; border-radius: 999px; padding: 7px 12px; font: inherit;
  font-size: 12px; font-weight: 700; background: #fff; color: #64748b; cursor: pointer;
}
.nm-sort-chip.active { background: rgba(124,92,255,.16); color: #7c5cff; }
.nm-list {
  display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto;
  padding-bottom: 8px; -webkit-overflow-scrolling: touch;
}
#page-nummail .nm-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 14px 14px; background: #fff; border: 1px solid rgba(17,24,39,.05);
  border-radius: 16px; box-shadow: 0 2px 10px rgba(15,23,42,.04);
  cursor: pointer; font: inherit; color: inherit;
}
#page-nummail .nm-row.sel { outline: 2px solid #7c5cff; }
#page-nummail .nm-row.dim { opacity: .48; }
#page-nummail .nm-ico {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; overflow: hidden;
  background: #f1f5f9; display: flex; align-items: center; justify-content: center;
}
#page-nummail .nm-ico img { width: 26px; height: 26px; object-fit: contain; }
#page-nummail .nm-ico.flag img { width: 40px; height: 40px; object-fit: cover; }
.nm-row-name {
  flex: 1; min-width: 0; font-size: 14.5px; font-weight: 800; color: #1e293b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nm-row-meta { text-align: right; flex-shrink: 0; }
#page-nummail .nm-price { font-weight: 900; color: #7c5cff; font-size: 13px; white-space: nowrap; }
#page-nummail .nm-sub { font-size: 11px; font-weight: 700; color: #94a3b8; }
#page-nummail .nm-sub.ok { color: #16a34a; }
.nm-chev { color: #cbd5e1; flex-shrink: 0; }
.nm-empty { font-size: 13px; color: #94a3b8; font-weight: 600; padding: 20px 8px; text-align: center; }
.nm-buy-cta { margin-top: 10px; }
.nm-orders { display: flex; flex-direction: column; gap: 10px; }
html[data-theme="dark"] .nm-seg { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .nm-seg-btn.active,
html[data-theme="dark"] .nm-mode-btn.active,
html[data-theme="dark"] #page-nummail .nm-search-inner,
html[data-theme="dark"] .nm-cat,
html[data-theme="dark"] .nm-pop-card,
html[data-theme="dark"] #page-nummail .nm-row { background: #1a1e30; color: #e2e8f0; }
html[data-theme="dark"] .nm-popular-wrap { background: rgba(255,255,255,.04); }
html[data-theme="dark"] .nm-cat.active { background: #22d3ee; color: #0b1520; }
html[data-theme="dark"] .nm-row-name { color: #f1f5f9; }
@media (max-width: 360px) {
  .nm-pop-grid { grid-template-columns: repeat(4, 1fr); }
  .nm-pop-card:nth-child(5) { display: none; }
}

/* ── MB Check teal theme polish ── */
#page-mbcheck .mbc-hero {
  background: linear-gradient(135deg, #22d3ee, #7c5cff) !important;
  box-shadow: 0 10px 28px rgba(124,92,255,.28) !important;
}
#page-mbcheck .mbc-step-num,
#page-mbcheck .mbc-provider-logo { background: rgba(34,211,238,.16) !important; color: #7c5cff !important; }
#page-mbcheck .mbc-provider.selected { border-color: #7c5cff !important; box-shadow: 0 0 0 3px rgba(34,211,238,.2) !important; }
#page-mbcheck .mbc-provider-tick { background: #7c5cff !important; }
#page-mbcheck .mbc-input:focus { border-color: #7c5cff !important; box-shadow: 0 0 0 3px rgba(34,211,238,.18) !important; }
#page-mbcheck .mbc-chip { background: rgba(34,211,238,.14) !important; color: #7c5cff !important; }
#page-mbcheck .mbc-check-btn,
#page-mbcheck .otp-btn.pri { background: linear-gradient(135deg, #22d3ee, #7c5cff) !important; box-shadow: 0 6px 16px rgba(124,92,255,.28) !important; }
#page-mbcheck .otp-btn.sec { background: rgba(34,211,238,.12) !important; color: #7c5cff !important; border-color: rgba(34,211,238,.35) !important; }
#page-mbcheck .mbt-tab.active { background: linear-gradient(135deg, #22d3ee, #7c5cff) !important; box-shadow: 0 4px 12px rgba(124,92,255,.3) !important; }
#page-mbcheck .mbc-input-wrap:focus-within { box-shadow: 0 0 0 3px rgba(34,211,238,.25), 0 8px 20px rgba(124,92,255,.12) !important; }
#page-mbcheck .mbc-mini { background: rgba(34,211,238,.1) !important; }

/* ── Profile + Deposit teal theme ── */
#page-profile .profile-hero {
  background: linear-gradient(160deg, #f4f5fb, #e6e1ff 65%, #fff);
  border: 1px solid rgba(124,92,255,.16);
  box-shadow: 0 8px 22px rgba(124,92,255,.1);
}
#page-profile .profile-avatar {
  border-color: rgba(34,211,238,.65);
  box-shadow: 0 0 0 3px rgba(230,225,255,.7);
}
#page-profile .mini-stat {
  background: #fff;
  border: 1px solid rgba(124,92,255,.12);
  box-shadow: 0 4px 14px rgba(124,92,255,.06);
}
#page-profile .mini-val { color: #7c5cff; }
#page-profile .action-btn.primary {
  background: linear-gradient(135deg, #22d3ee, #7c5cff) !important;
  box-shadow: 0 8px 20px rgba(124,92,255,.28) !important;
}
#page-profile .action-btn {
  border-color: rgba(124,92,255,.14);
  background: #fff;
}
#page-profile .pf-tool-ico {
  background: rgba(34,211,238,.22) !important;
  color: #7c5cff !important;
}
#page-profile .switch.on {
  background: linear-gradient(135deg, #22d3ee, #7c5cff) !important;
}
#page-balance .deposit-hero-title { color: #0f172a; }
#page-balance .deposit-hero-sub { color: #6b6f8a; }
#page-balance .deposit-cta {
  background: linear-gradient(135deg, #22d3ee, #7c5cff) !important;
  box-shadow: 0 8px 24px rgba(124,92,255,.35) !important;
}
#page-balance .deposit-note {
  background: rgba(34,211,238,.16) !important;
  border-color: rgba(124,92,255,.22) !important;
}
#page-balance .deposit-quick-label { color: #7c5cff !important; }
#page-balance .deposit-quick.active,
#page-balance .deposit-quick:active {
  border-color: #22d3ee !important;
  background: rgba(34,211,238,.22) !important;
  color: #5a3fd6 !important;
}
#page-balance .pay-card {
  border-color: rgba(124,92,255,.14);
  box-shadow: 0 4px 14px rgba(124,92,255,.06);
}
#page-balance .pay-icon {
  background: rgba(34,211,238,.2);
  color: #7c5cff;
  border-radius: 12px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
}
#page-referral .ref-hero {
  background: linear-gradient(135deg, #22d3ee, #7c5cff) !important;
  box-shadow: 0 10px 28px rgba(124,92,255,.28) !important;
}
