/* ================= GENERAL RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


:root {
  /* ====== PUT YOUR BACKGROUND IMAGE HERE ====== */
  --auth-bg-image: url('for.jpg');

  --lime: #B7F34A;
  --green: #16A34A;
  --gold: #F5C542;

  --text-main: #FFFFFF;
  --text-secondary: #A8B8AD;
  --text-dark: #07110A;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(183, 243, 74, 0.20);
  --glass-blur: blur(16px);

  /* Effects */
  --green-glow: 0 0 20px rgba(22, 163, 74, 0.25);
  --gold-glow: 0 0 20px rgba(245, 197, 66, 0.20);
}

.honda-auth-container {
  display: none;
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  color: var(--text-main);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 9999;
  align-items: flex-start;
  /* image first, dark tint on top so the form stays readable */
  background:
    linear-gradient(180deg, rgba(7,17,10,0.35) 0%, rgba(7,17,10,0.55) 55%, rgba(7,17,10,0.85) 100%),
    var(--auth-bg-image) center / cover no-repeat,
    #07110A;
}
.honda-auth-container.active { display: flex !important; }
.honda-auth-container * { box-sizing: border-box; }

.auth-page-inner {
  width: 100%;
  max-width: 420px;
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(28px, 7vh, 64px) 20px 32px;
  display: flex;
  flex-direction: column;
}

/* BRAND */
.auth-brand { margin-bottom: clamp(28px, 9vh, 80px); text-align: center; }
.auth-brand-name {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: 6px;
  color: var(--text-main);
  line-height: 1;
}
.auth-brand img { height: 48px; width: auto; display: inline-block; }

.auth-title {
  margin: 0 0 16px;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--text-main);
}

/* FORM */
.auth-form { width: 100%; display: flex; flex-direction: column; gap: 14px; }

/* PHONE / EMAIL TABS */
.id-tabs { display: flex; gap: 22px; margin-bottom: 2px; }
.id-tab {
  background: none; border: none; padding: 0 0 6px;
  font-family: inherit; font-size: 13.5px; font-weight: 400;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 1.5px solid transparent;
  transition: color .15s, border-color .15s;
}
.id-tab.active { color: var(--lime); border-bottom-color: var(--lime); }

.id-block { display: block; }

.auth-input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 16px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.auth-input:focus-within {
  border-color: var(--glass-border);
  box-shadow: var(--green-glow);
}
.auth-input input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px; /* prevents iOS zoom */
  font-weight: 400;
  color: var(--text-main);
}
.auth-input input::placeholder { color: rgba(255,255,255,0.55); }
.auth-code {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-main);
  padding-right: 12px;
  border-right: 1px solid rgba(255,255,255,0.25);
  line-height: 24px;
}
.auth-show {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 400;
  color: var(--text-secondary);
  padding: 0;
}

/* LOCKED INVITATION CODE */
.auth-input.is-locked { border-color: var(--glass-border); }
.auth-input.is-locked input { color: var(--lime); cursor: default; }
.auth-lock { font-size: 13px; color: var(--lime); }

.auth-hint { margin: -6px 0 0; font-size: 11.5px; color: var(--text-secondary); line-height: 1.35; }

/* LINK ROWS */
.auth-row-between { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.auth-row-end { display: flex; justify-content: flex-end; margin-top: 2px; }
.auth-link {
  background: none; border: none; padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  color: var(--lime);
  cursor: pointer;
}
.auth-link:hover { opacity: .8; }

/* BUTTON */
.auth-btn {
  width: 100%;
  height: 52px;
  margin-top: 10px;
  border-radius: 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(22, 163, 74, 0.35);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--green-glow);
  transition: transform .1s, background .15s, opacity .15s;
}
.auth-btn .btn-content,
.auth-btn .btn-spinner { display: flex; align-items: center; justify-content: center; gap: 10px; }
.auth-btn .btn-spinner { display: none; }
.auth-btn.is-loading .btn-content { display: none; }
.auth-btn.is-loading .btn-spinner { display: flex; }
.auth-btn.is-loading { cursor: not-allowed; }
.auth-btn:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.auth-btn:not(:disabled):hover { background: rgba(22, 163, 74, 0.5); }
.auth-btn:not(:disabled):active { transform: scale(0.98); }

.spin-icon { animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spin-icon { animation-duration: 2s; }
  .auth-btn, .auth-input { transition: none; }
}

/* SHORT SCREENS */
@media (max-height: 700px) {
  .auth-page-inner { padding-top: 20px; }
  .auth-brand { margin-bottom: 16px; }
  .auth-brand-name { font-size: 34px; }
  .auth-input { height: 46px; }
  .auth-btn { height: 48px; }
  .auth-form { gap: 10px; }
}





@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* =========================================================
   DASHBOARD — NRT dark / glass / green
   ========================================================= */
.dashboard {
  /* ====== IMAGE 1: PAGE BACKGROUND (behind the whole home page) ====== */
  --home-page-bg: url('dsh.png');

  /* ====== IMAGE 2: BANNER (top of the page, buttons float on it) ====== */
  --home-bg-image: url('dash.jpg');

  --bg: #07110A;
  --lime: #B7F34A;
  --green: #16A34A;
  --gold: #F5C542;
  --text-main: #FFFFFF;
  --text-secondary: #A8B8AD;
  --text-dark: #07110A;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(183, 243, 74, 0.20);
  --glass-blur: blur(16px);

  /* Effects */
  --green-glow: 0 0 20px rgba(22, 163, 74, 0.25);
  --gold-glow: 0 0 20px rgba(245, 197, 66, 0.20);

  --hero-h: 250px;       /* banner height */
  --panel-lift: 22px;    /* how far the ticker sits over the banner */

  width: 100%;
  max-width: 430px;
  display: none;                 /* your script switches this to flex */
  flex-direction: column;
  align-items: stretch;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  background:
    linear-gradient(180deg, rgba(7,17,10,0.55) 0%, rgba(7,17,10,0.80) 100%),
    var(--home-page-bg) center top / cover no-repeat,
    var(--bg);
  color: var(--text-main);
  color-scheme: dark;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
.dashboard *,
.dashboard *::before,
.dashboard *::after { box-sizing: border-box; }
.dashboard h2,
.dashboard p { margin: 0; }
.dashboard button {
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  color: inherit;
  margin: 0;
  cursor: pointer;
}
.dashboard [hidden] { display: none !important; }


/* ── BANNER (image fades into the page background) ── */
.hm-hero {
  width: 100%;
  height: calc(var(--hero-h) + env(safe-area-inset-top, 0px));
  background:
    var(--home-bg-image) center top / cover no-repeat,
    linear-gradient(160deg, #0E2A1A, #07110A);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}

/* body floats up over the banner */
.hm-body {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--panel-lift) * -1);
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* ── LIVE TICKER (half over the banner) ── */
.hm-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(10, 22, 14, 0.78);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
}
.hm-notice i { flex: none; font-size: 13px; color: var(--lime); }
.hm-notice .hm-ticker {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.hm-notice .hm-ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: hm-marquee 18s linear infinite;
}
@keyframes hm-marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .hm-notice .hm-ticker span { animation: none; padding-left: 0; }
  .hm-notice .hm-ticker { text-overflow: ellipsis; }
}


/* ── 8 QUICK ACTIONS (4 x 2, rectangular box, below the banner) ── */
.hm-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 4px;
  padding: 14px 6px 12px;
  border-radius: 10px;
  background: rgba(10, 22, 14, 0.90);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
}
.hm-action {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  transition: transform .1s;
}
.hm-action:active { transform: scale(.95); }
.hm-action:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
.hm-action-ic {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(183, 243, 74, 0.08);
  border: 1px solid rgba(183, 243, 74, 0.14);
  color: var(--lime);
}
.hm-action-ic svg { width: 17px; height: 17px; display: block; }
.hm-action-text {
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
}


/* ── PRODUCTS (tabs + list) ── */
.hm-products { padding: 16px 14px 0; }
.dashboard .ppx-section-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
}
.dashboard .ppx-section-title i { font-style: normal; color: var(--lime); margin-right: 8px; }
.dashboard .ppx-loader { color: var(--text-secondary); font-size: 13px; padding: 14px 0; }


/* ── SMALL PHONES ── */
@media (max-width: 360px) {
  .dashboard { --hero-h: 220px; }
  .hm-action-ic { width: 32px; height: 32px; }
  .hm-action-text { font-size: 10px; }
}

/* ── BOTTOM SPACE FOR NAV ── */
.mx-nav-spacer {
  display: block !important;
  flex: none !important;
  width: 100%;
 
 
  height: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
}




/* =========================================================
   NOTIFICATION CENTER — FULL CSS (original + upgrades merged)
   Replace your whole old CSS with this file.
   ========================================================= */
#giftCodePage {
  --nc-bg-image: url('https://picsum.photos/id/1039/720/1280');

  --nc-bg: #07110A;
  --nc-lime: #B7F34A;
  --nc-green: #16A34A;
  --nc-gold: #F5C542;
  --nc-text: #FFFFFF;
  --nc-muted: #A8B8AD;
  --nc-border: rgba(183, 243, 74, 0.20);
  --nc-glass: rgba(10, 22, 14, 0.78);

  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 110px;
  color: var(--nc-text);
  color-scheme: dark;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(7,17,10,0.25) 0%, rgba(7,17,10,0.55) 100%),
    var(--nc-bg-image) center / cover no-repeat fixed,
    linear-gradient(180deg, #0E2A1A 0%, #07110A 100%);
}
#giftCodePage *, #giftCodePage *::before, #giftCodePage *::after { box-sizing: border-box; }
#giftCodePage p { margin: 0; }
#giftCodePage button { -webkit-appearance: none; appearance: none; font-family: inherit; color: inherit; margin: 0; }


/* ── GLASS LAYERS OVER THE IMAGE ── */
#giftCodePage .nc-aurora {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
#giftCodePage .nc-orb {
  position: absolute; border-radius: 50%;
  filter: blur(54px);
  opacity: .55;
  animation: nc-drift 16s ease-in-out infinite alternate;
}
#giftCodePage .nc-orb-a { width: 260px; height: 260px; top: -60px;  left: -80px;  background: rgba(183, 243, 74, .38); }
#giftCodePage .nc-orb-b { width: 300px; height: 300px; top: 38%;    right: -120px; background: rgba(22, 163, 74, .45); animation-duration: 20s; animation-delay: -6s; }
#giftCodePage .nc-orb-c { width: 220px; height: 220px; bottom: -40px; left: 10%;   background: rgba(245, 197, 66, .22); animation-duration: 18s; animation-delay: -3s; }
@keyframes nc-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(36px, 48px) scale(1.15); }
}

#giftCodePage .nc-shard {
  position: absolute;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 30px rgba(183, 243, 74, .05);
}
#giftCodePage .nc-shard-a { width: 220px; height: 300px; top: 11%;    right: -84px; transform: rotate(-18deg); }
#giftCodePage .nc-shard-b { width: 200px; height: 260px; bottom: 9%; left: -88px;  transform: rotate(16deg); }
#giftCodePage .nc-shard-c { width: 150px; height: 190px; top: 46%; left: -70px; transform: rotate(-10deg); opacity: .8; }
#giftCodePage .nc-shard-d { width: 120px; height: 120px; top: 4%; left: 46%; border-radius: 50%; opacity: .7; }

#giftCodePage .nc-beam {
  position: absolute; top: -10%; left: 18%; width: 90px; height: 130%;
  transform: rotate(18deg);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 70%);
  filter: blur(14px);
  animation: nc-beam 14s ease-in-out infinite alternate;
}
@keyframes nc-beam {
  from { transform: rotate(18deg) translateX(-30px); }
  to   { transform: rotate(18deg) translateX(160px); }
}

#giftCodePage .nc-glass-sheen {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 38%),
    linear-gradient(300deg, rgba(183,243,74,.07) 0%, rgba(183,243,74,0) 42%);
  -webkit-backdrop-filter: blur(1.5px) saturate(1.2);
  backdrop-filter: blur(1.5px) saturate(1.2);
}
#giftCodePage .nc-glass-sheen::before,
#giftCodePage .nc-glass-sheen::after {
  content: ""; position: absolute; left: 0; right: 0; height: 28%; pointer-events: none;
}
#giftCodePage .nc-glass-sheen::before {
  top: 0;
  background: linear-gradient(180deg, rgba(7,17,10,.55), rgba(7,17,10,0));
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  -webkit-mask: linear-gradient(180deg, #000, transparent);
          mask: linear-gradient(180deg, #000, transparent);
}
#giftCodePage .nc-glass-sheen::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(7,17,10,.7), rgba(7,17,10,0));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-mask: linear-gradient(0deg, #000, transparent);
          mask: linear-gradient(0deg, #000, transparent);
}

#giftCodePage .nc-grain {
  position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

#ncConfetti {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 50;
  pointer-events: none;
}


/* ── HEADER ── */
#giftCodePage .nc-header {
  position: sticky; top: 0; z-index: 5;
  height: calc(46px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center; justify-content: center;
  background: var(--nc-glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nc-border);
}
#giftCodePage .nc-title { font-size: 12.5px; font-weight: 500; letter-spacing: .3px; }
#giftCodePage .nc-back {
  position: absolute; left: 12px; bottom: 10px;
  height: 26px; padding: 0 12px;
  border: 1px solid var(--nc-border); border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 10.5px; font-weight: 500;
  cursor: pointer;
}
#giftCodePage .nc-back:active { background: rgba(255, 255, 255, 0.12); }

#giftCodePage .nc-wrap {
  position: relative; z-index: 2;
  max-width: 430px;
  margin: 0 auto;
  padding: 14px 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
/* one big frosted pane behind all content */
#giftCodePage .nc-wrap::before {
  content: ""; position: absolute; z-index: -1; inset: 6px 4px -6px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(3px) saturate(1.15); backdrop-filter: blur(3px) saturate(1.15);
  pointer-events: none;
}

/* shared glass card */
#giftCodePage .nc-card {
  position: relative; overflow: hidden;
  width: 100%;
  border-radius: 14px;
  background: var(--nc-glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--nc-border);
  box-shadow: 0 0 20px rgba(22, 163, 74, 0.22), inset 0 1px 0 rgba(255,255,255,.08);
}
#giftCodePage .nc-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.09), rgba(255,255,255,0) 35%);
}


/* ── GREETING ── */
#giftCodePage .nc-hello {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px;
  border-left: 2px solid var(--nc-lime);
}
#giftCodePage .nc-hello-l { display: flex; flex-direction: column; gap: 2px; }
#giftCodePage .nc-hello-l b { font-size: 13px; font-weight: 500; }
#giftCodePage .nc-hello-l span { font-size: 10px; color: var(--nc-muted); }
#giftCodePage .nc-clock {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--nc-border);
  background: rgba(183, 243, 74, .08);
  font-size: 11px; font-weight: 500;
  color: var(--nc-lime);
  font-variant-numeric: tabular-nums;
}


/* ── TICKER ── */
#giftCodePage .nc-ticker { padding: 7px 0; }
#giftCodePage .nc-ticker-track {
  display: flex; width: max-content; gap: 34px;
  font-size: 10.5px; color: var(--nc-muted); white-space: nowrap;
  animation: nc-marquee 28s linear infinite;
}
#giftCodePage .nc-ticker-track span::before {
  content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 10px;
  border-radius: 50%; background: var(--nc-lime); vertical-align: 1px;
}
@keyframes nc-marquee { to { transform: translateX(-50%); } }


/* ── MESSAGE STAGE ── */
#giftCodePage .nc-stage {
  position: relative;
  width: 100%;
  min-height: 132px;
  margin-top: 8px;
  padding: 28px 20px 20px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  border-radius: 18px;
  background: var(--nc-glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--nc-border);
  box-shadow: 0 0 20px rgba(22, 163, 74, 0.25), inset 0 1px 0 rgba(255,255,255,.08);
  transition: box-shadow .4s, border-color .4s;
}
#giftCodePage .nc-stage[data-state="live"] {
  border-color: rgba(183, 243, 74, 0.45);
  box-shadow: 0 0 34px rgba(183, 243, 74, 0.28), inset 0 1px 0 rgba(255,255,255,.1);
}
#giftCodePage .nc-tag {
  position: absolute; top: -10px; left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: 999px;
  background: #0A160E;
  border: 1px solid var(--nc-border);
  font-size: 9.5px; font-weight: 500; letter-spacing: 1.6px;
  color: var(--nc-lime);
}
#giftCodePage .nc-idle { font-size: 12px; color: var(--nc-muted); }
#giftCodePage .nc-stage[data-state="live"] .nc-idle { display: none; }

#giftCodePage .nc-text {
  display: none;
  font-size: 13.5px; font-weight: 400; line-height: 1.6;
  color: var(--nc-text);
  transition: opacity .35s ease, transform .35s ease;
}
#giftCodePage .nc-stage[data-state="live"] .nc-text { display: block; }
#giftCodePage .nc-text.is-hero {
  font-size: 19px; font-weight: 500; letter-spacing: .3px;
  background: linear-gradient(90deg, #FFFFFF 0%, var(--nc-lime) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
#giftCodePage .nc-text.is-out { opacity: 0; transform: translateY(-8px); }

#giftCodePage .nc-text.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px; height: 1em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--nc-lime);
  -webkit-text-fill-color: initial;
  animation: nc-caret .7s steps(1) infinite;
}
@keyframes nc-caret { 50% { opacity: 0; } }


/* ── PUSH BUTTON (SMALLER) ON A GLASS DIAL ── */
#giftCodePage .nc-btn-zone {
  position: relative;
  width: 140px; height: 140px;
  margin: 6px 0 0;
  display: flex; align-items: center; justify-content: center;
}
#giftCodePage .nc-dial {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.10), rgba(255,255,255,.02) 70%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 34px rgba(183, 243, 74, .08), 0 10px 30px rgba(0,0,0,.25);
}
#giftCodePage .nc-orbit {
  position: absolute; inset: 6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(183,243,74,0) 0 72%, rgba(183,243,74,.9) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: nc-spin 6s linear infinite;
}
@keyframes nc-spin { to { transform: rotate(360deg); } }

#giftCodePage .nc-ring {
  position: absolute; inset: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(183, 243, 74, 0.55);
  opacity: 0;
  animation: nc-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
#giftCodePage .nc-ring-b { animation-delay: 1.3s; }
@keyframes nc-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  100% { transform: scale(1.45); opacity: 0; }
}

#giftCodePage .nc-btn {
  position: relative;
  width: 80px; height: 80px;
  border: 0; border-radius: 50%;
  cursor: pointer;
  font-size: 11px; font-weight: 600; letter-spacing: .6px;
  color: #07110A;
  background: radial-gradient(circle at 35% 28%, #E4FF9A 0%, #B7F34A 30%, #16A34A 78%, #0B5E2B 100%);
  box-shadow:
    0 0 36px rgba(22, 163, 74, 0.55),
    0 0 0 5px rgba(183, 243, 74, 0.10),
    inset 0 -8px 16px rgba(0, 0, 0, 0.28),
    inset 0 6px 12px rgba(255, 255, 255, 0.38);
  transition: transform .12s, filter .2s, box-shadow .3s;
}
#giftCodePage .nc-btn:not(:disabled):active { transform: scale(.93); }
#giftCodePage .nc-btn:disabled { cursor: not-allowed; filter: saturate(.7) brightness(.85); }
#giftCodePage .nc-btn-zone.is-live .nc-ring { animation-duration: 1.1s; }
#giftCodePage .nc-btn-zone.is-live .nc-ring-b { animation-delay: .55s; }
#giftCodePage .nc-btn-zone.is-live .nc-orbit { animation-duration: 1.6s; }

#giftCodePage .nc-hint {
  margin-top: -2px;
  font-size: 10.5px;
  color: var(--nc-muted);
  text-align: center;
}


/* ── MINI STATS ── */
#giftCodePage .nc-tiles {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
#giftCodePage .nc-tile {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 11px 6px;
}
#giftCodePage .nc-tile b {
  font-size: 13px; font-weight: 500;
  color: var(--nc-lime);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#giftCodePage .nc-tile span { font-size: 9.5px; color: var(--nc-muted); }


/* ── SHARED SECTION ── */
#giftCodePage .nc-sec { padding: 13px 14px; display: flex; flex-direction: column; gap: 10px; }
#giftCodePage .nc-sec-head b { font-size: 12px; font-weight: 500; }

/* ── HOW IT WORKS ── */
#giftCodePage .nc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#giftCodePage .nc-steps li { display: flex; align-items: center; gap: 11px; font-size: 11.5px; line-height: 1.45; color: rgba(255,255,255,.88); }
#giftCodePage .nc-steps em {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 11px; font-weight: 500; color: #07110A;
  background: radial-gradient(circle at 35% 30%, #E4FF9A, #B7F34A 60%, #16A34A);
}

/* ── WHAT YOU GET ── */
#giftCodePage .nc-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#giftCodePage .nc-chip {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 11px 4px; border-radius: 12px; text-align: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  font-size: 10px; color: var(--nc-muted);
}
#giftCodePage .nc-chip svg { width: 22px; height: 22px; color: var(--nc-lime); }

/* ── FAQ ── */
#giftCodePage .nc-faq { padding: 4px 14px; }
#giftCodePage .nc-faq details { border-bottom: 1px solid rgba(255,255,255,.08); }
#giftCodePage .nc-faq details:last-child { border-bottom: 0; }
#giftCodePage .nc-faq summary {
  list-style: none; cursor: pointer; padding: 11px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; font-weight: 500;
}
#giftCodePage .nc-faq summary::-webkit-details-marker { display: none; }
#giftCodePage .nc-faq summary::after { content: "+"; font-size: 15px; color: var(--nc-lime); transition: transform .25s; }
#giftCodePage .nc-faq details[open] summary::after { transform: rotate(45deg); }
#giftCodePage .nc-faq p { padding: 0 0 12px; font-size: 11px; line-height: 1.55; color: var(--nc-muted); }


/* ── TIPS ── */
#giftCodePage .nc-tip {
  position: relative;
  padding: 14px 14px 12px;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
}
#giftCodePage .nc-tip::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(183,243,74,.18), rgba(183,243,74,0) 70%);
  pointer-events: none;
}
#giftCodePage .nc-tip-tag {
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--nc-border);
  font-size: 9px; font-weight: 500; letter-spacing: .8px;
  color: var(--nc-lime);
}
#giftCodePage .nc-tip-text {
  min-height: 34px;
  font-size: 11.5px; line-height: 1.55;
  color: rgba(255,255,255,.9);
  transition: opacity .3s ease;
}
#giftCodePage .nc-tip-text.is-out { opacity: 0; }
#giftCodePage .nc-tip-dots { display: flex; gap: 5px; }
#giftCodePage .nc-tip-dots i {
  width: 14px; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,.18);
  transition: background .3s, width .3s;
}
#giftCodePage .nc-tip-dots i.is-on { width: 24px; background: var(--nc-lime); }

#giftCodePage .nc-foot { font-size: 9.5px; color: var(--nc-muted); text-align: center; padding: 2px 0 8px; }


@media (max-width: 360px) {
  #giftCodePage .nc-btn-zone { width: 128px; height: 128px; }
  #giftCodePage .nc-ring { inset: 26px; }
  #giftCodePage .nc-btn { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  #giftCodePage .nc-orb,
  #giftCodePage .nc-beam,
  #giftCodePage .nc-ticker-track,
  #giftCodePage .nc-orbit,
  #giftCodePage .nc-ring { animation: none; }
  #giftCodePage .nc-text,
  #giftCodePage .nc-tip-text,
  #giftCodePage .nc-faq summary::after { transition: none; }
  #giftCodePage .nc-text.is-typing::after { animation: none; }
}


/* ── used by your records page, unchanged ── */
.record-id {
  font-weight: 700;
  font-family: 'Courier New', Courier, monospace;
  color: #000000;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.5px;
  user-select: all;
}


/* ── BOTTOM NAV — dark transparent glass, raised centre button ── */
.bottom-nav {
  --nav-active: #B7F34A;
  --nav-active-bg: rgba(183, 243, 74, .14);
  --nav-muted: #A8B8AD;
  --nav-center-1: #FFE58A;
  --nav-center-2: #F5A623;

  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  margin: 0;
  z-index: 9999;
  background: rgba(5, 9, 7, .55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(183, 243, 74, .18);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-pill-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 6px 6px 4px;
  box-sizing: border-box;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px 0;
  text-decoration: none;
  color: var(--nav-muted);
  -webkit-tap-highlight-color: transparent;
}

.nav-icon-wrapper {
  width: 46px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background .2s ease, transform .2s ease;
}

.nav-icon-wrapper svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item .nav-label-text {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--nav-muted);
}

.nav-item:active .nav-icon-wrapper { transform: scale(.94); }

/* ── ACTIVE ── */
.nav-item.active { color: var(--nav-active); }
.nav-item.active .nav-icon-wrapper { background: var(--nav-active-bg); }
.nav-item.active .nav-label-text { color: var(--nav-active); font-weight: 700; }

/* ── CENTRE: raised Intern button ── */
.nav-center { margin-top: -26px; }
.nav-center .nav-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--nav-center-1), var(--nav-center-2));
  border: 3px solid rgba(5, 9, 7, .85);
  box-shadow: 0 6px 16px rgba(245, 166, 35, .4), 0 0 0 1px rgba(255, 229, 138, .35);
  color: #07110A;
}
.nav-center .nav-icon-wrapper svg { width: 25px; height: 25px; stroke-width: 2; }
.nav-center .nav-label-text { color: var(--nav-center-2); font-weight: 700; }
.nav-center.active .nav-icon-wrapper { background: linear-gradient(145deg, var(--nav-center-1), var(--nav-center-2)); }
.nav-center.active .nav-label-text { color: var(--nav-center-2); }
/* Default state */
#bottomNav {
    display: none; 
}

/* Visibility state */
.nav-visible {
    display: flex !important;
}




.ticker-search-bar {
  width: 90%;
  max-width: 400px;
  margin: 15px auto; /* Spacing between flyer and action buttons */
  height: 45px;
  background: #ffffff;
  border-radius: 50px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(157, 78, 221, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite; /* Adjust speed here */
}

.ticker-item {
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
  color: #5c6a7e;
  gap: 8px;
}

.user-icon {
  width: 24px;
  height: 24px;
  background: #9d4edd;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}



/* ── DOWNLOAD APP PAGE ── */
.dl-page {
  --dl-blue: #003580;
  --dl-blue-mid: #0a4aa8;
  --dl-tint: #e6edfa;
  --dl-tint-line: #d6e1f5;
  --dl-ash: #eceff4;
  --dl-ink: #101a33;
  --dl-muted: #6b7587;

  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 14px 60px;
  box-sizing: border-box;
  background: var(--dl-ash);
  color: var(--dl-ink);
  font-family: 'Inter', sans-serif;
}
.dl-page * { box-sizing: border-box; }

/* header */
.dl-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.dl-back {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--dl-tint-line);
  background: linear-gradient(180deg, #ffffff, #f1f4fa);
  color: var(--dl-ink);
  box-shadow: 0 2px 6px rgba(0,40,110,.08), inset 0 1px 0 #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dl-back:active { transform: scale(.94); }

.dl-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dl-head-label {
  font-size: 10.5px;
  letter-spacing: .6px;
  color: var(--dl-blue-mid);
}
.dl-head-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--dl-ink);
}
.dl-ring {
  flex: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 3px solid var(--dl-blue-mid);
  pointer-events: none;
}

/* hero card */
.dl-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 15px;
  padding: 24px 18px 22px;
  border-radius: 14px;
  border: 1px solid var(--dl-tint-line);
  background: linear-gradient(180deg, #eef3fc 0%, var(--dl-tint) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  pointer-events: none;
}
.dl-hero-arc {
  position: absolute;
  top: -44px;
  right: -40px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 22px solid rgba(10,74,168,.1);
}
.dl-hero-eyebrow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--dl-blue-mid);
}
.dl-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dl-blue-mid);
}
.dl-hero-title {
  position: relative;
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--dl-blue);
}
.dl-hero-sub {
  position: relative;
  margin: 0;
  font-size: 13.5px;
  color: var(--dl-muted);
}

/* banner slot */
.dl-banner {
  height: 194px;
  margin-bottom: 17px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--dl-tint-line);
  background: linear-gradient(180deg, #eef3fc 0%, var(--dl-tint) 100%);
  pointer-events: none;
}
.dl-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* use "contain" to show the whole image */
  display: block;
}

/* disabled store buttons */
.dl-store {
  width: 100%;
  height: 49px;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  color: #7b8498;
  background: linear-gradient(180deg, #e4e8f1, #dce1ec);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  cursor: default;
  pointer-events: none;
}
.dl-soon {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--dl-muted);
}



@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

#profilePage {
  --bg-primary: #050907;
  --bg-secondary: #0B2115;
  --bg-tertiary: #103522;
  --primary-green: #16A34A;
  --emerald-green: #087A3D;
  --lime-green: #B7F34A;
  --gold: #F5C542;
  --gold-light: #FFE58A;
  --text-primary: #F4F7F4;
  --text-secondary: #A8B8AD;
  --text-dark: #07110A;
  --glass-bg: rgba(11, 33, 21, 0.55);
  --glass-border: rgba(183, 243, 74, 0.20);
  --glass-blur: blur(14px);
  --green-glow: 0 0 16px rgba(22, 163, 74, 0.18);
  --gold-glow: 0 0 14px rgba(245, 197, 66, 0.20);
  --nav-h: 58px;

  position: fixed;
  top: 0; left: 0; right: 0;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  width: 100%;
  overflow: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
  color-scheme: dark;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  z-index: 500;
  box-sizing: border-box;
}
#profilePage *, #profilePage *::before, #profilePage *::after { box-sizing: border-box; }
#profilePage p, #profilePage h3 { margin: 0; }
#profilePage button {
  -webkit-appearance: none; appearance: none;
  font-family: inherit; color: inherit; margin: 0; cursor: pointer;
}

/* ── BACKGROUND IMAGE LAYER ── */
#profilePage .pf-bg { position: absolute; inset: 0; z-index: 0; }
#profilePage .pf-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
#profilePage .pf-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 50% at 50% 0%, rgba(22,163,74,.20), transparent 65%),
    linear-gradient(180deg, rgba(5,9,7,.45) 0%, rgba(5,9,7,.80) 100%);
}

/* ── SCROLL AREA ── */
#profilePage .pf-scroll {
  position: absolute; inset: 0; z-index: 1;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
#profilePage .pf-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 12px 90px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* shared glass */
#profilePage .pf-hero,
#profilePage .pf-accounts,
#profilePage .pf-actions,
#profilePage .pf-gift,
#profilePage .pf-services {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-radius: 16px;
  box-shadow: var(--green-glow), inset 0 1px 0 rgba(255,255,255,.05);
}

/* ── HEADER ── */
#profilePage .pf-head { display: flex; align-items: center; gap: 10px; }
#profilePage .pf-avatar {
  width: 48px; height: 48px; flex: none;
  border-radius: 50%; overflow: hidden;
  border: 2px solid var(--lime-green);
  background: var(--bg-tertiary);
}
#profilePage .pf-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
#profilePage .pf-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
#profilePage .pf-phone-row { display: flex; align-items: center; gap: 6px; }
#profilePage .pf-phone {
  font-size: 15px; font-weight: 600; letter-spacing: .3px;
  color: var(--text-primary); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#profilePage .pf-phone::before { content: "+234 "; }
#profilePage .pf-copy-btn {
  width: 22px; height: 22px; padding: 0; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--glass-border); border-radius: 7px;
  background: var(--glass-bg); color: var(--text-secondary); font-size: 10px;
}
#profilePage .pf-copy-btn:active { transform: scale(.92); }
#profilePage .pf-meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
#profilePage .pf-tier {
  display: inline-flex; align-items: center; height: 20px; padding: 0 10px;
  border-radius: 999px; font-size: 10.5px; font-weight: 600; white-space: nowrap;
  color: var(--lime-green);
  background: rgba(22,163,74,.22);
  border: 1px solid var(--glass-border);
}
#profilePage .pf-welcome {
  font-size: 10.5px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#profilePage .pf-welcome:empty::before { content: "Welcome back"; }
#profilePage .pf-logout {
  width: 36px; height: 36px; flex: none; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px; font-size: 14px;
  color: var(--gold-light);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
#profilePage .pf-logout:active { transform: scale(.94); }

/* ── HERO ── */
#profilePage .pf-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
  padding: 16px 10px 14px;
}
#profilePage .pf-hero::after {
  content: ""; position: absolute; left: 50%; top: 20%; bottom: 20%;
  width: 1px; background: linear-gradient(180deg, transparent, var(--glass-border), transparent);
}
#profilePage .pf-hero-col {
  min-width: 0; padding: 0 6px;
  display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center;
}
#profilePage .pf-hero-lbl { font-size: 10.5px; font-weight: 500; color: var(--text-secondary); }
#profilePage .pf-hero-val {
  max-width: 100%;
  font-size: 17px; font-weight: 600; line-height: 1.2;
  color: var(--lime-green);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* spin wheel + chest: small corner badges */
#profilePage .pf-spin {
  position: absolute; left: -6px; top: -12px; z-index: 3;
  padding: 0; border: 0; background: none;
}
#profilePage .pf-spin:active, #profilePage .pf-chest:active { transform: scale(.92); }
#profilePage .pf-spin-wheel {
  display: block; width: 38px; height: 38px; border-radius: 50%; position: relative;
  border: 2px solid var(--gold);
  background: conic-gradient(#E11D48 0 45deg, #F5C542 0 90deg, #16A34A 0 135deg, #2563EB 0 180deg,
                             #E11D48 0 225deg, #F5C542 0 270deg, #16A34A 0 315deg, #2563EB 0 360deg);
  box-shadow: var(--gold-glow), 0 3px 8px rgba(0,0,0,.5);
  animation: pfSpin 8s linear infinite;
}
#profilePage .pf-spin-wheel i {
  position: absolute; inset: 0; margin: auto; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold));
  border: 1.5px solid #8A5A0B;
}
@keyframes pfSpin { to { transform: rotate(360deg); } }

#profilePage .pf-chest {
  position: absolute; right: -4px; top: -14px; z-index: 3;
  padding: 0; border: 0; background: none; line-height: 0;
  filter: drop-shadow(0 0 8px rgba(245,197,66,.45));
  animation: pfFloat 2.6s ease-in-out infinite;
}
@keyframes pfFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* ── ACCOUNTS ── */
#profilePage .pf-accounts { display: grid; grid-template-columns: 1fr 1fr; }
#profilePage .pf-acc {
  min-width: 0; padding: 11px 12px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
#profilePage .pf-acc:nth-child(odd) { border-right: 1px solid var(--glass-border); }
#profilePage .pf-acc:nth-child(-n+2) { border-bottom: 1px solid var(--glass-border); }
#profilePage .pf-acc-lbl { font-size: 10.5px; color: var(--text-secondary); }
#profilePage .pf-acc-val {
  max-width: 100%;
  font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* ── ACTIONS ── */
#profilePage .pf-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px; }
#profilePage .pf-act {
  min-width: 0; min-height: 62px; padding: 8px 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border-radius: 12px; border: 1px solid var(--glass-border);
  background: rgba(16,53,34,.45);
}
#profilePage .pf-act:active { transform: scale(.95); }
#profilePage .pf-act i { font-size: 17px; color: var(--lime-green); }
#profilePage .pf-act span { font-size: 10px; font-weight: 500; line-height: 1.2; text-align: center; color: var(--text-primary); }

/* ── GIFT CODE ── */
#profilePage .pf-gift {
  padding: 12px;
  background: linear-gradient(135deg, rgba(11,33,21,.55), rgba(70,52,10,.35));
}
#profilePage .pf-gift-top { display: flex; align-items: center; gap: 10px; }
#profilePage .pf-gift-ic {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text-dark);
  background: linear-gradient(145deg, var(--lime-green), var(--primary-green));
}
#profilePage .pf-gift-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#profilePage .pf-gift-txt b { font-size: 13px; font-weight: 600; }
#profilePage .pf-gift-txt span { font-size: 10.5px; color: var(--text-secondary); }
#profilePage .pf-gift-spark { color: var(--gold); font-size: 14px; }
#profilePage .pf-gift-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
#profilePage .pf-gift-input {
  flex: 1; min-width: 0; height: 40px; padding: 0 12px;
  border-radius: 11px; border: 1px solid var(--glass-border);
  background: rgba(5,9,7,.55); color: var(--text-primary);
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase; outline: none;
}
#profilePage .pf-gift-input::placeholder { color: rgba(168,184,173,.5); letter-spacing: 2px; }
#profilePage .pf-gift-input:focus { border-color: var(--lime-green); }
#profilePage .pf-gift-claim {
  height: 40px; padding: 0 14px; border: 0; border-radius: 11px; flex: none;
  font-size: 13px; font-weight: 700; background: transparent; color: rgba(168,184,173,.6);
  transition: all .2s;
}
#profilePage .pf-gift-claim.on {
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--lime-green), var(--primary-green));
}
#profilePage .pf-gift-claim:active { transform: scale(.95); }
#profilePage .pf-gift-msg { margin-top: 8px; font-size: 11px; color: var(--gold-light); }
#profilePage .pf-gift-msg:empty { display: none; }

/* ── SERVICES ── */
#profilePage .pf-services { padding: 8px; }
#profilePage .pf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
#profilePage .pf-svc {
  min-width: 0; min-height: 62px; padding: 8px 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border-radius: 12px; border: 1px solid var(--glass-border);
  background: rgba(16,53,34,.45); text-align: center;
}
#profilePage .pf-svc:active { transform: scale(.95); }
#profilePage .pf-svc-ic { display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--lime-green); }
#profilePage .pf-svc-lbl { font-size: 10px; font-weight: 500; line-height: 1.2; color: var(--text-primary); }

/* ── FLOATING SUPPORT ── */
#profilePage .pf-fab {
  position: fixed; right: 12px;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 14px);
  width: 44px; height: 44px; padding: 0; z-index: 510;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1.5px solid var(--gold-light);
  font-size: 18px; color: #fff;
  background: linear-gradient(145deg, var(--primary-green), var(--emerald-green));
  box-shadow: 0 5px 14px rgba(0,0,0,.5);
  animation: pfPulse 2.4s ease-out infinite;
}
#profilePage .pf-fab:active { transform: scale(.92); }
@keyframes pfPulse {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,.5), 0 5px 14px rgba(0,0,0,.5); }
  70%  { box-shadow: 0 0 0 12px rgba(22,163,74,0), 0 5px 14px rgba(0,0,0,.5); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0), 0 5px 14px rgba(0,0,0,.5); }
}

#profilePage .pf-compat-hidden { display: none; }

@media (max-width: 360px) {
  #profilePage .pf-hero-val { font-size: 15px; }
  #profilePage .pf-acc-val { font-size: 13px; }
  #profilePage .pf-act span, #profilePage .pf-svc-lbl { font-size: 9.5px; }
}

/* success popup + confetti must show above the profile page */
.rc-pop-overlay { z-index: 3000 !important; }
.rc-confetti { z-index: 3100 !important; }





/* =========================================================
   BANK PAGE: white / ash shiny / light green, small text
   ========================================================= */
.bank-page {
  --bk-ink: #17231d; --bk-muted: #7b8a82; --bk-line: #e3e9e5;
  --bk-green: #2fbf71; --bk-green-deep: #1f9d58; --bk-soft: #e6f6ed; --bk-soft2: #f2fbf6;

  position: fixed; inset: 0; z-index: 9000;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; color: var(--bk-ink);
  background:
    radial-gradient(120% 50% at 50% -8%, #ffffff 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #f1f4f2 0%, #e9eeeb 100%);
}
.bank-page * { box-sizing: border-box; }

/* header */
.bank-header {
  position: sticky; top: 0; z-index: 5; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bk-line);
}
.bank-header-title { font-size: 13.5px; font-weight: 700; }
.bank-round-btn {
  width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--bk-ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bank-header .bank-round-btn { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); }
.bank-round-btn:active { background: var(--bk-soft); }
.bank-round-btn.small { width: 30px; height: 30px; font-size: 12px; background: #f1f4f2; }

.bank-body { width: 100%; max-width: 430px; margin: 0 auto; padding: 14px 14px 60px; }

/* intro */
.bank-intro { display: flex; align-items: center; gap: 12px; margin: 2px 2px 12px; }
.bank-intro-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; font-size: 17px; color: #fff;
  background: linear-gradient(145deg, #4fd88c, #1f9d58);
  box-shadow: 0 8px 16px rgba(47,191,113,.28), inset 0 1px 1px rgba(255,255,255,.4);
}
.bank-intro h1 { margin: 0 0 2px; font-size: 15px; font-weight: 700; letter-spacing: -.1px; }
.bank-intro p  { margin: 0; font-size: 11.5px; color: var(--bk-muted); line-height: 1.4; }

/* instructions */
.bank-notes {
  margin-bottom: 12px; padding: 12px 13px;
  background: linear-gradient(180deg, #f4fcf7, #eaf8f0);
  border: 1px solid #d6efe0; border-radius: 16px;
  box-shadow: 0 4px 12px rgba(47,191,113,.08);
}
.bank-notes-title { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--bk-green-deep); margin-bottom: 8px; }
.bank-notes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bank-notes li { display: flex; gap: 9px; align-items: flex-start; font-size: 11px; line-height: 1.45; color: #3d4c44; }
.bank-notes li i { flex-shrink: 0; width: 20px; height: 20px; margin-top: 0; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 10px; background: #fff; color: var(--bk-green-deep); box-shadow: 0 2px 5px rgba(23,35,29,.06); }
.bank-notes b { font-weight: 700; color: var(--bk-ink); }

/* form card */
.bank-card {
  padding: 14px 14px 16px; border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fbfdfc); border: 1px solid #fff;
  box-shadow: 0 8px 22px rgba(23,35,29,.07), 0 1px 3px rgba(23,35,29,.05);
}
.bank-label { display: flex; align-items: center; gap: 6px; margin: 12px 0 6px; font-size: 11px; font-weight: 600; color: #3d4c44; }
.bank-label:first-child { margin-top: 0; }
.bank-label i { font-size: 10.5px; color: var(--bk-green-deep); }
.bank-label em { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 500; color: var(--bk-muted); }

.bank-input {
  width: 100%; height: 42px; padding: 0 13px; background: #f6f8f7;
  border: 1px solid var(--bk-line); border-radius: 12px;
  font-family: inherit; font-size: 13px; color: var(--bk-ink); outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.bank-input::placeholder { color: #a7b2ac; font-size: 12.5px; }
.bank-input:focus { background: #fff; border-color: var(--bk-green); box-shadow: 0 0 0 3px rgba(47,191,113,.16); }
.bank-select { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; }
.bank-select span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bank-select span.is-placeholder { color: #a7b2ac; font-size: 12.5px; }
.bank-select i { font-size: 11px; color: var(--bk-green-deep); }
.bank-hint { margin: 6px 0 0; font-size: 10.5px; color: var(--bk-muted); }

/* checkbox */
.bank-check { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding: 10px 11px; background: var(--bk-soft2); border: 1px solid #dff3e8; border-radius: 12px; cursor: pointer; }
.bank-check input { position: absolute; opacity: 0; pointer-events: none; }
.bank-check-box { position: relative; flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; border: 1.5px solid #b9c7bf; border-radius: 6px; background: #fff; transition: background .15s, border-color .15s; }
.bank-check input:checked + .bank-check-box { border-color: var(--bk-green); background: linear-gradient(145deg, #4fd88c, #1f9d58); }
.bank-check input:checked + .bank-check-box::after { content: ''; position: absolute; left: 5.5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.bank-check-text { font-size: 11px; line-height: 1.45; color: #3d4c44; }
.bank-check-text b { font-weight: 700; color: var(--bk-green-deep); word-break: break-word; }

/* button */
.bank-btn {
  position: relative; overflow: hidden; width: 100%; height: 44px; margin-top: 14px; border: 0; border-radius: 13px;
  color: #fff; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #4fd88c 0%, #2fbf71 55%, #1f9d58 100%);
  box-shadow: 0 8px 18px rgba(47,191,113,.3), inset 0 1px 2px rgba(255,255,255,.4);
  transition: transform .1s, opacity .15s;
}
.bank-btn::after { content: ""; position: absolute; top: -70%; left: -10%; width: 55%; height: 100%; background: rgba(255,255,255,.25); border-radius: 50%; filter: blur(10px); transform: rotate(-20deg); pointer-events: none; }
.bank-btn span { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; }
.bank-btn:active { transform: scale(.98); }
.bank-btn:disabled { opacity: .55; }

.bank-footnote { margin: 14px 4px 0; text-align: center; font-size: 10.5px; color: var(--bk-muted); }
.bank-footnote i { color: var(--bk-green-deep); margin-right: 4px; }

/* linked card */
.bank-linked-card { padding: 14px; border-radius: 18px; background: linear-gradient(180deg, #fff, #fbfdfc); border: 1px solid #fff; box-shadow: 0 8px 22px rgba(23,35,29,.07); }
.bank-linked-top { display: flex; align-items: center; gap: 11px; }
.bank-chip { width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 11px; background: linear-gradient(145deg, #2a3a32, #17231d); font-size: 11.5px; font-weight: 700; color: #fff; }
.bank-linked-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bank-linked-info strong { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bank-linked-info span { font-size: 11.5px; letter-spacing: 1px; color: var(--bk-muted); }
.bank-linked-badge { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: var(--bk-soft); font-size: 10px; font-weight: 700; color: var(--bk-green-deep); }
.bank-linked-holder { display: flex; flex-direction: column; gap: 3px; margin-top: 12px; padding: 10px 12px; background: var(--bk-soft2); border: 1px solid #dff3e8; border-radius: 12px; }
.bank-linked-holder span { font-size: 10px; color: var(--bk-muted); }
.bank-linked-holder strong { font-size: 12.5px; font-weight: 700; }
.bank-linked-note { margin: 12px 2px 0; font-size: 10.5px; line-height: 1.5; color: var(--bk-muted); }
.bank-linked-note i { color: var(--bk-green-deep); margin-right: 4px; }

/* picker sheet */
.bank-sheet-overlay { position: fixed; inset: 0; z-index: 20; display: none; align-items: flex-end; background: rgba(10,20,15,.45); }
.bank-sheet-overlay.show { display: flex; }
.bank-sheet { width: 100%; max-width: 480px; max-height: 84vh; margin: 0 auto; display: flex; flex-direction: column; padding: 10px 14px 0; border-radius: 22px 22px 0 0; background: #fff; animation: bankSheetUp .22s ease-out; }
@keyframes bankSheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.bank-sheet-handle { width: 36px; height: 4px; margin: 0 auto 10px; border-radius: 4px; background: var(--bk-line); }
.bank-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bank-sheet-head h3 { margin: 0; font-size: 14px; font-weight: 700; }
.bank-search { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 13px; border: 1px solid var(--bk-green); border-radius: 12px; background: #fff; color: var(--bk-green-deep); box-shadow: 0 0 0 3px rgba(47,191,113,.12); }
.bank-search i { font-size: 13px; }
.bank-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 13px; color: var(--bk-ink); }
.bank-search input::placeholder { color: #a7b2ac; }
.bank-sheet-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); }
.bank-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid #eef2ef; background: none; font-family: inherit; text-align: left; cursor: pointer; }
.bank-row:last-child { border-bottom: 0; }
.bank-row:active { background: var(--bk-soft2); }
.bank-row .bank-chip { width: 32px; height: 32px; font-size: 10px; border-radius: 10px; }
.bank-row-name { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 500; }
.bank-row i { font-size: 10.5px; color: var(--bk-green-deep); }
.bank-empty-search { padding: 22px 0; text-align: center; font-size: 11.5px; color: var(--bk-muted); }



/* ── iOS-STYLE CONFIRM ALERT ── */
.ios-alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.ios-alert-overlay.show { opacity: 1; }

.ios-alert-box {
  width: 270px;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.15s ease;
}
.ios-alert-overlay.show .ios-alert-box { transform: scale(1); }

.ios-alert-title {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 20px 18px 4px;
}

.ios-alert-message {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12.5px;
  padding: 4px 18px 18px;
  line-height: 1.4;
}

.ios-alert-actions {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ios-alert-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--green-bright);
  font-size: 15px;
  padding: 12px 0;
  cursor: pointer;
  font-family: inherit;
}
.ios-alert-btn + .ios-alert-btn { border-left: 1px solid rgba(255, 255, 255, 0.15); }
.ios-alert-btn.accept { font-weight: 700; }

@media (max-width: 380px) {
  .bank-empty-state { padding-top: 70px; }
}



/* Add alongside the existing .ios-alert-* rules from the bank page CSS */
.ios-alert-btn.ok {
  font-weight: 700;
  color: #4A9EFF;
}




/* =========================================================
   RECHARGE — DARK GREEN + GOLD GLASS
   (single-page layout: amount grid, input, channels, button)
   ========================================================= */

#rechargePage {
  --g: #16A34A;                         /* primary green */
  --g-top: #B7F34A;                     /* lime (gradient top) */
  --g-text: #B7F34A;                    /* lime used for small text */
  --g-soft: rgba(22, 163, 74, .20);     /* soft green tint */
  --g-line: rgba(183, 243, 74, .20);

  --gold: #F5C542;
  --gold-light: #FFE58A;

  --ink: #F4F7F4;
  --muted: #A8B8AD;
  --faint: #7F9086;
  --line: rgba(183, 243, 74, .20);
  --ash: rgba(255, 255, 255, .08);
  --ash-2: rgba(255, 255, 255, .06);
  --dark: #07110A;

  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 500;
  background: #050907;
  color: var(--ink);
  color-scheme: dark;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

#rechargePage * { box-sizing: border-box; }
#rechargePage [hidden] { display: none !important; }


/* ── BACKGROUND (built-in green grid + your image on top) ── */
#rechargePage .rech-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 85% 6%, rgba(22, 163, 74, .38), transparent 70%),
    radial-gradient(50% 35% at 8% 55%, rgba(183, 243, 74, .12), transparent 70%),
    radial-gradient(60% 40% at 90% 96%, rgba(245, 197, 66, .10), transparent 70%),
    linear-gradient(rgba(183, 243, 74, .05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(183, 243, 74, .05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, #0B2115 0%, #050907 100%);
}
#rechargePage .rech-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#rechargePage .rech-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 7, .50) 0%, rgba(5, 9, 7, .84) 100%);
}


/* ── HEADER ── */
#rechargePage .recharge-header-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 14px;
  background: rgba(5, 9, 7, .60);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

#rechargePage .recharge-back-btn-v2 {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
}

#rechargePage .recharge-banner-title {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.1px;
  color: var(--ink);
}

#rechargePage .recharge-history-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ash);
  color: var(--gold-light);
  font-size: 13px;
  cursor: pointer;
}


/* ── CONTAINER ── */
#rechargePage .recharge-page-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 20px 16px calc(50px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
}


/* ── LABELS ── */
#rechargePage .rech-label-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 11px 2px;
}

#rechargePage .rech-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

#rechargePage .rech-label-channels { margin: 24px 0 11px 2px; }

#rechargePage .rech-min-note {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}


/* ── AMOUNT GRID ── */
#rechargePage .quick-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

#rechargePage .amount-option {
  width: 100%;
  height: 40px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(11, 33, 21, .58);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .25);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .1s ease;
  -webkit-tap-highlight-color: transparent;
}

#rechargePage .amount-option:active { transform: scale(.97); }

#rechargePage .amount-option.active,
#rechargePage .amount-option.selected {
  border-color: var(--g-top);
  background: var(--g-soft);
  color: var(--g-text);
  box-shadow: 0 0 14px rgba(22, 163, 74, .35);
}


/* ── AMOUNT INPUT ── */
#rechargePage .main-amount-input {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  margin-top: 14px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: rgba(5, 9, 7, .60);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color .15s ease, box-shadow .15s ease;
}

#rechargePage .main-amount-input:focus-within {
  border-color: var(--g-top);
  box-shadow: 0 0 0 3px rgba(183, 243, 74, .14);
}

#rechargePage .main-amount-currency {
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
}

#rechargePage #customAmount {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
}

#rechargePage #customAmount::placeholder {
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 400;
}

#rechargePage #customAmount::-webkit-inner-spin-button,
#rechargePage #customAmount::-webkit-outer-spin-button { -webkit-appearance: none; }
#rechargePage #customAmount { -moz-appearance: textfield; }


/* ── CHANNELS ── */
#rechargePage .channel-select-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

#rechargePage .channel-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid transparent;
  border-radius: 11px;
  background: var(--ash-2);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}

#rechargePage .channel-box-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

#rechargePage .channel-box.selected {
  border-color: var(--g-top);
  background: var(--g-soft);
  box-shadow: 0 0 14px rgba(22, 163, 74, .30);
}

#rechargePage .channel-box.selected .channel-box-name {
  font-weight: 600;
  color: var(--g-text);
}


/* ── MAIN BUTTON ── */
#rechargePage .deposit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  margin-top: 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--g-top), var(--g));
  color: var(--dark);
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: .1px;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(22, 163, 74, .38), 0 2px 5px rgba(22, 163, 74, .25);
  transition: transform .1s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}

#rechargePage .deposit-btn i { font-size: 14px; }

#rechargePage .deposit-btn:active {
  transform: scale(.98);
  box-shadow: 0 5px 12px rgba(22, 163, 74, .3);
}

#rechargePage .deposit-btn:disabled {
  background: var(--ash);
  color: var(--faint);
  box-shadow: none;
  cursor: not-allowed;
}


/* ── NOTICE + NOTES ── */
#rechargePage .rech-notice {
  margin-top: 20px;
  padding: 11px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(11, 33, 21, .6), rgba(70, 52, 10, .35));
  border: 1px solid rgba(245, 197, 66, .28);
  color: var(--gold-light);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
}

#rechargePage .rech-notes {
  list-style: none;
  margin: 14px 2px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

#rechargePage .rech-notes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

#rechargePage .rech-notes i {
  width: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  text-align: center;
  font-size: 12px;
  color: var(--g-text);
}

#rechargePage .rech-notes p {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
}

#rechargePage .rech-link-btn {
  align-self: center;
  margin-top: 22px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--g-text);
  font-size: 11.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}


/* ── HIDDEN COMPATIBILITY ── */
#rechargePage #manualTransferCard,
#rechargePage #rechargeRulesBox {
  display: none !important;
}


/* ── SCROLLBAR ── */
#rechargePage::-webkit-scrollbar { width: 3px; }
#rechargePage::-webkit-scrollbar-thumb {
  background: rgba(183, 243, 74, .45);
  border-radius: 99px;
}


/* ── SMALL PHONES ── */
@media (max-width: 360px) {
  #rechargePage .amount-option { font-size: 11px; height: 38px; }
}



/* =========================================================
   NETWORK LOADER — rotating ring + "Verifying payment"
   ========================================================= */

.rech-loader-popup {
  width: min(200px, calc(100vw - 60px)) !important;
  padding: 0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: rgba(11, 33, 21, .96) !important;
  border: 1px solid rgba(183, 243, 74, .25) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .55), 0 0 20px rgba(22, 163, 74, .25) !important;
}

.rech-loader-popup .swal2-html-container {
  margin: 0 !important;
  padding: 0 !important;
}

.rech-loader {
  padding: 24px 16px 20px;
  text-align: center;
}

.rech-loader-spinner {
  position: relative;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(22, 163, 74, .18);
}

.rech-loader-spinner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(183, 243, 74, .18);
}

.rech-loader-spinner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #B7F34A;
  border-right-color: rgba(183, 243, 74, .45);
  animation: rech-loader-spin .9s linear infinite;
}

.rech-loader-icon {
  font-size: 17px;
  color: #B7F34A;
  animation: rech-loader-pulse 1.4s ease-in-out infinite;
}

.rech-loader-text {
  margin: 0;
  color: #F4F7F4;
  font-size: 12.5px;
  font-weight: 600;
}

@keyframes rech-loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes rech-loader-pulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}


/* =========================================================
   MANUAL CHECKOUT — ash / white / neon yellow, minimalist
   ========================================================= */

.mcp-page {
  --mcp-yellow: #F5E600;
  --mcp-yellow-deep: #D4C800;
  --mcp-ink: #111111;
  --mcp-muted: #8A8F98;
  --mcp-faint: #B4B8BF;
  --mcp-line: #EAEAEC;
  --mcp-ash: #F4F4F5;
  --mcp-warn: #B4860B;

  position: fixed;
  inset: 0;
  z-index: 999998;
  background: var(--mcp-ash);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: 'Inter', sans-serif;
  color: var(--mcp-ink);
  box-sizing: border-box;
}
.mcp-page * { box-sizing: border-box; }

/* ── TOPBAR ── */
.mcp-topbar {
  display: flex;
  align-items: center;
  padding: 16px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--mcp-ash);
}
.mcp-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: var(--mcp-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.mcp-wrap {
  max-width: 430px;
  margin: 0 auto;
  padding: 4px 20px 36px;
}

.mcp-page-title {
  margin: 4px 0 4px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--mcp-ink);
}
.mcp-page-sub {
  margin: 0 0 24px;
  font-size: 12.5px;
  color: var(--mcp-muted);
}

/* ── AMOUNT CARD ── */
.mcp-amount-card {
  margin: 18px 0 20px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #FCFBE6;
  border: 1px solid #EDE9B8;
  text-align: center;
}
.mcp-amount-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--mcp-muted);
}
.mcp-amount-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}
.mcp-amount-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--mcp-ink);
  letter-spacing: -0.4px;
}
.mcp-copy-icon {
  border: none;
  background: #ffffff;
  color: var(--mcp-muted);
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.mcp-copy-icon:active { background: var(--mcp-yellow); color: var(--mcp-ink); }

.mcp-section-caption {
  margin: 0 0 10px 2px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--mcp-muted);
}

/* ── DETAILS CARD ── */
.mcp-details-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 6px 18px 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.mcp-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--mcp-line);
}
.mcp-detail-row-last { border-bottom: none; padding-bottom: 4px; }

.mcp-detail-label {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--mcp-muted);
  margin-bottom: 3px;
}
.mcp-detail-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--mcp-ink);
  word-break: break-word;
}
.mcp-detail-accent { color: var(--mcp-warn); }

.mcp-warn-line {
  margin: 0;
  padding: 7px 0 2px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--mcp-warn);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── TIMER ── */
.mcp-timer-block {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--mcp-line);
}
.mcp-timer-text {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--mcp-muted);
  margin-bottom: 8px;
}
.mcp-timer-text #mcpCountdown { color: var(--mcp-ink); font-weight: 700; }
.mcp-timer-track {
  height: 4px;
  border-radius: 999px;
  background: var(--mcp-ash);
  overflow: hidden;
}
.mcp-timer-fill {
  height: 100%;
  width: 100%;
  background: var(--mcp-yellow);
  border-radius: 999px;
  transition: width 1s linear;
}

/* ── TIPS ── */
.mcp-tips-list {
  margin: 18px 0 22px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--mcp-muted);
  line-height: 1.5;
}


/* ── PRIMARY BUTTON — neon yellow ── */
.mcp-primary-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 0;
  background: var(--mcp-yellow);
  color: var(--mcp-ink);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.1px;
}
.mcp-primary-btn:active { background: var(--mcp-yellow-deep); }
.mcp-primary-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.mcp-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  font-size: 10.5px;
  color: var(--mcp-faint);
}

/* =========================================================
   STEP 2 — CONFIRM PAGE (own page, not a sheet/overlay)
   ========================================================= */

.mcp-field-block {
  margin-bottom: 20px;
}
.mcp-field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--mcp-ink);
  margin-bottom: 8px;
}
.mcp-field-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--mcp-line);
  border-radius: 12px;
  background: #ffffff;
  font-size: 13px;
  color: var(--mcp-ink);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.mcp-field-input::placeholder { color: var(--mcp-faint); }
.mcp-field-input:focus { border-color: var(--mcp-yellow-deep); }

.mcp-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 26px 16px;
  border: 1.5px dashed var(--mcp-line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--mcp-muted);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.mcp-upload-zone i { font-size: 20px; color: var(--mcp-faint); }
.mcp-upload-zone:hover { border-color: var(--mcp-yellow-deep); }
.mcp-upload-zone.has-file {
  border-style: solid;
  border-color: var(--mcp-yellow-deep);
  background: #FCFBE6;
  color: var(--mcp-ink);
}
.mcp-upload-zone.has-file i { color: var(--mcp-yellow-deep); }

/* =========================================================
   SUCCESS PAGE
   ========================================================= */

.mcp-success-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  background: #ffffff;
}
.mcp-success-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--mcp-yellow);
  color: var(--mcp-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.mcp-success-page h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--mcp-ink);
}
.mcp-success-page p {
  margin: 0;
  font-size: 12.5px;
  color: var(--mcp-muted);
}


.record-card {
  position: relative;
}

.record-channel-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #111111;
  color: #FFD400;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
}



/* =========================================================
   WELCOME POPUP — dark glass card, chopped corners (top-left + bottom-right)
   ========================================================= */
.popup-overlay {
  --wc-lime: #B7F34A;
  --wc-green: #16A34A;
  --wc-text: #FFFFFF;
  --wc-muted: #A8B8AD;
  --wc-border: rgba(183, 243, 74, 0.45);
  --wc-cut: 22px;                      /* size of the chopped corners */

  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(4, 10, 6, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;                       /* your JS switches this to flex */
  align-items: center;
  justify-content: center;
  z-index: 999998;
  box-sizing: border-box;
  padding: 20px;
}

/* glow sits outside the clipped card (clip-path would cut a normal shadow) */
.wc-glow {
  width: min(340px, 100%);
  filter: drop-shadow(0 0 18px rgba(183, 243, 74, 0.22));
  animation: wc-pop-in 0.28s cubic-bezier(.2, .9, .3, 1.1);
}

/* outer layer = the 1px border colour, chopped */
.wc-modal {
  position: relative;
  padding: 1px;
  background: var(--wc-border);
  clip-path: polygon(
    var(--wc-cut) 0, 100% 0,
    100% calc(100% - var(--wc-cut)),
    calc(100% - var(--wc-cut)) 100%,
    0 100%, 0 var(--wc-cut)
  );
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wc-modal * { box-sizing: border-box; }

/* inner layer = the dark glass, chopped the same way so the border follows the diagonals */
.wc-inner {
  position: relative;
  padding: 34px 22px 24px;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(183, 243, 74, 0.10), rgba(183, 243, 74, 0) 60%),
    #0A160E;
  clip-path: polygon(
    calc(var(--wc-cut) - 0.6px) 0, 100% 0,
    100% calc(100% - var(--wc-cut) + 0.6px),
    calc(100% - var(--wc-cut) + 0.6px) 100%,
    0 100%, 0 calc(var(--wc-cut) - 0.6px)
  );
}

@keyframes wc-pop-in {
  from { transform: translateY(14px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0) scale(1);       opacity: 1; }
}

/* ── CLOSE (top right) ── */
.wc-x {
  position: absolute;
  top: 10px; right: 10px;
  width: 28px; height: 28px;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--wc-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wc-x svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.wc-x:hover { color: var(--wc-text); }
.wc-x:active { background: rgba(255, 255, 255, 0.08); }
.wc-x:focus-visible { outline: 2px solid var(--wc-lime); outline-offset: 2px; }

/* ── TELEGRAM ICON BOX (above the text) ── */
.wc-ico {
  width: 54px; height: 54px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  border: 1px solid var(--wc-border);
  background: linear-gradient(145deg, rgba(183, 243, 74, 0.14), rgba(22, 163, 74, 0.10));
  box-shadow: 0 0 18px rgba(183, 243, 74, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.wc-ico svg { width: 24px; height: 24px; fill: var(--wc-lime); }

/* ── TEXT ── */
.wc-head {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .3px;
  color: var(--wc-text);
}
.wc-sub {
  margin: 8px auto 0;
  max-width: 250px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--wc-muted);
}

/* ── THE ONE TELEGRAM BUTTON ── */
.wc-join {
  margin-top: 20px;
  height: 42px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 8px;
  background: linear-gradient(90deg, #16A34A 0%, #B7F34A 100%);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
  color: #07110A;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .1s, filter .15s;
}
.wc-join svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.wc-join:hover { filter: brightness(1.06); }
.wc-join:active { transform: scale(.98); }
.wc-join:focus-visible { outline: 2px solid var(--wc-text); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .wc-glow { animation: none; }
  .wc-join { transition: none; }
}


#welcomePopup {
  display: none; /* Changed from none to flex for visibility during testing */
}


.hm-hero-img video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.ft-alert-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(11, 15, 25, 0.55);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
  box-sizing: border-box;
}

.ft-alert-overlay.show {
  display: flex;
}

.ft-alert-card {
  width: 100%;
  max-width: 340px;
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 22px 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.18);
  animation: ft-alert-pop 0.2s ease-out;
  font-family: 'Inter', sans-serif;
}

@keyframes ft-alert-pop {
  from { transform: scale(0.94); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.ft-alert-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.ft-alert-icon.warning { background: #fff7e6; color: #d99a06; }
.ft-alert-icon.error   { background: #fdecec; color: #e5484d; }
.ft-alert-icon.success { background: #eaf6ec; color: #1a9c4a; }
.ft-alert-icon.info    { background: #eaf6ec; color: #16a34a; }

.ft-alert-title {
  font-size: 16px;
  font-weight: 800;
  color: #111111;
  margin: 0 0 8px;
}

.ft-alert-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(17, 17, 17, 0.56);
  margin: 0 0 20px;
}

/* review details block (used by ftConfirm's `html` option) */
.ft-alert-html {
  text-align: left;
  font-size: 13.5px;
  line-height: 1.7;
  color: #111111;
  margin: -10px 0 20px;
}

/* side-by-side confirm/cancel layout */
.ft-alert-btn-row {
  display: flex;
  gap: 10px;
}

.ft-alert-btn-row .ft-alert-btn {
  flex: 1;
  margin: 0; /* was width:100% standalone before, now shares the row */
}

.ft-alert-btn {
  border: none;
  background: #16A34A;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
}

/* neutral cancel styling, sits next to the confirm button */
.ft-alert-btn-cancel {
  background: #F1F1F1;
  color: #111111;
}

.ft-alert-btn:active { transform: scale(0.98); }


.referral-promo-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid #e7edfb;
  box-shadow: 0 8px 24px rgba(3, 87, 238, 0.08);
  max-width: 500px;
  
  /* 🌟 CHANGE THIS LINE: Adds negative top margin to shift it up, and pushes the bottom up */
  margin: -20px auto 35px auto; 
  
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.referral-promo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(3, 87, 238, 0.16);
}

.referral-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.referral-text-col { flex: 1; }

.referral-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #0357EE;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.referral-headline {
  font-size: 21px;
  font-weight: 800;
  color: #0b1220;
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.referral-subtext {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.referral-icon-badge {
  width: 42px;
  height: 42px;
  background: #eaf0fe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #0357EE;
  flex-shrink: 0;
  border: 1px solid #d7e3fb;
}

.referral-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.referral-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 30px;
  white-space: nowrap;
}

.referral-pill.green {
  background: #e8f8ef;
  color: #16a34a;
  border: 1px solid #c8ede0;
}

.referral-pill.amber {
  background: #fff6e6;
  color: #b45309;
  border: 1px solid #fbe3b0;
}

.referral-cta-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 13px;
  background: #0357EE;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(3, 87, 238, 0.25);
  transition: background 0.2s, transform 0.15s;
}

.referral-cta-btn:hover {
  background: #0241b8;
}

.referral-cta-btn:active {
  transform: scale(0.97);
}

@media (max-width: 380px) {
  .referral-headline { font-size: 19px; }
  .referral-icon-badge { width: 38px; height: 38px; border-radius: 10px; font-size: 15px; }
}


/* DAILY LOADER OVERLAY */
.daily-loader{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.55);
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  z-index:9999;
}

/* 3D SPINNER */
.spinner-3d{
  width:60px;
  height:60px;
  border:6px solid rgba(255,255,255,0.2);
  border-top:6px solid #00c2ff;
  border-radius:50%;
  animation:spin3d 1s linear infinite;
  margin-bottom:15px;
}

@keyframes spin3d{
  0%{transform:rotate(0deg);}
  100%{transform:rotate(360deg);}
}

.daily-loader p{
  color:white;
  font-weight:600;
  font-size:16px;
}


/* ===== PRODUCT PAGE ===== */
.product-page {
  width: 100%;
  padding: 20px;
  padding-bottom: 80px;
  padding-top: 65px; /* space for fixed header */
  background: #ffffff; /* white background */
  min-height: 100vh;
  color: #ffffff;      /* white text */
  display: none;       /* show when active */
}

/* ===== FIXED HEADER ===== */
.product-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1e40ff; /* blue header */
  padding: 12px 0;
  z-index: 1000;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;      /* white text */
  box-shadow: 0 3px 8px rgba(30, 64, 255, 0.2); /* subtle blue shadow */
}

.product-header i {
  margin-right: 8px;
  color: #ffffff; /* white icon */
}

/* ===== PREMIUM PRODUCT CARD - REDESIGNED ===== */
.premium-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  margin-top: -12px;
  margin-bottom: 16px;
  border: 1px solid #ede9f6;
  box-shadow: 0 4px 18px rgba(75, 0, 130, 0.07);
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  overflow: hidden;
}

/* ── TOP STRIP ── */
.inv-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #4b0082, #9d4edd);
}

.inv-vip-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.inv-vip-badge i {
  color: #e9d5ff;
  font-size: 14px;
}

.inv-days-pill {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.3);
}

/* ── BODY: IMAGE + STATS GRID ── */
.inv-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.inv-product-img {
  width: 85px;
  height: 85px;
  min-width: 85px;
  border-radius: 12px;
  background: #f5f0ff;
  border: 1px solid #ede9f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.inv-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.inv-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
}

.inv-stat-box {
  background: #faf7ff;
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid #ede9f6;
}

.inv-stat-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
}

.inv-stat-label i {
  color: #9d4edd;
  font-size: 9px;
}

.inv-stat-val {
  font-size: 13px;
  font-weight: 700;
  color: #9d4edd;
}

.inv-stat-val.dark {
  color: #0f172a;
}

.inv-stat-val.green {
  color: #16a34a;
}

/* ── FOOTER: DATE + PROGRESS BAR ── */
.inv-card-footer {
  padding: 0 16px 14px 16px;
  border-top: 1px solid #f3eeff;
  padding-top: 12px;
}

.inv-date-range {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #7c3aed;
  font-weight: 600;
  margin-bottom: 8px;
}

.inv-date-range i {
  color: #9d4edd;
}

.inv-progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: #ede9f6;
  border-radius: 99px;
  overflow: hidden;
}

.inv-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4b0082, #9d4edd);
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* ── COUNTDOWN ROW ── */
.inv-countdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #faf7ff;
  border-top: 1px solid #f3eeff;
}

.inv-next-label {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.inv-countdown-timer {
  font-family: monospace;
  font-weight: 700;
  color: #4b0082;
  font-size: 13px;
  letter-spacing: 1px;
}

/* ── MOBILE ── */
@media (max-width: 480px) {
  .inv-product-img {
    width: 72px;
    height: 72px;
    min-width: 72px;
  }
  .inv-stat-val {
    font-size: 12px;
  }
}



/* =========================================================
   INVITE — NRT dark / dim glass / green
   ========================================================= */
.invite-page {
  /* ====== PAGE BACKGROUND IMAGE (same idea as the dashboard) ====== */
  --invite-page-bg: url('dsh.png');

  --bg: #07110A;
  --lime: #B7F34A;
  --green: #16A34A;
  --gold: #F5C542;
  --text-main: #FFFFFF;
  --text-secondary: #A8B8AD;
  --text-dark: #07110A;
  --glass-border: rgba(183, 243, 74, 0.20);
  --green-glow: 0 0 20px rgba(22, 163, 74, 0.25);
  --gold-glow: 0 0 20px rgba(245, 197, 66, 0.20);

  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 999;
  display: none;
  flex-direction: column;
  box-sizing: border-box;
  color: var(--text-main);
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  /* tint over the image: lower the two numbers to show more image */
  background:
    linear-gradient(180deg, rgba(7,17,10,0.10) 0%, rgba(7,17,10,0.25) 100%),
    var(--invite-page-bg) center top / cover no-repeat,
    var(--bg);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
.invite-page *, .invite-page *::before, .invite-page *::after { box-sizing: border-box; }
.invite-page h1, .invite-page h2, .invite-page p { margin: 0; }
.invite-page [hidden] { display: none !important; }

.referral-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* shared dim glass */
.iv-card,
.iv-head,
.iv-stats {
  background: rgba(10, 22, 14, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}


/* ── HEADER ── */
.iv-head {
  padding: 11px 14px;
  border-radius: 12px;
}
.iv-head-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .2px;
  color: var(--text-main);
}
.iv-head-sub {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--text-secondary);
}


/* ── BANNER ── */
.iv-banner {
  width: 100%;
  aspect-ratio: 16 / 6.5;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, #0E2A1A, #07110A);
}
.iv-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


/* ── TOTALS ── */
.iv-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 14px;
  overflow: hidden;
}
.iv-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 13px 8px;
}
.iv-stat:first-child { border-right: 1px solid rgba(255, 255, 255, 0.08); }
.iv-stat-val {
  font-size: 15px;
  font-weight: 500;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.iv-stat-label { font-size: 10px; color: var(--text-secondary); }


/* ── INVITATION LINK + CODE (image tiles) ── */
.iv-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.iv-tile {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: #0A160E;
}
.iv-tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.iv-tile::after {                 /* dark layer so the text stays readable */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,14,0.65) 0%, rgba(10,22,14,0.88) 100%);
  pointer-events: none;
}
.iv-tile-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}
.iv-tile-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-main);
}

.iv-link-text {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  font-family: inherit;
  font-size: 10.5px;
  color: var(--text-main);
  text-overflow: ellipsis;
}
.iv-code-val {
  display: flex;
  align-items: center;
  height: 30px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--lime);
  word-break: break-all;
}

.iv-copy {
  height: 30px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.55);
  box-shadow: var(--green-glow);
  color: var(--text-main);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.iv-copy:active { transform: scale(.97); }


/* ── MY TEAM ── */
.iv-team {
  padding: 14px 14px 6px;
  border-radius: 14px;
}
.iv-team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.iv-team-title { font-size: 13px; font-weight: 500; color: var(--text-main); }
.iv-task-link {
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 10.5px;
  color: var(--text-secondary);
  cursor: pointer;
}

.iv-lv-row {
  display: grid;
  grid-template-columns: 40px 1fr 1fr 1.1fr;
  align-items: center;
  gap: 6px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.iv-lv-row:first-of-type { border-top: none; }

/* ring badge: Lv1 / Lv2 / Lv3 */
.iv-lv-badge {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--lime);
  border-bottom-color: transparent;     /* small gap in the ring, like the sample */
  font-size: 10.5px;
  font-weight: 500;
  color: var(--lime);
  transform: rotate(0deg);
}
.iv-lv-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.iv-lv-cell b {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.iv-lv-cell span { font-size: 9.5px; color: var(--text-secondary); }
.iv-lv-cell b span { font-size: inherit; color: inherit; }


/* ── WRITE-UP ── */
.iv-writeup {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 4px 4px 0;
}
.iv-writeup p {
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}


@media (max-width: 360px) {
  .iv-lv-row { grid-template-columns: 36px 1fr 1fr 1.1fr; gap: 4px; }
  .iv-lv-badge { width: 31px; height: 31px; font-size: 10px; }
  .iv-lv-cell b { font-size: 11.5px; }
  .iv-code-val { font-size: 14.5px; letter-spacing: 1.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .iv-copy { transition: none; }
}



/* =========================================================
   MY TEAM — forest background / dim glass / lime
   ========================================================= */
#earningsPage {
  /* ====== PAGE BACKGROUND: free forest photo (picsum image 28). Try id/10 or id/1043 for others ====== */
  --team-bg-image: url('https://picsum.photos/id/28/720/1280');

  --tm-bg: #07110A;
  --tm-lime: #B7F34A;
  --tm-green: #16A34A;
  --tm-text: #FFFFFF;
  --tm-muted: #A8B8AD;
  --tm-border: rgba(183, 243, 74, 0.20);
  --tm-glass: rgba(10, 22, 14, 0.85);
  --tm-line: rgba(255, 255, 255, 0.08);

  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  color: var(--tm-text);
  overflow-x: hidden;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  /* light tint over the forest, with a deep green fallback if the image can't load */
  background:
    linear-gradient(180deg, rgba(7,17,10,0.30) 0%, rgba(7,17,10,0.55) 100%),
    var(--team-bg-image) center / cover no-repeat fixed,
    linear-gradient(180deg, #0E2A1A 0%, #07110A 100%);
}
#earningsPage * { box-sizing: border-box; }


/* ── HEADER ── */
.tm-header {
  position: sticky; top: 0; z-index: 20;
  height: 46px;
  padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center; justify-content: center;
  background: var(--tm-glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tm-border);
}
.tm-title { font-size: 12.5px; font-weight: 500; letter-spacing: .3px; color: var(--tm-text); }
.tm-back {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  margin-top: calc(env(safe-area-inset-top, 0px) / 2);
  height: 26px; padding: 0 12px;
  border: 1px solid var(--tm-border); border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-family: inherit; font-size: 10.5px; font-weight: 500;
  color: var(--tm-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tm-back:active { background: rgba(255, 255, 255, 0.12); }


/* ── LEVEL TABS ── */
.tm-tabs {
  position: sticky; top: 46px; z-index: 15;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--tm-glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tm-border);
}
.tm-tab {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 11px 4px 10px; border: 0; background: transparent;
  font-family: inherit; color: var(--tm-muted); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tm-tab-amt  { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tm-tab-name { font-size: 10px; font-weight: 400; }
.tm-tab::after {
  content: ""; position: absolute; left: 30%; right: 30%; bottom: 0; height: 2px;
  border-radius: 3px 3px 0 0; background: var(--tm-lime);
  transform: scaleX(0); transition: transform .2s ease;
}
.tm-tab.is-active { color: var(--tm-text); }
.tm-tab.is-active .tm-tab-amt { color: var(--tm-lime); }
.tm-tab.is-active::after { transform: scaleX(1); }


/* ── MEMBERS PANEL (one dim glass panel, slim rows like the sample) ── */
.tm-wrap { max-width: 520px; margin: 0 auto; padding: 12px 14px 130px; }

.tm-listhead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px 8px;
  font-size: 10.5px; letter-spacing: .6px; color: var(--tm-muted);
}
.tm-listhead b { font-weight: 500; letter-spacing: 0; color: var(--tm-muted); font-variant-numeric: tabular-nums; }

.tm-list {
  display: flex; flex-direction: column;
  background: var(--tm-glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--tm-border);
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(22, 163, 74, 0.25);
  overflow: hidden;
}

/* member row */
.tm-card {
  position: relative;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--tm-line);
  border-radius: 0;
  box-shadow: none;
}
.tm-card:last-child { border-bottom: 0; }
.tm-card::before { display: none; }

.tm-card-top { position: relative; display: flex; align-items: center; gap: 10px; }
.tm-avatar { display: none; }                         /* no icons */
.tm-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tm-num  { font-size: 12px; font-weight: 500; letter-spacing: .3px; color: var(--tm-text); }
.tm-time { font-size: 9.5px; font-weight: 400; color: var(--tm-muted); }

/* level pill (outlined, like the sample) */
.tm-badge {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--tm-border);
  background: transparent;
  font-size: 9.5px; font-weight: 500;
  color: var(--tm-lime);
}
.tm-badge.is-idle { border-color: rgba(255,255,255,0.14); color: var(--tm-muted); }

/* figures */
.tm-figs {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-top: 9px; padding: 7px 0 0;
  background: transparent; border: 0; border-top: 1px dashed var(--tm-line); border-radius: 0;
}
.tm-fig { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.tm-fig + .tm-fig { border-left: 1px solid var(--tm-line); }
.tm-fig .lbl { font-size: 9px; font-weight: 400; color: var(--tm-muted); }
.tm-fig .val { font-size: 11px; font-weight: 500; color: var(--tm-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tm-fig.is-green .val { color: var(--tm-lime); }


/* ── EMPTY ── */
.tm-empty { display: flex; flex-direction: column; align-items: center; padding: 48px 20px 56px; text-align: center; }
.tm-empty svg { display: none; }                      /* no icons */
.tm-empty .t { font-size: 11.5px; font-weight: 500; color: var(--tm-muted); }
.tm-empty .s { margin-top: 4px; font-size: 10px; color: rgba(168, 184, 173, 0.7); }


/* ── LOADING ── */
.tm-skel {
  height: 74px;
  border-bottom: 1px solid var(--tm-line);
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.03) 100%);
  background-size: 200% 100%;
  animation: tmShine 1.2s linear infinite;
}
@keyframes tmShine { to { background-position: -200% 0; } }

.tm-retry {
  margin-top: 12px; padding: 7px 18px;
  border: 1px solid var(--tm-border); border-radius: 999px;
  background: rgba(22, 163, 74, 0.55); color: var(--tm-text);
  font-family: inherit; font-size: 11px; font-weight: 500;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .tm-skel { animation: none; }
  .tm-tab::after { transition: none; }
}




/* ============ WITHDRAWAL — DARK GREEN + GOLD GLASS ============ */
.withdraw-page{
  --g:#16A34A;
  --g-deep:#087A3D;
  --lime:#B7F34A;
  --gold:#F5C542;
  --gold-light:#FFE58A;
  --ink:#F4F7F4;
  --muted:#A8B8AD;
  --faint:#7F9086;
  --line:rgba(183,243,74,.20);
  --glass:rgba(11,33,21,.58);
  --dark:#07110A;
  --red:#FF6B6B;

  position:fixed;
  inset:0;
  width:100%;
  height:100vh;
  height:100dvh;
  overflow-y:auto;
  overflow-x:hidden;
  background:#050907;
  color:var(--ink);
  color-scheme:dark;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -webkit-overflow-scrolling:touch;
  -webkit-tap-highlight-color:transparent;
  box-sizing:border-box;
}
.withdraw-page *{ box-sizing:border-box; }
.withdraw-page button{ font-family:inherit; }
.wd-js-hidden{ display:none !important; }


/* ── BACKGROUND (built-in green grid + photo on top) ── */
.wd-bg{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(60% 40% at 85% 6%, rgba(22,163,74,.38), transparent 70%),
    radial-gradient(50% 35% at 8% 55%, rgba(183,243,74,.12), transparent 70%),
    radial-gradient(60% 40% at 90% 96%, rgba(245,197,66,.10), transparent 70%),
    linear-gradient(rgba(183,243,74,.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(183,243,74,.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, #0B2115 0%, #050907 100%);
}
.wd-bg img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.wd-shade{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(5,9,7,.55) 0%, rgba(5,9,7,.86) 100%);
}


/* ── HEADER ── */
.wd-topbar{
  position:sticky;
  top:0;
  z-index:5;
  display:flex;
  align-items:center;
  gap:12px;
  padding:calc(10px + env(safe-area-inset-top,0px)) 14px 10px;
  background:rgba(5,9,7,.55);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.wd-back{
  width:30px; height:30px; padding:0;
  display:grid; place-items:center;
  border:0; background:transparent; color:var(--ink); cursor:pointer;
}
.wd-title{ flex:1; margin:0; font-size:16px; font-weight:700; }
.wd-info-btn{
  width:32px; height:32px; padding:0;
  display:grid; place-items:center;
  border:1px solid var(--line); border-radius:50%;
  background:rgba(255,255,255,.08); color:var(--gold-light); cursor:pointer;
}


/* ── CONTAINER ── */
.wd-container{
  position:relative;
  z-index:1;
  width:100%;
  max-width:430px;
  margin:0 auto;
  padding:14px 14px calc(140px + env(safe-area-inset-bottom,0px));
}


/* ── BALANCE ── */
.wd-balance{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--glass);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
}
.wd-balance small{ font-size:11.5px; font-weight:500; color:var(--muted); }
.wd-balance b{
  font-size:19px; font-weight:700; color:var(--lime);
  font-variant-numeric:tabular-nums; overflow-wrap:anywhere; text-align:right;
}


/* ── OPEN / CLOSED + CLOCK ── */
.wd-hours{
  --state:var(--lime);
  --state-bg:rgba(22,163,74,.20);
  display:flex;
  align-items:center;
  gap:14px;
  margin:10px 0 0;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--glass);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  box-shadow:0 0 18px rgba(22,163,74,.16);
}
.wd-hours[data-state="closed"]{
  --state:var(--red);
  --state-bg:rgba(255,107,107,.16);
  border-color:rgba(255,107,107,.30);
  box-shadow:0 0 18px rgba(255,107,107,.10);
}

/* analog clock */
.wd-clock{ width:92px; height:92px; flex:none; overflow:visible; }
.wd-clock-face{ fill:rgba(5,9,7,.7); stroke:var(--state); stroke-width:2.5; }
.wd-clock-ticks{
  fill:none; stroke:var(--muted); stroke-width:6;
  stroke-dasharray:1.4 19.02; stroke-dashoffset:.7; opacity:.75;
}
.wd-clock line{ stroke-linecap:round; }
.wd-hand-h{ stroke:var(--ink); stroke-width:3.4; }
.wd-hand-m{ stroke:var(--ink); stroke-width:2.4; }
.wd-hand-s{ stroke:var(--gold); stroke-width:1.4; }
.wd-clock-pin{ fill:var(--gold); }

/* text side */
.wd-hours-info{ flex:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:3px; }
.wd-hours-badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:3px 10px 3px 8px; border-radius:999px;
  background:var(--state-bg); color:var(--state);
  font-size:10.5px; font-weight:800; letter-spacing:.8px;
}
.wd-hours-badge::after{ content:"OPEN"; }
.wd-hours[data-state="closed"] .wd-hours-badge::after{ content:"CLOSED"; }
.wd-hours-dot{
  width:7px; height:7px; flex:none; border-radius:50%;
  background:var(--state);
  animation:wdPulse 1.6s ease-out infinite;
}
@keyframes wdPulse{
  0%{ box-shadow:0 0 0 0 var(--state); }
  70%{ box-shadow:0 0 0 7px transparent; }
  100%{ box-shadow:0 0 0 0 transparent; }
}
.wd-digital{
  margin-top:4px;
  font-size:23px; font-weight:700; letter-spacing:.5px; line-height:1.1;
  color:var(--ink); font-variant-numeric:tabular-nums;
}
.wd-hours-sub{ font-size:10.5px; color:var(--muted); }
.wd-hours-text{ margin-top:3px; font-size:11.5px; font-weight:500; line-height:1.4; color:var(--gold-light); }


/* ── SECTIONS ── */
.wd-section-title{ margin:20px 0 9px 2px; font-size:13.5px; font-weight:700; color:var(--ink); }
.wd-section-row{ display:flex; align-items:flex-end; justify-content:space-between; }
.wd-tax{ margin-bottom:9px; font-size:11.5px; font-weight:600; color:var(--muted); }


/* ── ACCOUNT ── */
.wd-account-card{
  display:flex; align-items:center; gap:12px;
  min-height:56px; padding:9px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--glass);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  cursor:pointer;
}
.wd-account-icon{
  width:36px; height:36px; flex-shrink:0;
  display:grid; place-items:center;
  border-radius:10px;
  background:rgba(22,163,74,.22); color:var(--lime);
  font-size:11px; font-weight:800;
}
.wd-account-info{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.wd-account-bank{ font-size:13.5px; font-weight:600; color:var(--ink); }
.wd-account-name{ font-size:11.5px; color:var(--muted); }
.wd-account-name:empty{ display:none; }
.wd-account-note{ font-size:11.5px; color:var(--muted); }
.wd-account-chevron{ flex-shrink:0; color:var(--muted); }


/* ── AMOUNT ── */
.wd-amount-box{
  display:flex; align-items:center; gap:10px;
  height:54px; padding:0 8px 0 16px;
  border:1.5px solid var(--line);
  border-radius:14px;
  background:rgba(5,9,7,.60);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  transition:border-color .2s, box-shadow .2s;
}
.wd-amount-box:focus-within{ border-color:var(--lime); box-shadow:0 0 0 3px rgba(183,243,74,.14); }
.wd-currency{ font-size:18px; font-weight:700; color:var(--gold); }
.wd-input{
  flex:1; width:100%; min-width:0;
  border:0; outline:0; background:transparent;
  font-family:inherit; font-size:16px; font-weight:600; color:var(--ink);
}
.wd-input::placeholder{ font-size:13px; font-weight:400; color:var(--faint); }
.wd-input::-webkit-inner-spin-button,
.wd-input::-webkit-outer-spin-button{ -webkit-appearance:none; }
.wd-input{ -moz-appearance:textfield; }

.wd-use-btn{
  flex-shrink:0; height:34px; padding:0 14px;
  border:1px solid var(--line); border-radius:10px;
  background:rgba(22,163,74,.22); color:var(--lime);
  font-size:12px; font-weight:700; cursor:pointer;
}

.wd-receive-row{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin:12px 2px 0;
}
.wd-receive{ margin:0; font-size:12.5px; font-weight:500; color:var(--muted); }
.wd-receive b{ font-size:14.5px; font-weight:700; color:var(--ink); }
.wd-min-text{
  margin:0; padding:3px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  font-size:11px; font-weight:600; color:var(--gold-light);
}


/* ── QUICK AMOUNTS ── */
.wd-chips{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:12px; }
.wd-chip{
  height:36px; padding:0 2px;
  border:1px solid var(--line); border-radius:999px;
  background:var(--glass); color:var(--muted);
  font-size:11.5px; font-weight:600; cursor:pointer;
}
.wd-chip.active{ border-color:var(--lime); background:rgba(22,163,74,.22); color:var(--lime); box-shadow:0 0 12px rgba(22,163,74,.3); }


/* ── BUTTON ── */
.wd-confirm-btn{
  display:block; width:100%; height:50px; margin-top:22px;
  border:0; border-radius:999px;
  background:linear-gradient(145deg,var(--lime),var(--g));
  color:var(--dark); font-size:15px; font-weight:700; cursor:pointer;
  box-shadow:0 9px 20px rgba(22,163,74,.38), 0 2px 5px rgba(22,163,74,.25);
}
.wd-confirm-btn:active{ transform:scale(.98); }

.wd-link-btn{
  display:block; margin:10px auto 0; padding:6px 10px;
  border:0; background:transparent;
  font-size:12px; font-weight:600; color:var(--lime); cursor:pointer;
}


/* ── INSTRUCTIONS (compact, small text) ── */
.wd-guide{
  margin-top:20px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--glass);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
}
.wd-guide-title{
  display:flex; align-items:center; gap:6px;
  margin:0 0 8px;
  font-size:12px; font-weight:700; color:var(--gold-light);
}
.wd-list{ list-style:none; margin:0; padding:0; }
.wd-list li{
  position:relative;
  padding:0 0 5px 14px;
  font-size:11px; line-height:1.5; color:var(--muted);
}
.wd-list li:last-child{ padding-bottom:0; }
.wd-list li::before{
  content:''; position:absolute; left:2px; top:6px;
  width:5px; height:5px; border-radius:50%; background:var(--lime);
}
.wd-list b{ font-weight:600; color:var(--ink); }
.wd-notice-link{
  padding:0; border:0; background:transparent;
  font-size:11px; font-weight:700; color:var(--lime);
  text-decoration:underline; cursor:pointer;
}


@media (max-width:360px){
  .wd-chips{ grid-template-columns:repeat(2,1fr); }
  .wd-clock{ width:78px; height:78px; }
  .wd-digital{ font-size:20px; }
}


/* ── FIXED-AMOUNT CHIPS ── */
.wd-input[readonly]{ cursor:pointer; caret-color:transparent; }

.wd-chips{ grid-template-columns:repeat(4,1fr); }
.wd-chip{ font-variant-numeric:tabular-nums; transition:all .15s ease; }
.wd-chip:active:not(:disabled){ transform:scale(.96); }

.wd-chip:disabled,
.wd-chip.is-locked{
  opacity:.35;
  cursor:not-allowed;
  background:rgba(255,255,255,.04);
  border-style:dashed;
  box-shadow:none;
}

.wd-allowed-note{
  margin:10px 2px 0;
  font-size:11px;
  line-height:1.5;
  color:var(--gold-light);
}
.wd-allowed-note:empty{ display:none; }

@media (max-width:360px){
  .wd-chips{ grid-template-columns:repeat(3,1fr); }
}



/* =========================================================
   RECORDS — dark grid style, NTR brand colours
   Replace your old records CSS with this file.
   ========================================================= */

#recordsPage{
  --bg1:var(--bg-primary,#050907);
  --bg2:var(--bg-secondary,#0B2115);
  --bg3:var(--bg-tertiary,#103522);
  --green:var(--primary-green,#16A34A);
  --lime:var(--lime-green,#B7F34A);
  --gold:var(--gold,#F5C542);
  --text:var(--text-primary,#F4F7F4);
  --muted:var(--text-secondary,#A8B8AD);
  --edge:var(--glass-border,rgba(183,243,74,.20));
  --red:#F87171;
  --mono:'JetBrains Mono','SF Mono',ui-monospace,Menlo,Consolas,'Courier New',monospace;

  position:fixed;
  inset:0;
  width:100%;
  height:100vh;
  height:100dvh;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  z-index:9000;
  color:var(--text);
  color-scheme:dark;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -webkit-tap-highlight-color:transparent;
  background:
    linear-gradient(rgba(22,163,74,.06) 1px,transparent 1px) 0 0/38px 38px,
    linear-gradient(90deg,rgba(22,163,74,.06) 1px,transparent 1px) 0 0/38px 38px,
    radial-gradient(620px circle at 50% 0,rgba(22,163,74,.16),transparent 62%),
    linear-gradient(180deg,var(--bg2) 0%,var(--bg1) 65%);
  background-attachment:fixed;
  box-sizing:border-box;
}
#recordsPage *{ box-sizing:border-box; }
#recordsPage p{ margin:0; }

/* ── HEADER ── */
#recordsPage .tx-header{
  position:sticky; top:0; z-index:10;
  display:grid;
  grid-template-columns:42px 1fr 42px;
  align-items:center;
  height:calc(64px + env(safe-area-inset-top,0px));
  padding:env(safe-area-inset-top,0px) 14px 0;
  background:rgba(11,33,21,.88);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  border-bottom:1px solid var(--edge);
}
/* glowing line under the header */
#recordsPage .tx-header::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px;
  background:linear-gradient(90deg,transparent,var(--green) 25%,var(--lime) 50%,var(--green) 75%,transparent);
  box-shadow:0 0 14px rgba(183,243,74,.55);
  pointer-events:none;
}
#recordsPage .tx-icon-btn{
  width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(183,243,74,.35);
  border-radius:12px;
  background:rgba(22,163,74,.12);
  color:var(--lime);
  box-shadow:0 0 14px rgba(22,163,74,.25), inset 0 0 10px rgba(183,243,74,.06);
  cursor:pointer; outline:none;
}
#recordsPage .tx-icon-btn:active{ background:rgba(22,163,74,.24); }
#recordsPage .tx-title-bar{
  margin:0;
  text-align:center;
  font-size:15px; font-weight:800;
  letter-spacing:.3em;
  text-transform:uppercase;
  background:linear-gradient(90deg,var(--lime),var(--green));
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
  padding-left:.3em; /* balances the trailing letter-spacing */
}

/* ── TABS ── */
#recordsPage .tx-tabs-wrap{
  position:sticky; top:calc(64px + env(safe-area-inset-top,0px)); z-index:9;
  background:rgba(8,20,13,.86);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(183,243,74,.12);
}
#recordsPage .tx-tabs{
  display:grid; grid-template-columns:repeat(3,1fr);
  max-width:600px; margin:0 auto;
}
#recordsPage .tx-tab{
  position:relative;
  height:46px; padding:0 4px;
  border:0; background:transparent;
  color:var(--muted);
  font-family:var(--mono);
  font-size:11.5px; font-weight:600;
  letter-spacing:.22em; text-transform:uppercase;
  cursor:pointer; outline:none;
  transition:color .2s ease, text-shadow .2s ease;
}
#recordsPage .tx-tab::after{
  content:""; position:absolute; left:50%; bottom:0;
  width:0; height:3px; border-radius:3px 3px 0 0;
  background:var(--lime);
  box-shadow:0 0 12px rgba(183,243,74,.8);
  transform:translateX(-50%);
  transition:width .25s ease;
}
#recordsPage .tx-tab.is-active{ color:var(--lime); text-shadow:0 0 10px rgba(183,243,74,.45); }
#recordsPage .tx-tab.is-active::after{ width:34px; }
#recordsPage .tx-tab:focus-visible{ outline:2px solid var(--lime); outline-offset:-4px; border-radius:8px; }

/* ── CONTENT ── */
#recordsPage .tx-content{
  width:100%; max-width:600px; margin:0 auto;
  padding:16px 14px calc(40px + env(safe-area-inset-bottom,0px));
}

/* ── CARD ── */
#recordsPage .tx-card{
  --accent:var(--green);
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  column-gap:12px; row-gap:0;
  align-items:center;
  margin-bottom:12px;
  padding:13px 16px 13px 15px;
  border:1px solid var(--edge);
  border-left:3px solid var(--accent);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(16,53,34,.55),rgba(11,33,21,.6));
  box-shadow:0 0 18px rgba(22,163,74,.12), inset 0 1px 0 rgba(255,255,255,.05);
  animation:txIn .45s ease both;
}
#recordsPage .tx-card.is-wait{ --accent:var(--gold); }
#recordsPage .tx-card.is-fail{ --accent:var(--red); }
#recordsPage .tx-card:nth-child(2){ animation-delay:.05s; }
#recordsPage .tx-card:nth-child(3){ animation-delay:.1s; }
#recordsPage .tx-card:nth-child(4){ animation-delay:.15s; }
#recordsPage .tx-card:nth-child(n+5){ animation-delay:.2s; }
@keyframes txIn{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }

#recordsPage .tx-main{ min-width:0; display:flex; flex-direction:column; gap:4px; }
#recordsPage .tx-name{
  font-size:15.5px; font-weight:600; line-height:1.25;
  color:var(--text);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
#recordsPage .tx-ref{
  font-family:var(--mono); font-size:10.5px; letter-spacing:.06em;
  color:rgba(183,243,74,.85);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  cursor:pointer; width:fit-content; max-width:100%;
}
#recordsPage .tx-ref.is-copied{ color:var(--lime); font-weight:700; }
#recordsPage .tx-date{
  font-family:var(--mono); font-size:10.5px; letter-spacing:.14em;
  color:var(--muted);
}

#recordsPage .tx-side{ display:flex; flex-direction:column; align-items:flex-end; gap:7px; }
#recordsPage .tx-amt{
  font-size:15.5px; font-weight:700; letter-spacing:.2px;
  font-variant-numeric:tabular-nums; white-space:nowrap;
  color:var(--text);
}
#recordsPage .tx-amt.plus { color:var(--lime); text-shadow:0 0 12px rgba(183,243,74,.4); }
#recordsPage .tx-amt.minus{ color:var(--gold); text-shadow:0 0 12px rgba(245,197,66,.3); }
#recordsPage .tx-amt.dim  { color:var(--muted); }
#recordsPage .tx-amt.fail { color:var(--red); }

#recordsPage .tx-chip{
  padding:3px 8px; border-radius:999px;
  font-family:var(--mono); font-size:9px; font-weight:600;
  letter-spacing:.12em; text-transform:uppercase; white-space:nowrap;
  border:1px solid currentColor;
}
#recordsPage .tx-chip.ok  { color:var(--lime); background:rgba(183,243,74,.08); }
#recordsPage .tx-chip.wait{ color:var(--gold); background:rgba(245,197,66,.08); }
#recordsPage .tx-chip.fail{ color:var(--red);  background:rgba(248,113,113,.08); }

/* extra details row (fee / received / remark) */
#recordsPage .tx-sub{
  grid-column:1 / -1;
  display:flex; flex-wrap:wrap; gap:4px 16px;
  margin-top:10px; padding-top:9px;
  border-top:1px dashed rgba(183,243,74,.18);
  font-family:var(--mono); font-size:10.5px; letter-spacing:.06em;
  color:var(--muted);
}
#recordsPage .tx-sub b{ font-weight:600; color:var(--text); }

/* ── FOOTER ── */
#recordsPage .tx-footer{
  display:flex; align-items:center; justify-content:center; gap:14px;
  margin:22px 6px 0;
  font-family:var(--mono); font-size:10.5px; letter-spacing:.3em;
  text-transform:uppercase; color:var(--muted);
}
#recordsPage .tx-footer::before,
#recordsPage .tx-footer::after{
  content:""; flex:1; height:1px;
  background:linear-gradient(90deg,transparent,rgba(183,243,74,.28));
}
#recordsPage .tx-footer::after{ transform:scaleX(-1); }
#recordsPage .tx-note{
  margin:22px 6px 0; text-align:center;
  font-family:var(--mono); font-size:11px; letter-spacing:.1em; color:var(--muted);
}

/* ── EMPTY ── */
#recordsPage .tx-empty{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  padding:70px 20px 10px;
}
#recordsPage .tx-empty svg{ margin-bottom:16px; }
#recordsPage .tx-empty p{
  font-family:var(--mono); font-size:11px; letter-spacing:.3em;
  text-transform:uppercase; color:var(--muted);
}
#recordsPage .tx-empty svg .ill-a{ fill:rgba(22,163,74,.10); }
#recordsPage .tx-empty svg .ill-b{ fill:rgba(22,163,74,.30); }
#recordsPage .tx-empty svg .ill-c{ fill:#0B2115; }
#recordsPage .tx-empty svg .ill-d{ fill:rgba(183,243,74,.30); }

/* ── SKELETON ── */
#recordsPage .tx-skel-card{
  display:flex; justify-content:space-between; gap:20px;
  margin-bottom:12px; padding:16px;
  border:1px solid var(--edge);
  border-left:3px solid rgba(22,163,74,.5);
  border-radius:16px;
  background:rgba(16,53,34,.4);
}
#recordsPage .tx-skel-col{ display:flex; flex-direction:column; gap:9px; }
#recordsPage .tx-skel-col.r{ align-items:flex-end; }
#recordsPage .tx-skel{
  height:10px; border-radius:6px;
  background:linear-gradient(90deg,rgba(255,255,255,.05) 25%,rgba(183,243,74,.14) 50%,rgba(255,255,255,.05) 75%);
  background-size:200% 100%;
  animation:txShimmer 1.3s linear infinite;
}
@keyframes txShimmer{ to{ background-position:-200% 0; } }

@media (prefers-reduced-motion:reduce){
  #recordsPage .tx-card, #recordsPage .tx-skel{ animation:none; }
  #recordsPage .tx-tab, #recordsPage .tx-tab::after{ transition:none; }
}




/* ── DARK MODE ── */
html[data-theme="dark"] #recordsPage{
  --white:#121816;
  --ash:#0B0F0D;
  --ash-2:#1B2320;
  --ink:#EEF3F0;
  --muted:#8B9792;
  --faint:#74807B;
  --line:#1F2824;
  --green:#34d27b;
  --green-soft:rgba(52,210,123,.14);
}
html[data-theme="dark"] #recordsPage .tx-tab.is-active{ color:#04140b; }

/* ================= MODAL OVERLAY ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

/* ================= MODAL CARD ================= */
.modal-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}

/* ================= HEADER ================= */
.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sheet-title {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
}

.close-sheet {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

/* ================= INNER CARD ================= */
.slim-card {
  background: #f7f7f7;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 25px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ================= PRODUCT ROW ================= */
.product-main-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-icon-container {
  width: 48px;
  height: 48px;
  background: #2D6BEF;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  color: #000000;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ── WHATSAPP ROW — same layout as Telegram, WhatsApp's own green so it's instantly recognisable ── */
.mx-unique-modal .mx-row-whatsapp {
  border-left-color: #25D366;
}
.mx-unique-modal .mx-row-whatsapp .mx-row-icon {
  background: #25D366;
  color: #ffffff;
  font-size: 16px;
}
.mx-unique-modal .mx-row-whatsapp .mx-row-arrow {
  color: #128C7E;
}

/* ================= PRODUCT DETAILS ================= */
.product-details strong {
  font-size: 17px;
  font-weight: 700;
  display: block;
  color: #111;
}

.product-details p {
  font-size: 14px;
  color: #444;
  margin-top: 3px;
}

/* ================= DIVIDER ================= */
.divider-line {
  height: 1px;
  background: #e5e5e5;
  margin: 14px 0;
}

/* ================= BALANCE ================= */
.account-balance-row {
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

/* ================= PURCHASE BUTTON ================= */
.purchase-btn {
  background: #2D6BEF;
  color: white;
  border: none;
  border-radius: 40px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  margin: auto;
  box-shadow: 0 6px 15px rgba(47,72,236,0.4);
  transition: transform 0.15s ease;
}

.purchase-btn:active {
  transform: scale(0.95);
}

/* ================= MOBILE ================= */
@media (max-width:480px){

.modal-card{
padding:20px;
}

.sheet-title{
font-size:20px;
}

.product-details strong{
font-size:16px;
}

.product-details p,
.account-balance-row{
font-size:13px;
}

.purchase-btn{
font-size:14px;
padding:10px 22px;
}

}


/* =========================================================
   MY PRODUCTS — blurred image / dim glass / lime
   ========================================================= */

.investment-page {
  /* ====== BLURRED BACKGROUND IMAGE (free picsum seed). Change the link to use your own ====== */
  --inv-bg-image: url('https://picsum.photos/seed/nrt-products-bg/720/1280');

  --inv-lime: #B7F34A;
  --inv-green: #16A34A;
  --inv-gold: #F5C542;
  --inv-text: #FFFFFF;
  --inv-muted: #A8B8AD;
  --inv-border: rgba(183, 243, 74, 0.20);
  --inv-glass: rgba(10, 22, 14, 0.82);
  --inv-line: rgba(255, 255, 255, 0.08);
  --inv-track: rgba(255, 255, 255, 0.12);

  position: relative;
  background: #07110A;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 400;
  color: var(--inv-text);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}
.investment-page *, .investment-page *::before, .investment-page *::after { box-sizing: border-box; }
.investment-page p, .investment-page h2, .investment-page h3 { margin: 0; }
.investment-page button { -webkit-appearance: none; appearance: none; font-family: inherit; color: inherit; margin: 0; }

/* blurred image: seen softly, never sharp */
.inv-bgblur {
  position: fixed;
  inset: -30px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,17,10,0.45) 0%, rgba(7,17,10,0.80) 100%),
    var(--inv-bg-image) center / cover no-repeat,
    linear-gradient(180deg, #0E2A1A, #07110A);
  filter: blur(22px);
  transform: scale(1.1);
}

.inv-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px 110px;
}


/* ── TOP INCOME CARDS ── */
.inv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.inv-stat-card {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-height: 76px; padding: 12px;
  border-radius: 14px;
  background: var(--inv-glass);
  border: 1px solid var(--inv-border);
  box-shadow: 0 0 20px rgba(22, 163, 74, 0.22);
}
.inv-stat-label { font-size: 10.5px; color: var(--inv-muted); }
.inv-stat-val   { font-size: 16px; font-weight: 500; color: var(--inv-lime); font-variant-numeric: tabular-nums; }

/* image inside the cards, kept dim so text is readable */
.inv-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  opacity: .35;
}
.inv-stat-card::after,
.inv-invest::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(10,22,14,.55), rgba(10,22,14,.85));
  pointer-events: none;
}
.inv-stat-card > :not(.inv-bg),
.inv-invest > :not(.inv-bg) { position: relative; z-index: 1; }


/* ── MY ORDERS BANNER ── */
.inv-invest {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 76px;
  padding: 12px 14px 12px 16px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: var(--inv-glass);
  border: 1px solid var(--inv-border);
  box-shadow: 0 0 20px rgba(22, 163, 74, 0.22);
}
.inv-invest-text { display: flex; flex-direction: column; gap: 3px; }
.inv-invest-label { font-size: 10.5px; color: var(--inv-muted); }
.inv-invest-num   { font-size: 20px; font-weight: 500; line-height: 1.1; }

.inv-details-btn {
  height: 28px; padding: 0 14px;
  border: 1px solid var(--inv-border); border-radius: 999px;
  background: rgba(22, 163, 74, 0.55);
  font-size: 11px; font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.inv-details-btn:active { transform: scale(.97); }


/* ── 3 TABS ── */
.inv-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.inv-tab {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 8px;
  border: 1px solid var(--inv-line); border-radius: 999px;
  background: var(--inv-glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--inv-muted);
  font-size: 11px; font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.inv-tab em {
  font-style: normal; font-size: 9px; font-weight: 500;
  min-width: 16px; height: 16px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: rgba(255,255,255,.10);
}
.inv-tab.is-on {
  background: rgba(22, 163, 74, 0.5);
  border-color: var(--inv-border);
  color: var(--inv-text);
}
.inv-tab.is-on em { background: rgba(183, 243, 74, .25); color: var(--inv-lime); }
.inv-tab:focus-visible, .inv-details-btn:focus-visible,
.inv-card-details:focus-visible, .invd-back:focus-visible { outline: 2px solid var(--inv-lime); outline-offset: 2px; }

.inv-empty-text { margin: 28px 0; text-align: center; font-size: 11.5px; color: var(--inv-muted); }


/* ── PRODUCT CARD ── */
#investmentCardsList { display: flex; flex-direction: column; gap: 10px; }

.fs-product-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px;
  background: var(--inv-glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--inv-border);
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(22, 163, 74, 0.18), inset 0 1px 0 rgba(255,255,255,.06);
}
.fs-product-card.is-completed { opacity: .72; }

.fs-card-img {
  flex: none; width: 70px; height: 70px;
  border-radius: 10px; object-fit: cover; background: #0E2A1A;
  border: 1px solid var(--inv-line);
}
.fs-card-body { flex: 1; min-width: 0; }

.fs-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.fs-card-name  { font-size: 13px; line-height: 18px; font-weight: 500; }
.fs-status {
  flex: none; padding: 2px 9px; border-radius: 999px;
  font-size: 9px; font-weight: 500;
  border: 1px solid var(--inv-border); color: var(--inv-lime);
}
.fs-status.is-done { border-color: rgba(255,255,255,.14); color: var(--inv-muted); }

.fs-line {
  display: flex; align-items: baseline; gap: 4px;
  margin-top: 3px; font-size: 11px; line-height: 16px; white-space: nowrap;
}
.fs-line .k { color: var(--inv-muted); }
.fs-line .v { color: var(--inv-text); font-variant-numeric: tabular-nums; }
.fs-line .v.is-green { color: var(--inv-lime); }
.fs-line .v.is-gold  { color: var(--inv-gold); }

.fs-note { margin-top: 8px; font-size: 10px; line-height: 1.45; color: var(--inv-lime); }

.fs-progress { height: 4px; margin: 8px 0 0; border-radius: 999px; background: var(--inv-track); overflow: hidden; }
.fs-progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--inv-green), var(--inv-lime)); transition: width .6s ease; }

/* next profit box */
.fs-countdown {
  display: flex; flex-direction: column; gap: 3px;
  margin: 10px 0 0; padding: 8px 10px;
  background: rgba(183, 243, 74, 0.07);
  border-left: 2px solid var(--inv-lime);
  border-radius: 8px;
}
.fs-countdown .k { font-size: 10px; color: var(--inv-muted); }
.fs-countdown .t { font-size: 14px; font-weight: 500; color: var(--inv-lime); font-variant-numeric: tabular-nums; letter-spacing: .4px; }
.fs-countdown .s { font-size: 9.5px; color: var(--inv-muted); }

.fs-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.fs-pid { font-size: 9.5px; color: var(--inv-muted); }

/* the DETAILS pill on every card */
.inv-card-details {
  height: 24px; padding: 0 14px;
  border: 1px solid var(--inv-border); border-radius: 999px;
  background: rgba(22, 163, 74, 0.5);
  font-size: 10.5px; font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.inv-card-details:active { transform: scale(.96); }


/* =========================================================
   DETAILS PAGE
   ========================================================= */
.inv-detail {
  position: fixed;
  inset: 0;
  z-index: 1100;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #07110A;
}
.invd-bg {                               /* blurred copy of the product picture */
  position: fixed; inset: -30px; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,17,10,0.50) 0%, rgba(7,17,10,0.85) 100%),
    var(--invd-img, none) center / cover no-repeat,
    linear-gradient(180deg, #0E2A1A, #07110A);
  filter: blur(26px);
  transform: scale(1.1);
}

.invd-header {
  position: sticky; top: 0; z-index: 5;
  height: calc(46px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center; justify-content: center;
  background: var(--inv-glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--inv-border);
}
.invd-title { font-size: 12.5px; font-weight: 500; letter-spacing: .3px; }
.invd-back {
  position: absolute; left: 12px; bottom: 10px;
  height: 26px; padding: 0 12px;
  border: 1px solid var(--inv-border); border-radius: 999px;
  background: rgba(255,255,255,.06);
  font-size: 10.5px; font-weight: 500;
  cursor: pointer;
}
.invd-back:active { background: rgba(255,255,255,.12); }

.invd-wrap {
  position: relative; z-index: 1;
  max-width: 520px; margin: 0 auto;
  padding: 14px 14px calc(110px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 12px;
}

.invd-card {
  padding: 14px;
  background: var(--inv-glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--inv-border);
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(22, 163, 74, 0.2), inset 0 1px 0 rgba(255,255,255,.06);
}
.invd-label { font-size: 10px; letter-spacing: .6px; color: var(--inv-muted); margin-bottom: 8px; }

/* hero */
.invd-hero { padding: 0; overflow: hidden; }
.invd-hero-img { position: relative; height: 170px; background: #0E2A1A; }
.invd-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.invd-hero-img::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 60%;
  background: linear-gradient(180deg, transparent, rgba(10,22,14,.95));
}
.invd-hero-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.invd-name { font-size: 16px; font-weight: 500; }
.invd-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.invd-status { padding: 2px 10px; border-radius: 999px; font-size: 9.5px; font-weight: 500; border: 1px solid var(--inv-border); color: var(--inv-lime); }
.invd-status.is-done { border-color: rgba(255,255,255,.14); color: var(--inv-muted); }
.invd-id { font-size: 10px; color: var(--inv-muted); }

/* key numbers */
.invd-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.invd-key { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 4px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--inv-line); }
.invd-key b { font-size: 12.5px; font-weight: 500; color: var(--inv-lime); font-variant-numeric: tabular-nums; white-space: nowrap; }
.invd-key span { font-size: 9px; color: var(--inv-muted); }
.invd-key b.is-gold { color: var(--inv-gold); }

/* progress */
.invd-prog-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--inv-muted); }
.invd-prog-top b { font-weight: 500; color: var(--inv-lime); font-variant-numeric: tabular-nums; }
.invd-card .fs-progress { height: 6px; margin-top: 8px; }
.invd-prog-sub { margin-top: 8px; font-size: 10px; color: var(--inv-muted); }

/* rows */
.invd-rows { display: flex; flex-direction: column; }
.invd-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--inv-line);
  font-size: 11px;
}
.invd-row:last-child { border-bottom: 0; padding-bottom: 0; }
.invd-row:first-child { padding-top: 0; }
.invd-row .k { color: var(--inv-muted); }
.invd-row .v { color: var(--inv-text); text-align: right; font-variant-numeric: tabular-nums; }
.invd-row .v.is-green { color: var(--inv-lime); }
.invd-row .v.is-gold  { color: var(--inv-gold); }

/* how it works */
.invd-steps { display: flex; flex-direction: column; gap: 10px; }
.invd-step { display: flex; gap: 10px; align-items: flex-start; }
.invd-step i {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--inv-border); background: rgba(183,243,74,.08);
  font-style: normal; font-size: 9px; font-weight: 500; color: var(--inv-lime);
}
.invd-step p { font-size: 10.5px; line-height: 1.55; color: var(--inv-muted); }
.invd-step p b { font-weight: 500; color: var(--inv-text); }


@media (max-width: 360px) {
  .fs-card-img { width: 60px; height: 60px; }
  .invd-key b { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .fs-progress i, .inv-tab { transition: none; }
}



.channel-card.channel-disabled {
  filter: blur(1px);
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.channel-card-disabled-badge {
  display: none;
  font-size: 10px;
  font-weight: 700;
  color: #ef4444;
  margin-top: 2px;
}

.channel-card.channel-disabled .channel-card-disabled-badge {
  display: block;
}



/* =========================================================
   SWAL POPUP (unchanged)
   ========================================================= */

.gle-swal-popup {
  border-radius: 20px !important;
  padding: 28px 22px !important;
  box-shadow: 0 20px 50px rgba(2, 65, 184, 0.15) !important;
}

.gle-swal-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0b1220 !important;
}

.gle-swal-text {
  font-family: 'Inter', sans-serif !important;
  font-size: 13.5px !important;
  color: #64748b !important;
}

.gle-swal-confirm {
  background: #0032A0 !important;
  color: #ffffff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 12px 28px !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 6px 16px rgba(0, 50, 160, 0.25) !important;
}

.gle-swal-confirm:hover {
  background: #001F66 !important;
}

.gle-swal-icon {
  border-color: #eaf0fe !important;
}


@media (max-width: 380px) {
  .inv-hero-value { font-size: 23px; }
  .inv-hero-stat-divider { margin: 0 8px; }
  .premium-card { padding: 15px; }
  .inv-price-badge { font-size: 11px; padding: 6px 11px; }
}



:root {
  --pw-bg: #F1F1F1;
  --pw-card: #FFFFFF;
  --pw-line: #EEEEEE;
  --pw-ink: #1F1F1F;
  --pw-muted: #8E8E93;
  --pw-icon: #4A4A4A;
  --pw-green: #4CAF50;
  --pw-green-btn: #4FB056;
}

.pw-page {
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  font-family: 'DM Sans', 'Inter', -apple-system, sans-serif;
  color: var(--pw-ink);
  background: var(--pw-bg);
  padding-bottom: 40px;
}
.pw-page * { box-sizing: border-box; }

/* HEADER */
.pw-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 14px;
  background: #FFFFFF;
}
.pw-back-btn {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: none;
  color: var(--pw-ink);
  cursor: pointer;
}
.pw-back-btn:active { opacity: 0.5; }
.pw-topbar-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--pw-green);
}

/* CONTAINER */
.pw-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 12px 14px 0;
}

/* CARD WITH THE 3 ROWS */
.pw-card {
  background: var(--pw-card);
  border-radius: 14px;
  padding: 2px 14px;
}
.pw-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  border-bottom: 1px solid var(--pw-line);
}
.pw-row:last-child { border-bottom: none; }

.pw-lock {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--pw-icon);
}
.pw-row input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--pw-ink);
}
.pw-row input::placeholder { color: #A0A0A0; }

/* iPhone zooms into inputs smaller than 16px, so only iOS gets 16px */
@supports (-webkit-touch-callout: none) {
  .pw-row input { font-size: 16px; }
}

.pw-show {
  flex-shrink: 0;
  padding: 4px 0 4px 6px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--pw-green);
  cursor: pointer;
}
.pw-show:active { opacity: 0.6; }

.pw-hint {
  margin: 8px 4px 0;
  font-size: 11px;
  color: var(--pw-muted);
}

/* SMALL BUTTON */
.pw-confirm-btn {
  display: block;
  width: auto;
  min-width: 140px;
  height: 38px;
  margin: 18px auto 0;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  background: var(--pw-green-btn);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s;
}
.pw-confirm-btn:active { transform: scale(0.97); }
.pw-confirm-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.pw-forgot {
  display: block;
  margin: 16px auto 0;
  padding: 4px 8px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--pw-green);
  cursor: pointer;
}
.pw-forgot:active { opacity: 0.6; }




.gle-whatsapp-fab {
  position: fixed;
  bottom: 180px;
  right: 18px;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 26px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  z-index: 9998;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.gle-whatsapp-fab:active {
  transform: scale(0.92);
}


/* ============ PRODUCTS — NRT dark / dim glass / green ============ */
.ppx {
  --bg: #07110A;
  --lime: #B7F34A;
  --green: #16A34A;
  --gold: #F5C542;
  --text-main: #FFFFFF;
  --text-secondary: #A8B8AD;
  --text-dark: #07110A;
  --glass-border: rgba(183, 243, 74, 0.20);
  --green-glow: 0 0 20px rgba(22, 163, 74, 0.25);
  --gold-glow: 0 0 20px rgba(245, 197, 66, 0.20);
  --red: #F87171;

  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}
.ppx, .ppx * { box-sizing: border-box; }

.ppx-page {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0 0 100px;
  background: #07110A;
}
.ppx-content { max-width: 600px; margin: 0 auto; padding: 14px 14px 0; }
.hm-products { margin-top: 4px; }

/* ── TITLE ── */
.ppx-section-title {
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 12px 2px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(10, 22, 14, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .3px;
  color: var(--lime);
}

/* ── LIST ── */
.ppx-list { display: flex; flex-direction: column; gap: 14px; }

.ppx-loader, .ppx-empty {
  text-align: center;
  padding: 26px 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── CARD (dim + light blur, same as the button box) ── */
.ppx-card {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 22, 14, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--green-glow);
}

/* image on the upper part */
.ppx-media {
  position: relative;
  height: 132px;
  background: linear-gradient(135deg, #0E2A1A, #07110A);
}
.ppx-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.ppx-media::after {            /* fades the image into the card */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(10, 22, 14, 0.95));
  pointer-events: none;
}
.ppx-badge,
.ppx-rate {
  position: absolute;
  z-index: 1;
  top: 9px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ppx-badge {
  left: 9px;
  background: rgba(10, 22, 14, 0.7);
  border: 1px solid var(--glass-border);
  color: var(--lime);
}
.ppx-rate {
  right: 9px;
  background: rgba(10, 22, 14, 0.7);
  border: 1px solid rgba(245, 197, 66, 0.35);
  color: var(--gold);
  box-shadow: var(--gold-glow);
}

/* body */
.ppx-body { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.ppx-name { margin: 0; font-size: 13.5px; font-weight: 500; color: var(--text-main); }
.ppx-sub { margin: -6px 0 0; font-size: 10px; color: var(--text-secondary); }

.ppx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ppx-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ppx-cell span { font-size: 9.5px; color: var(--text-secondary); }
.ppx-cell b {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ppx-cell b.is-green { color: var(--lime); }
.ppx-cell b.is-gold { color: var(--gold); }
.ppx-cell b.is-red { color: var(--red); }

.ppx-note { margin: 0; font-size: 9.5px; line-height: 1.45; color: var(--text-secondary); }
.ppx-note b { font-weight: 500; color: var(--lime); }

/* ── BUY BUTTON ── */
.ppx-btn {
  width: 100%;
  height: 38px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-main);
  background: rgba(22, 163, 74, 0.55);
  box-shadow: var(--green-glow);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .1s, background .15s;
}
.ppx-btn svg { width: 14px; height: 14px; }
.ppx-btn:not(:disabled):hover { background: rgba(22, 163, 74, 0.7); }
.ppx-btn:active { transform: scale(.98); }
.ppx-btn:disabled {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  box-shadow: none;
  cursor: not-allowed;
}
.ppx-btn.is-out {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(248, 113, 113, 0.3);
  color: var(--red);
  box-shadow: none;
}

/* admin-disabled product: blurred and untouchable */
.ppx-disabled {
  filter: blur(2.5px) grayscale(.35);
  opacity: .6;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .ppx-btn { transition: none; }
}
@media (max-width: 360px) {
  .ppx-media { height: 116px; }
  .ppx-cell b { font-size: 11.5px; }
}


/* This targets the <a> tag wrapping your settings item */
a.settings-link-wrapper {
    text-decoration: none !important; /* Forces the underline to disappear */
    color: inherit !important;        /* Forces the text to stay your app's color */
    display: block;                   /* Makes the whole row clickable */
    -webkit-tap-highlight-color: transparent; /* Removes the gray box on mobile tap */
}

/* Optional: Add a slight hover or active effect so the user knows it's a button */
a.settings-link-wrapper:active {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

/* ================= CUSTOM ALERT ================= */
.custom-alert {
  position: fixed !important;

  top: 50% !important;
  left: 50% !important;

  transform: translate(-50%, -50%) !important;

  background: rgba(0, 0, 0, 0.85);
  color: #fff;

  padding: 14px 24px;
  border-radius: 12px;

  font-size: 15px;
  text-align: center;

  max-width: 90%;
  width: max-content;

  box-shadow: 0 8px 20px rgba(0,0,0,0.5);

  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;

  z-index: 999999; /* higher than EVERYTHING */
}

.custom-alert.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) !important;
}
.custom-alert {
  right: auto;
  margin: 0;
}

.custom-alert.show {
  animation: alertPop 0.3s ease;
}

@keyframes alertPop {
  0% {
    transform: translate(-50%, -60%) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}


/* ================= EMPTY STATE UI (PRODUCT STYLE) ================= */
.empty-state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  padding: 40px 20px; 
  margin: 15px;
  text-align: center;
  
  /* Card Design: Stretch like an ATM card */
  background: #ffffff;
  border-radius: 16px; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  
  width: auto; 
  max-width: 100%; 
  box-sizing: border-box;
}

.empty-icon-circle {
  width: 70px; /* Slightly larger for product focus */
  height: 70px;
  background: #f8f9fa; /* Clean grey/white tint */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.empty-icon-circle i {
  font-size: 28px;
  color: #121b1e; /* Bold dark icon */
}

.empty-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Poppins', sans-serif;
}

.empty-subtitle {
  margin: 8px 0 25px 0;
  font-size: 14px;
  color: #777;
  font-weight: 400;
  line-height: 1.5;
  max-width: 280px; /* Keeps text centered and readable */
}

/* THE BUTTON - Full width button */
.browse-plans-btn {
  background: #4b0082; 
  color: #ffffff;
  border: none;
  width: 100%; 
  max-width: 300px; /* Adjusted for better card balance */
  padding: 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.browse-plans-btn:active {
  transform: scale(0.97);
}



#pageLoader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #F5F6F7;
  z-index: 99999;

  opacity: 1;
  visibility: visible;

  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.clean-loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ── SMALL 12-BAR SPINNER ── */
.spoke-spinner {
  position: relative;
  width: 28px;
  height: 28px;
}

.spoke-spinner i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2.5px;
  height: 7px;
  margin-left: -1.25px;
  border-radius: 2px;
  background: #3A3A3C;
  transform-origin: 50% 14px;   /* half of the 28px spinner */
  opacity: .15;
  animation: spokeFade 1.2s linear infinite;
}

.spoke-spinner i:nth-child(1)  { transform: rotate(0deg);   animation-delay: -1.2s; }
.spoke-spinner i:nth-child(2)  { transform: rotate(30deg);  animation-delay: -1.1s; }
.spoke-spinner i:nth-child(3)  { transform: rotate(60deg);  animation-delay: -1.0s; }
.spoke-spinner i:nth-child(4)  { transform: rotate(90deg);  animation-delay: -0.9s; }
.spoke-spinner i:nth-child(5)  { transform: rotate(120deg); animation-delay: -0.8s; }
.spoke-spinner i:nth-child(6)  { transform: rotate(150deg); animation-delay: -0.7s; }
.spoke-spinner i:nth-child(7)  { transform: rotate(180deg); animation-delay: -0.6s; }
.spoke-spinner i:nth-child(8)  { transform: rotate(210deg); animation-delay: -0.5s; }
.spoke-spinner i:nth-child(9)  { transform: rotate(240deg); animation-delay: -0.4s; }
.spoke-spinner i:nth-child(10) { transform: rotate(270deg); animation-delay: -0.3s; }
.spoke-spinner i:nth-child(11) { transform: rotate(300deg); animation-delay: -0.2s; }
.spoke-spinner i:nth-child(12) { transform: rotate(330deg); animation-delay: -0.1s; }

@keyframes spokeFade {
  0%   { opacity: 1; }
  100% { opacity: .15; }
}

/* ── TEXT ── */
.clean-loading-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;

  color: #0052CC;
  text-align: center;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated dots */
.loader-dots::after {
  content: "";
  color: #0052CC;
  animation: loadingDots 1.5s steps(4, end) infinite;
}

@keyframes loadingDots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
  100% { content: ""; }
}

/* Hidden State */
#pageLoader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


/* Header Image */
.product-header-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}


.debit-amount  { color: #ef4444; font-weight: 700; }
.pending-amount { color: #f59e0b; font-weight: 700; }
.failed-amount  { color: #94a3b8; font-weight: 700; text-decoration: line-through; }
.record-amount-value { color: #16a34a; font-weight: 700; }

/* Reviews Ticker Wrapper - fills remaining viewport height */
.reviews-ticker-wrapper {
  width: 100%;
  height: calc(100vh - 250px); /* adjust based on your header/image height */
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff; /* blue background */
  padding: 10px;
  box-sizing: border-box;
}

/* Ticker container */
.reviews-ticker {
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: scrollReviews 300s linear infinite; /* very slow scroll */
}

/* Each review item */
.review-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: #ffffff; /* white card background */
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  min-height: 80px; /* make each review taller */
}

/* User logo / icon */
.review-item .user-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0; /* keeps image from shrinking */
}

/* Review text */
.review-item .review-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: #79a2e5; /* blue text */
}

/* Smooth scroll animation */
@keyframes scrollReviews {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}



/* Full-width black box around dashboard image */
.dashboard-image-box-full {
    width: 100%;                 /* full width of parent container */
    background-color: #000000;   /* black box (you can change to green) */
    padding: 15px;               /* space inside box for image */
    border-radius: 16px;         /* rounded corners */
    box-sizing: border-box;
    text-align: center;          /* center image */
    margin: 20px 0;              /* vertical spacing only, no horizontal shift */
    overflow: hidden;            /* prevent any overflow */
}

/* Dashboard image inside the box */
.dashboard-image {
    max-width: 100%;             /* fit inside green box */
    height: auto;
    border-radius: 12px;         /* slightly rounded corners */
    display: inline-block;       /* center properly */
}




/* ===== PAYMENT TYPE ===== */
.payment-type {
  margin: 15px 0;
  text-align: left;
  width: 100%;
  position: relative;
  font-family: sans-serif;
}

.payment-type label {
  display: block;
  margin-bottom: 6px;
  color: #f4b400; /* green label */
  font-weight: 600;
  font-size: 14px;
}

/* The clickable box */
.payment-box {
  width: 100%;
  background: #ffffff;          /* white box */
  color: #000000;               /* green text */
  border: 1px solid #c0c0c0;   /* silver edge */
  border-radius: 12px;
  padding: 12px 15px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.payment-box:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.payment-box .arrow {
  font-size: 14px;
}



/* Options list hidden by default */
.payment-options {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 48px; /* below the box */
  width: 100%;
  background: #ffffff;
  border: 1px solid #c0c0c0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none; /* hidden initially */
  z-index: 100;
}

.payment-options li {
  padding: 10px 15px;
  cursor: pointer;
  color: #000000;
  font-weight: 500;
  transition: background 0.2s;
}

.payment-options li:hover {
  background: rgba(15,157,88,0.1); /* light green hover */
}


/* Selected Amount Display */
.selected-amount {
  font-weight: bold;
  color: #000000;   /* black */
  font-size: 20px;
  margin-top: 8px;
  text-align: center;
}



#paymentCountdown {
  margin-top: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #ff0707; /* green */
}


#paymentStatusMessage {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  display: none;
}


.status-pending {
  background: #f0fff6;
  color: #d29922;
}

.status-approved {
  background: #e6fff1;
  color: #1faa59;
}

.status-declined {
  background: #ffecec;
  color: #d62828;
}

.status-timeout {
  background: #fff6e5;
  color: #c77700;
}




/* ================= FLOATING TELEGRAM (PROFILE PAGE) ================= */
.profile-page .telegram-float-profile {
  position: fixed;
  bottom: 90px;              /* above bottom nav */
  right: 16px;               /* move to right */
  z-index: 9999;

  width: 56px;
  height: 56px;
  border-radius: 50%;

  background: #0088cc;       /* Telegram blue */
  color: #ffffff;            /* white icon/text */

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 26px;
  text-decoration: none;

  box-shadow: 0 8px 20px rgba(0,136,204,0.35);  /* subtle blue shadow */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover / tap */
.profile-page .telegram-float-profile:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(0,136,204,0.45); /* stronger blue shadow */
}

/* Mobile safe */
@media (max-width: 480px) {
  .profile-page .telegram-float-profile {
    bottom: 100px;
    right: 12px;            /* adjust right for mobile */
  }
}



#toast-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#toast-overlay.toast-show {
  opacity: 1;
}

/* Small wide rectangle — not a tall square, matching the reference */
.toast-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  background: rgba(20, 20, 20, 0.88);
  backdrop-filter: blur(6px);
  color: #ffffff;

  padding: 12px 20px;
  border-radius: 10px;

  font-family: -apple-system, 'SF Pro Display', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;

  max-width: 260px;
  width: max-content;
  box-sizing: border-box;

  transform: scale(0.94);
  transition: transform 0.25s ease;
}

#toast-overlay.toast-show .toast-inner {
  transform: scale(1);
}

/* Small inline icon, not a big centered graphic */
.toast-type-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.toast-success .toast-type-icon { color: #16a34a; }
.toast-error   .toast-type-icon { color: #dc2626; }
.toast-warning .toast-type-icon { color: #f0b100; }
.toast-info    .toast-type-icon { color: #ffffff; }

.toast-msg {
  color: #ffffff;
}

@media (max-width: 480px) {
  .toast-inner {
    max-width: 82vw;
    padding: 11px 18px;
    font-size: 12.5px;
  }
}

.fintech-toast {
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  font-family: Inter, sans-serif;
}


.payment-confirm-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 24px;
}

.pc-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 320px;
}

.pc-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid #f2e9c9;
  border-top-color: #f0b100;
  animation: pc-spin 0.9s linear infinite;
  margin-bottom: 20px;
}

@keyframes pc-spin {
  to { transform: rotate(360deg); }
}

.pc-icon-success, .pc-icon-fail {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  margin-bottom: 20px;
}

.pc-icon-success { background: #16a34a; }
.pc-icon-fail { background: #dc2626; }

.pc-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px;
}

.pc-sub {
  font-size: 13.5px;
  color: #8a8a8a;
  margin: 0 0 24px;
  line-height: 1.5;
}

.pc-btn {
  background: #f0b100;
  color: #1a1a1a;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}


.record-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}
.status-approved {
  background: #dcfce7;
  color: #16a34a;
}
.status-pending {
  background: #fef9c3;
  color: #ca8a04;
}
.status-failed {
  background: #fee2e2;
  color: #dc2626;
}



:root {
  --tc-ink: #1A1A1A;
  --tc-muted: #6B6B6B;
  --tc-bg: #F7F8FA;
  --tc-white: #FFFFFF;
  --tc-line: #DCE6F5;
  --tc-green: #3AA13B;
  --tc-orange: #F07B1C;
  --tc-red: #E22B2B;
  --tc-blue: #2F6FED;
  --tc-yellow: #F2B705;
}

.tc-page,
.tc-page * {
  box-sizing: border-box;
}

.tc-page {
  width: 100%;
  min-height: 100vh;
  background: var(--tc-bg);
  font-family: 'Inter', sans-serif;
  color: var(--tc-ink);
  padding: 18px 18px 90px;
}

/* ── TOP ROW ── */
.tc-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.tc-recharge-btn {
  background: var(--tc-ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.tc-recharge-btn:active { opacity: 0.85; }

.tc-balance-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tc-ink);
}

.tc-balance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.6px solid var(--tc-ink);
  font-size: 10.5px;
  font-weight: 800;
}

/* ── BACK BUTTON ── */
.tc-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--tc-muted);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 10px 0 0;
}

/* ── TITLE ── */
.tc-title-block {
  text-align: center;
  padding: 14px 0 18px;
}

.tc-title {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--tc-ink);
}

.tc-subtitle {
  margin: 0;
  font-size: 13.5px;
  color: var(--tc-muted);
}

.tc-subtitle strong { color: var(--tc-ink); }

/* ── ACTIVATION BANNER ── */
.tc-activate-banner {
  background: var(--tc-white);
  border: 1.5px dashed var(--tc-blue);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  margin-bottom: 18px;
}

.tc-activate-banner p {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--tc-muted);
  line-height: 1.5;
}

.tc-activate-btn {
  background: var(--tc-blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.tc-activate-btn:active { opacity: 0.88; }

.tc-activate-banner.tc-hidden { display: none; }

/* ── DIVIDER ── */
.tc-divider {
  border: none;
  border-top: 1.5px solid var(--tc-blue);
  opacity: 0.5;
  margin: 18px 0;
}

/* ── GAME ROW — text left, graphic right ── */
.tc-game-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.tc-game-row.tc-locked {
  opacity: 0.45;
  pointer-events: none;
}

.tc-game-text h2 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
}

.tc-game-text p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--tc-muted);
}

.tc-play-btn {
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  min-width: 150px;
}
.tc-play-btn:active { transform: scale(0.97); }
.tc-play-btn:disabled {
  background: #C9CDD3 !important;
  cursor: not-allowed;
  transform: none;
}

.tc-btn-green  { background: var(--tc-green); }
.tc-btn-orange { background: var(--tc-orange); }
.tc-btn-red    { background: var(--tc-red); }

/* Countdown label shown on a disabled button */
.tc-play-btn .tc-cooldown-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  margin-top: 2px;
}

.tc-game-visual {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═════════════════ SPIN WHEEL ═════════════════ */
.tc-wheel-wrap {
  position: relative;
  width: 150px;
  height: 150px;
}

.tc-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid var(--tc-ink);
  position: relative;
  background: conic-gradient(
    var(--tc-blue) 0deg 90deg,
    var(--tc-yellow) 90deg 180deg,
    var(--tc-green) 180deg 270deg,
    var(--tc-green) 270deg 360deg
  );
  transition: transform 3.2s cubic-bezier(0.17, 0.67, 0.2, 1);
}

.tc-wheel-num {
  position: absolute;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.tc-wn-1 { top: 20%; left: 50%; transform: translateX(-50%); }
.tc-wn-2 { top: 50%; right: 12%; transform: translateY(-50%); }
.tc-wn-3 { bottom: 16%; left: 50%; transform: translateX(-50%); }
.tc-wn-4 { top: 50%; left: 12%; transform: translateY(-50%); }

.tc-wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 14px solid var(--tc-ink);
  z-index: 3;
}

.tc-wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--tc-ink);
  z-index: 2;
}

/* ═════════════════ DICE ═════════════════ */
.tc-dice-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tc-die {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 8px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.tc-die-black { background: #1A1A1A; }
.tc-die-white { background: #FFFFFF; border: 1.5px solid #E0E0E0; }

.tc-pip {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  align-self: center;
  justify-self: center;
  opacity: 0;
}
.tc-die-black .tc-pip { background: #fff; }
.tc-die-white .tc-pip { background: #1A1A1A; }

/* Grid positions for pip layouts 1-6, toggled via face-N class */
.p1 { grid-area: 1 / 1; } .p2 { grid-area: 1 / 3; }
.p3 { grid-area: 2 / 1; } .p4 { grid-area: 2 / 3; }
.p5 { grid-area: 3 / 1; } .p6 { grid-area: 3 / 3; }
.tc-die .pc { grid-area: 2 / 2; }

.tc-die.face-1 .p1 { grid-area: 2 / 2; opacity: 1; }
.tc-die.face-2 .p1, .tc-die.face-2 .p5 { opacity: 1; }
.tc-die.face-3 .p1, .tc-die.face-3 .p5 { opacity: 1; }
.tc-die.face-3 .p3 { grid-area: 2/2; opacity: 1; }
.tc-die.face-4 .p1, .tc-die.face-4 .p2, .tc-die.face-4 .p5, .tc-die.face-4 .p6 { opacity: 1; }
.tc-die.face-5 .p1, .tc-die.face-5 .p2, .tc-die.face-5 .p5, .tc-die.face-5 .p6 { opacity: 1; }
.tc-die.face-5 .p3 { grid-area: 2/2; opacity: 1; }
.tc-die.face-6 .p1, .tc-die.face-6 .p2, .tc-die.face-6 .p3,
.tc-die.face-6 .p4, .tc-die.face-6 .p5, .tc-die.face-6 .p6 { opacity: 1; }

.tc-die.tc-rolling {
  animation: tc-dice-roll 0.15s linear infinite;
}

@keyframes tc-dice-roll {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(12deg) scale(0.94); }
  100% { transform: rotate(-10deg) scale(1); }
}

/* ═════════════════ SAFE BOX ═════════════════ */
.tc-safe {
  position: relative;
  width: 110px;
  height: 100px;
  background: linear-gradient(160deg, #3A3F47, #1E2125);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tc-safe-dial {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2A2E34;
  border: 2px solid #55595F;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.tc-safe-dial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CD137;
  box-shadow: 0 0 6px #4CD137;
}

.tc-safe-keypad {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: repeat(3, 5px);
  grid-gap: 4px;
}
.tc-safe-keypad span {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #55595F;
}

.tc-safe-handle {
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 34px;
  border-radius: 3px;
  background: #55595F;
}

.tc-safe.tc-shaking {
  animation: tc-safe-shake 0.4s ease-in-out infinite;
}

@keyframes tc-safe-shake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25%      { transform: translateX(-3px) rotate(-2deg); }
  75%      { transform: translateX(3px) rotate(2deg); }
}

.tc-safe.tc-opened .tc-safe-dial-dot {
  background: #FFD400;
  box-shadow: 0 0 10px #FFD400;
}

/* ═════════════════ REWARD OVERLAY ═════════════════ */
.tc-reward-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(17, 17, 17, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tc-reward-card {
  background: #fff;
  border-radius: 22px;
  padding: 30px 26px 24px;
  text-align: center;
  width: 100%;
  max-width: 280px;
  animation: tc-reward-pop 0.25s ease-out;
}

@keyframes tc-reward-pop {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.tc-reward-icon { font-size: 40px; margin-bottom: 6px; }

.tc-reward-label {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--tc-muted);
  font-weight: 600;
}

.tc-reward-amount {
  font-size: 30px;
  font-weight: 800;
  color: var(--tc-green);
  margin-bottom: 18px;
}

.tc-reward-claim-btn {
  width: 100%;
  background: var(--tc-ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.tc-reward-claim-btn:active { opacity: 0.85; }

@media (max-width: 380px) {
  .tc-title { font-size: 25px; }
  .tc-game-visual { width: 120px; height: 120px; }
  .tc-wheel-wrap { width: 120px; height: 120px; }
  .tc-safe { width: 92px; height: 84px; }
}



.brand-redirect-screen {
  --brand-ash: #F5F6F7;
  --brand-blue: #0052CC;

  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--brand-ash);
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-redirect-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ── SMALL 12-BAR SPINNER (same one as the page loader; keep only one copy of this block in your CSS) ── */
.spoke-spinner {
  position: relative;
  width: 28px;
  height: 28px;
}

.spoke-spinner i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2.5px;
  height: 7px;
  margin-left: -1.25px;
  border-radius: 2px;
  background: #3A3A3C;
  transform-origin: 50% 14px;   /* half of the 28px spinner */
  opacity: .15;
  animation: spokeFade 1.2s linear infinite;
}

.spoke-spinner i:nth-child(1)  { transform: rotate(0deg);   animation-delay: -1.2s; }
.spoke-spinner i:nth-child(2)  { transform: rotate(30deg);  animation-delay: -1.1s; }
.spoke-spinner i:nth-child(3)  { transform: rotate(60deg);  animation-delay: -1.0s; }
.spoke-spinner i:nth-child(4)  { transform: rotate(90deg);  animation-delay: -0.9s; }
.spoke-spinner i:nth-child(5)  { transform: rotate(120deg); animation-delay: -0.8s; }
.spoke-spinner i:nth-child(6)  { transform: rotate(150deg); animation-delay: -0.7s; }
.spoke-spinner i:nth-child(7)  { transform: rotate(180deg); animation-delay: -0.6s; }
.spoke-spinner i:nth-child(8)  { transform: rotate(210deg); animation-delay: -0.5s; }
.spoke-spinner i:nth-child(9)  { transform: rotate(240deg); animation-delay: -0.4s; }
.spoke-spinner i:nth-child(10) { transform: rotate(270deg); animation-delay: -0.3s; }
.spoke-spinner i:nth-child(11) { transform: rotate(300deg); animation-delay: -0.2s; }
.spoke-spinner i:nth-child(12) { transform: rotate(330deg); animation-delay: -0.1s; }

@keyframes spokeFade {
  0%   { opacity: 1; }
  100% { opacity: .15; }
}

/* ── TEXT BELOW THE SPINNER ── */
.brand-redirect-text {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-blue);
  letter-spacing: 0.02em;
}

@media (max-width: 380px) {
  .net-icon { width: 56px; height: 56px; }
  .brand-redirect-text { font-size: 11px; }
}



/* =====================================================================
   LUCKY SPIN — dark green + gold glass (static page)
   ===================================================================== */
#tasksPage {
  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
  left: 0;
  right: 0;
  box-sizing: border-box;
}

.sp-wrapper {
  --sp-green: #16A34A;
  --sp-emerald: #087A3D;
  --sp-lime: #B7F34A;
  --sp-gold: #F5C542;
  --sp-gold-light: #FFE58A;
  --sp-ink: #F4F7F4;
  --sp-muted: #A8B8AD;
  --sp-dark: #07110A;
  --sp-glass: rgba(11, 33, 21, 0.58);
  --sp-line: rgba(183, 243, 74, 0.20);

  position: relative;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--sp-ink);
  padding-bottom: 130px;
  background: #050907;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.sp-wrapper * { box-sizing: border-box; }

/* ---------- BACKGROUND (built-in green grid + photo on top) ---------- */
.sp-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 85% 6%, rgba(22, 163, 74, .38), transparent 70%),
    radial-gradient(50% 35% at 8% 55%, rgba(183, 243, 74, .12), transparent 70%),
    radial-gradient(60% 40% at 90% 96%, rgba(245, 197, 66, .10), transparent 70%),
    linear-gradient(rgba(183, 243, 74, .05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(183, 243, 74, .05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, #0B2115 0%, #050907 100%);
}
.sp-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sp-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 7, .55) 0%, rgba(5, 9, 7, .86) 100%);
}

/* ---------- HEADER ---------- */
.sp-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 14px;
  background: rgba(5, 9, 7, 0.60);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sp-line);
}
.sp-round-btn {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--sp-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--sp-gold-light);
  cursor: pointer;
}
.sp-round-btn:active { transform: scale(.94); }
.sp-header-title {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--sp-ink);
  pointer-events: none;
}

/* ---------- BODY ---------- */
.sp-body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 18px 14px 0;
}
.sp-hero-title {
  margin: 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--sp-ink);
}
.sp-hero-title span { color: var(--sp-lime); }
.sp-hero-sub {
  margin: 6px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--sp-muted);
}

/* ---------- WHEEL ---------- */
.sp-stage {
  display: flex;
  justify-content: center;
  margin: 26px 0 18px;
}
.sp-wheel-wrap {
  position: relative;
  width: min(320px, 84vw);
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 0 22px rgba(22, 163, 74, 0.35)) drop-shadow(0 12px 16px rgba(0, 0, 0, 0.5));
}
.sp-disc,
.sp-rim {
  position: absolute;
  inset: 0;
}
.sp-rim { pointer-events: none; }
.sp-disc svg,
.sp-rim svg { display: block; width: 100%; height: 100%; }

.sp-seg-text {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* chasing lights on the rim */
.sp-bulb { fill: #FFFFFF; animation: spBlink 1.6s ease-in-out infinite; }
.sp-bulb-b { animation-delay: 0.8s; }
@keyframes spBlink {
  0%, 100% { fill: #FFFFFF; }
  50% { fill: #B7F34A; }
}

/* pointer */
.sp-pointer {
  position: absolute;
  left: 50%;
  top: -4.5%;
  z-index: 4;
  width: 11%;
  margin-left: -5.5%;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5));
}
.sp-pointer svg { display: block; width: 100%; height: auto; }

/* centre GO button */
.sp-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 25%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 4px solid var(--sp-gold);
  border-radius: 50%;
  background: linear-gradient(160deg, var(--sp-lime) 0%, var(--sp-green) 100%);
  color: var(--sp-dark);
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: default;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 16px rgba(183, 243, 74, 0.35), inset 0 2px 3px rgba(255, 255, 255, 0.5);
  -webkit-tap-highlight-color: transparent;
}

/* ---------- INFO PILLS ---------- */
.sp-notes { display: flex; flex-direction: column; gap: 8px; }
.sp-notes p {
  margin: 0;
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(22, 163, 74, 0.22);
  border: 1px solid var(--sp-line);
  font-size: 11.5px;
  line-height: 1.5;
  color: #DDF7C3;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ---------- CARDS ---------- */
.sp-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--sp-line);
  border-radius: 16px;
  background: var(--sp-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 16px rgba(22, 163, 74, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.sp-card-title {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sp-ink);
}

.sp-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sp-price {
  padding: 9px 4px;
  text-align: center;
  border: 1px solid var(--sp-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 700;
  color: var(--sp-gold-light);
  font-variant-numeric: tabular-nums;
}

.sp-history { padding: 0; }
.sp-hist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--sp-line);
}
.sp-hist-row:last-child { border-bottom: none; }
.sp-hist-l b { display: block; font-size: 12.5px; font-weight: 600; color: var(--sp-ink); }
.sp-hist-l span { display: block; margin-top: 1px; font-size: 10.5px; color: var(--sp-muted); }
.sp-hist-amt { font-size: 13px; font-weight: 800; color: var(--sp-lime); }
.sp-hist-empty { padding: 6px 0; text-align: center; font-size: 12px; color: var(--sp-muted); }

/* ---------- ALERT (dark glass) ---------- */
.sp-ios-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.sp-ios-overlay.show { opacity: 1; }
.sp-ios-box {
  width: 290px;
  max-width: 100%;
  background: rgba(11, 33, 21, 0.97);
  color: #F4F7F4;
  border: 1px solid rgba(183, 243, 74, 0.25);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  transform: scale(1.08);
  transition: transform 0.16s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(22, 163, 74, 0.25);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.sp-ios-overlay.show .sp-ios-box { transform: scale(1); }
.sp-ios-body { padding: 18px 16px 16px; }
.sp-ios-title { margin-bottom: 4px; font-size: 16px; font-weight: 700; line-height: 1.25; color: #FFE58A; }
.sp-ios-msg { font-size: 12.5px; line-height: 1.45; color: #F4F7F4; }
.sp-ios-list {
  margin: 10px 0 0;
  padding-left: 18px;
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  color: #D5E2D9;
}
.sp-ios-list li { margin-bottom: 5px; }
.sp-ios-actions { border-top: 1px solid rgba(183, 243, 74, 0.20); }
.sp-ios-btn {
  display: block;
  width: 100%;
  height: 44px;
  border: 0;
  background: transparent;
  color: #B7F34A;
  font: 700 15px 'Inter', -apple-system, sans-serif;
  cursor: pointer;
}
.sp-ios-btn:active { background: rgba(255, 255, 255, 0.08); }

@media (prefers-reduced-motion: reduce) {
  .sp-bulb { animation: none; }
}


/* =========================================================================
   DESKTOP / TABLET RESPONSIVE LAYER
   -------------------------------------------------------------------------
   Nothing above this point was changed — every existing mobile rule and
   breakpoint in this file still applies exactly as before, at every width.
   Everything below only ACTIVATES at 768px and up, and only does 3 things:

     1. Fills the browser background behind the app on wide screens, so it
        no longer looks like a thin phone-width strip floating in blank
        white space.
     2. Widens the full-screen pages (dashboard, recharge, withdraw, bank,
        profile, tasks, etc.) and their inner content containers a
        moderate, readable amount — not edge-to-edge, since unbounded
        line-length at 1920px would be unreadable, but enough to visibly
        use the extra space and look intentional.
     3. Nudges base type size up slightly for comfortable reading at
        desktop viewing distance.
   ========================================================================= */

/* ---- 1. Desktop background behind the centered app ---- */
@media (min-width: 768px) {
  html, body {
    min-height: 100vh;
    background: linear-gradient(160deg, #f4f7fd 0%, #e9eefb 100%);
  }
}

/* ---- 2a. Full-screen page wrappers: framed + centered, tablet ---- */
@media (min-width: 768px) {
  .dashboard,
  #giftCodePage,
  #profilePage,
  .bank-page,
  #rechargePage,
  .recharge-page,
  .payment-confirm-page,
  .product-page,
  #earningsPage,
  .withdraw-page,
  .investment-page,
  .password-page,
  .tsk-wrapper,
  #tasksPage {
    max-width: 560px;
    margin: 0 auto;
    box-shadow:
      0 30px 80px rgba(3, 87, 238, 0.10),
      0 0 0 1px rgba(3, 87, 238, 0.05);
  }
}

/* ---- 2b. Same wrappers, wider again at true desktop sizes ---- */
@media (min-width: 1024px) {
  .dashboard,
  #giftCodePage,
  #profilePage,
  .bank-page,
  #rechargePage,
  .recharge-page,
  .payment-confirm-page,
  .product-page,
  #earningsPage,
  .withdraw-page,
  .investment-page,
  .password-page,
  .tsk-wrapper,
  #tasksPage {
    max-width: 640px;
  }
}

/* ---- 2c. Inner content containers: more breathing room on desktop ---- */
@media (min-width: 1024px) {
  .auth-page-inner,
  .header-top-row,
  #profilePage .profile-scroll-container,
  .bankdisp-container,
  #rechargePage .recharge-page-container,
  .records-content-container,
  .wd-container,
  .team-page-container,
  .ticker-search-bar {
    max-width: 560px;
  }

  .referral-promo-card,
  .premium-card,
  .referral-container,
  .card-wrapper {
    max-width: 640px;
  }

  .pw-container,
  .modal-card {
    max-width: 480px;
  }
}

/* ---- 2d. Popups/modals/alerts: stay compact, don't stretch ---- */
@media (min-width: 1024px) {
  .mx-unique-modal,
  .ft-alert-card {
    max-width: 400px;
  }
}

/* ---- 2e. Bottom nav follows the same widened frame ---- */
@media (min-width: 768px) {
  .bottom-nav {
    max-width: 560px;
  }
}

@media (min-width: 1024px) {
  .bottom-nav {
    max-width: 640px;
  }
}

/* ---- 3. Slightly larger base type for desktop reading distance ---- */
@media (min-width: 1024px) {
  body {
    font-size: 15.5px;
  }
}


.wd-account-item {
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.wd-account-check {
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.15s, transform 0.15s;
}

.wd-account-item.selected {
  border-color: #0057FF;
  background: #E5F0FF;
}

.wd-account-item.selected .wd-account-check {
  opacity: 1;
  transform: scale(1);
  color: #0057FF;
}

.wd-account-item.channel-disabled {
  opacity: 0.5;
  pointer-events: none;
}



/* ── FILL SCREEN: dashboard stretches down to the bottom nav ── */
:root {
  --nav-h: calc(58px + env(safe-area-inset-bottom, 0px));
}

/* JS shows the dashboard with an inline display value, which kills flex growth.
   This forces it back to a flex column whenever it's visible. */
.dashboard[style*="block"],
.dashboard[style*="flex"] {
  display: flex !important;
  flex-direction: column !important;
}

.dashboard {
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  height: auto;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Stat cards absorb the spare height */
.mx-stats-row {
  flex: 1 1 auto;
  min-height: 180px;
}

.mx-stat-card {
  height: auto !important;
  min-height: 180px;
}

.mx-stat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 380px) {
  .mx-stat-card { min-height: 160px; }
}





/* =========================================================
   FT ALERT & TOAST — White, Ash, and Black Theme
   ========================================================= */

/* Overlay Background */
#ftAlertOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65); /* Deep black translucent backdrop */
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#ftAlertOverlay.show {
  opacity: 1;
  visibility: visible;
}

/* Modal Box Container */
.ft-alert-box, 
.ft-alert-content {
  background: #ffffff; /* Pure White */
  color: #111827; /* Rich Black text */
  border: 1px solid #e5e7eb; /* Light Ash border */
  border-radius: 12px;
  width: 90%;
  max-width: 380px;
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Icons */
.ft-alert-icon {
  font-size: 32px;
  margin-bottom: 16px;
  color: #111827; /* Black accent */
}

/* Titles and Text */
#ftAlertTitle {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

#ftAlertText {
  font-size: 14px;
  color: #4b5563; /* Medium Ash / Slate */
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Action Buttons Container */
.ft-alert-actions {
  display: flex;
  gap: 10px;
}

/* Confirm / Primary Button (Solid Black with White Text) */
#ftAlertBtn {
  flex: 1;
  background-color: #111827; /* Black */
  color: #ffffff; /* White */
  border: none;
  padding: 12px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#ftAlertBtn:hover {
  background-color: #374151; /* Dark Ash / Charcoal hover */
}

/* Cancel Button (Light Ash Background with Dark Text) */
#ftAlertCancelBtn {
  flex: 1;
  background-color: #f3f4f6; /* Light Ash */
  color: #111827; /* Black */
  border: 1px solid #d1d5db; /* Ash border */
  padding: 12px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#ftAlertCancelBtn:hover {
  background-color: #e5e7eb; /* Slightly darker ash on hover */
}

/* =========================================================
   TOAST NOTIFICATIONS (White, Ash, & Black Theme)
   ========================================================= */

#toast-overlay {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 999999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

#toast-overlay.toast-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-inner {
  background: #111827; /* Solid Black */
  color: #ffffff; /* White Text */
  border: 1px solid #374151; /* Dark Ash border */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.toast-type-icon {
  font-size: 16px;
  color: #9ca3af; /* Ash accent icon */
}


/* =========================================================================
   THEME TOGGLE  (right = light, left = dark)
   ========================================================================= */
.theme-toggle {
  position: relative;
  flex: none;
  width: 46px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: #E3E9F8;
  box-shadow: inset 0 0 0 1px rgba(6, 69, 229, .14);
  -webkit-tap-highlight-color: transparent;
  transition: background .3s ease, box-shadow .3s ease;
}
.theme-toggle:focus-visible { outline: 2px solid #3A6CF0; outline-offset: 2px; }

/* faint icons sitting on the track: moon on the left, sun on the right */
.theme-toggle .tt-ico {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9.5px;
  color: #8793B3;
  opacity: .8;
  pointer-events: none;
}
.theme-toggle .tt-moon { left: 7px; }
.theme-toggle .tt-sun  { right: 7px; }

/* the sliding knob — light = right */
.theme-toggle .tt-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(6, 69, 229, .28);
  transform: translateX(22px);
  transition: transform .32s cubic-bezier(.4, .1, .2, 1), background .3s ease, box-shadow .3s ease;
  pointer-events: none;
}
.theme-toggle .tt-knob i {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  transition: opacity .25s ease, transform .35s ease;
}
.theme-toggle .tt-k-sun  { color: #F59E0B; opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle .tt-k-moon { color: #FFFFFF; opacity: 0; transform: rotate(-90deg) scale(.4); }

/* dark = left */
html[data-theme="dark"] .theme-toggle {
  background: #1B2440;
  box-shadow: inset 0 0 0 1px rgba(120, 150, 255, .22);
}
html[data-theme="dark"] .theme-toggle .tt-knob {
  transform: translateX(0);
  background: linear-gradient(135deg, #5B86FF, #0645E5);
  box-shadow: 0 2px 8px rgba(6, 69, 229, .55);
}
html[data-theme="dark"] .theme-toggle .tt-k-sun  { opacity: 0; transform: rotate(90deg) scale(.4); }
html[data-theme="dark"] .theme-toggle .tt-k-moon { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="dark"] .theme-toggle .tt-ico { color: #6B7799; }

/* where the toggle sits */
.hm-header-right { display: flex; align-items: center; gap: 12px; }
.auth-top-right  { display: flex; align-items: center; gap: 14px; }
#profilePage .pf-row-theme { cursor: default; }
#profilePage .pf-row-theme:active { opacity: 1; }


/* =========================================================================
   DARK THEME
   Only active when <html data-theme="dark">. Light mode is untouched.
   ========================================================================= */
html[data-theme="dark"] { color-scheme: dark; }

html[data-theme="dark"],
html[data-theme="dark"] body {
  background: #0B0F1A;
  color: #EDF0F7;
}
@media (min-width: 768px) {
  html[data-theme="dark"],
  html[data-theme="dark"] body {
    background: linear-gradient(160deg, #080B14 0%, #0E1424 100%);
  }
  html[data-theme="dark"] .dashboard,
  html[data-theme="dark"] #giftCodePage,
  html[data-theme="dark"] #profilePage,
  html[data-theme="dark"] .bank-page,
  html[data-theme="dark"] #rechargePage,
  html[data-theme="dark"] .payment-confirm-page,
  html[data-theme="dark"] .product-page,
  html[data-theme="dark"] #earningsPage,
  html[data-theme="dark"] .withdraw-page,
  html[data-theme="dark"] .investment-page,
  html[data-theme="dark"] .tsk-wrapper,
  html[data-theme="dark"] #tasksPage {
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(120, 150, 255, .08);
  }
}

/* ---------- global variables ---------- */
html[data-theme="dark"] {
  --bg: #0B0F1A;
  --bg-2: #10162A;
  --card: #141B2E;
  --line: #232B42;
  --ink: #EDF0F7;
  --muted: #8E98B0;
  --blue: #4C7DFF;
  --blue-light: #6B94FF;
  --blue-deep: #2A5FEA;
  --glow: rgba(76, 125, 255, .35);

  --gc-bg: #0B0F1A;
  --gc-bg-2: #10162A;
  --gc-card: #141B2E;
  --gc-line: #262E48;
  --gc-ink: #EDF0F7;
  --gc-muted: #8E98B0;
  --gc-soft: rgba(162, 77, 255, .16);

  --bk-bg: #0B0F1A;
  --bk-bg-2: #10162A;
  --bk-card: #141B2E;
  --bk-line: #232B42;
  --bk-ink: #EDF0F7;
  --bk-muted: #8E98B0;
  --bk-blue: #4C7DFF;
  --bk-blue-light: #6B94FF;
  --bk-blue-deep: #2A5FEA;
  --bk-soft: rgba(76, 125, 255, .14);
  --bk-glow: rgba(76, 125, 255, .35);

  --pw-bg: #0B0F1A;
  --pw-bg-2: #0B0F1A;
  --pw-card: #141B2E;
  --pw-line: #232B42;
  --pw-ink: #EDF0F7;
  --pw-muted: #8E98B0;
  --pw-blue: #4C7DFF;
  --pw-blue-light: #6B94FF;
  --pw-blue-deep: #2A5FEA;
  --pw-soft: rgba(76, 125, 255, .14);
  --pw-glow: rgba(76, 125, 255, .35);

  --tsk-bg: #0B0F1A;
  --tsk-bg-2: #0B0F1A;
  --tsk-card: #141B2E;
  --tsk-line: #232B42;
  --tsk-ink: #EDF0F7;
  --tsk-muted: #8E98B0;
  --tsk-blue: #4C7DFF;
  --tsk-blue-light: #6B94FF;
  --tsk-blue-deep: #2A5FEA;
  --tsk-soft: rgba(76, 125, 255, .16);
  --tsk-glow: rgba(76, 125, 255, .35);
  --tsk-green: #4CC380;
  --tsk-green-soft: rgba(76, 195, 128, .14);

  --tc-ink: #EDF0F7;
  --tc-muted: #8E98B0;
  --tc-bg: #0B0F1A;
  --tc-white: #141B2E;
  --tc-line: #232B42;

  --wc-white: #141B2E;
  --wc-black: #EDF0F7;
  --wc-ash: #1C2438;
  --wc-ash-light: #222B44;
  --wc-ash-dark: #2B3550;
  --wc-grey: #9AA3B8;
  --wc-line: #262F48;
}

/* ---------- login / signup ---------- */
html[data-theme="dark"] .honda-auth-container {
  background:
    radial-gradient(circle at 85% -5%, rgba(76, 125, 255, .16), transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
html[data-theme="dark"] .auth-input input::placeholder { color: #5E6985; }
html[data-theme="dark"] .auth-nodes { opacity: .55; }
html[data-theme="dark"] .auth-input:focus-within { box-shadow: 0 0 0 3px rgba(76, 125, 255, .22); }

/* ---------- dashboard ---------- */
html[data-theme="dark"] .dashboard {
  --blue: #4C7DFF;
  --blue-deep: #2A5FEA;
  --blue-glaze: rgba(76, 125, 255, .14);
  --blue-glaze-line: rgba(76, 125, 255, .28);
  --blue-shadow: rgba(76, 125, 255, .30);
  --black: #EDF0F7;
  --muted: rgba(237, 240, 247, .56);
  --line: rgba(255, 255, 255, .09);
  --bg: #0B0F1A;
}
html[data-theme="dark"] .dashboard .hm-bell,
html[data-theme="dark"] .dashboard .hm-action-ic.tg,
html[data-theme="dark"] .dashboard .hm-prod { background: #141B2E; }
html[data-theme="dark"] .dashboard .hm-bell-dot { border-color: #0B0F1A; }
html[data-theme="dark"] .dashboard .hm-prod { box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .dashboard .hm-arrow-btn,
html[data-theme="dark"] .dashboard .hm-action-ic.primary { color: #fff; }

/* ---------- gift code ---------- */
html[data-theme="dark"] #giftCodePage { background: linear-gradient(180deg, #0B0F1A 0%, #10162A 100%); }
html[data-theme="dark"] .gift-page-header { background: rgba(11, 15, 26, .92); }
html[data-theme="dark"] .gift-back-btn,
html[data-theme="dark"] .gift-input-row { background: #141B2E; }
html[data-theme="dark"] .gift-ticket {
  background: linear-gradient(180deg, #1C1633 0%, #141029 100%);
  border-color: #33275A;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4);
}
html[data-theme="dark"] .gift-ticket-cut { border-top-color: #3A2D66; }
html[data-theme="dark"] .gift-ticket-cut::before,
html[data-theme="dark"] .gift-ticket-cut::after { background: #0E1322; border-color: #33275A; }
html[data-theme="dark"] #giftCodeInput::placeholder { color: #5E6985; }
html[data-theme="dark"] .gift-reward-amount { color: #C084FF; }
html[data-theme="dark"] .record-id { background: #1C2438; color: #EDF0F7; }

/* ---------- bottom nav ---------- */
html[data-theme="dark"] .bottom-nav {
  --nav-active: #6B94FF;
  --nav-active-bg: rgba(76, 125, 255, .16);
  --nav-muted: #8E98B0;
  background: #0F1424;
  border-top-color: #1E2640;
}

/* ---------- ticker ---------- */
html[data-theme="dark"] .ticker-search-bar { background: #141B2E; border-color: rgba(162, 77, 255, .3); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .ticker-item { color: #A8B1C7; }

/* ---------- download page ---------- */
html[data-theme="dark"] .dl-page {
  --dl-blue: #8FB0FF;
  --dl-blue-mid: #6B94FF;
  --dl-tint: #16203A;
  --dl-tint-line: #25324F;
  --dl-ash: #0B0F1A;
  --dl-ink: #EDF0F7;
  --dl-muted: #8E98B0;
}
html[data-theme="dark"] .dl-back { background: linear-gradient(180deg, #1A2238, #141B2E); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .dl-hero,
html[data-theme="dark"] .dl-banner { background: linear-gradient(180deg, #19233F 0%, #16203A 100%); }
html[data-theme="dark"] .dl-store { background: linear-gradient(180deg, #1E2740, #19223A); color: #6E7A99; box-shadow: none; }

/* ---------- profile ---------- */
html[data-theme="dark"] #profilePage {
  --ink: #EDF0F7;
  --black: #1C2338;
  --ash: #141B2E;
  --muted: #8E98B0;
  --line: #232B42;
  --bg: #0B0F1A;
  --danger: #FF6B6B;
}
html[data-theme="dark"] #profilePage .pf-header-bar,
html[data-theme="dark"] #profilePage .pf-actions,
html[data-theme="dark"] #profilePage .pf-list { background: #141B2E; }
html[data-theme="dark"] #profilePage .pf-info-box { border: 1px solid #262F48; }

/* ---------- bank page + bank picker ---------- */
html[data-theme="dark"] .bank-page {
  background:
    radial-gradient(120% 36% at 50% 0%, rgba(76, 125, 255, .14) 0%, rgba(11, 15, 26, 0) 70%),
    linear-gradient(180deg, #0B0F1A 0%, #10162A 100%);
}
html[data-theme="dark"] .bank-header { background: rgba(11, 15, 26, .94); }
html[data-theme="dark"] .bank-round-btn,
html[data-theme="dark"] .bank-check-box,
html[data-theme="dark"] .bank-search { background: #141B2E; }
html[data-theme="dark"] .bank-check-box { border-color: #3A4566; }
html[data-theme="dark"] .bank-chip { background: #2A3350; }
html[data-theme="dark"] .bank-linked-card { box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .bank-sheet { background: #10162A; }
html[data-theme="dark"] .bank-sheet-overlay { background: rgba(0, 0, 0, .65); }
html[data-theme="dark"] .bank-input::placeholder,
html[data-theme="dark"] .bank-search input::placeholder { color: #5E6985; }

/* ---------- recharge ---------- */
html[data-theme="dark"] #rechargePage {
  --pu: #4C7DFF;
  --pu-deep: #2A5FEA;
  --pu-bright: #6B94FF;
  --pu-glaze: rgba(76, 125, 255, .14);
  --pu-glaze-line: rgba(76, 125, 255, .30);
  --rc-ink: #EDF0F7;
  --rc-muted: #9AA3B8;
  --rc-faint: #6E7A99;
  --rc-line: #232B42;
  --rc-panel: #141B2E;
  --rc-bg: #0B0F1A;
}
html[data-theme="dark"] #rechargePage .amount-option { background: #141B2E; }
html[data-theme="dark"] #rechargePage .amount-option.active,
html[data-theme="dark"] #rechargePage .amount-option.selected { background: var(--pu-glaze); }
html[data-theme="dark"] #rechargePage #customAmount::placeholder { color: #5E6985; }
html[data-theme="dark"] #rechargePage .channel-box-radio { background: #141B2E; border-color: #3A4566; }
html[data-theme="dark"] #rechargePage .channel-box.selected .channel-box-radio { background: #0B0F1A; border-color: var(--pu); }
html[data-theme="dark"] #rechargePage .deposit-btn:disabled { background: #1C2438; color: #6E7A99; }
html[data-theme="dark"] #rechargePage .deposit-btn { color: #fff; }
html[data-theme="dark"] #rechargePage::-webkit-scrollbar-thumb { background: rgba(76, 125, 255, .5); }
html[data-theme="dark"] .rech-loader-popup {
  background: #141B2E !important;
  border-color: #232B42 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .6) !important;
}
html[data-theme="dark"] .rech-loader-spinner { background: rgba(76, 125, 255, .14); }
html[data-theme="dark"] .rech-loader-spinner::after { border-top-color: #4C7DFF; }
html[data-theme="dark"] .rech-loader-icon { color: #6B94FF; }
html[data-theme="dark"] .rech-loader-text { color: #EDF0F7; }

/* ---------- manual checkout (yellow) ---------- */
html[data-theme="dark"] .mcp-page {
  --mcp-ink: #F1F1F3;
  --mcp-muted: #9AA0AC;
  --mcp-faint: #6B7280;
  --mcp-line: #262E44;
  --mcp-ash: #0B0F1A;
  --mcp-warn: #E8B73A;
}
html[data-theme="dark"] .mcp-icon-btn,
html[data-theme="dark"] .mcp-copy-icon,
html[data-theme="dark"] .mcp-details-card,
html[data-theme="dark"] .mcp-field-input,
html[data-theme="dark"] .mcp-upload-zone,
html[data-theme="dark"] .mcp-success-page { background: #141B2E; }
html[data-theme="dark"] .mcp-amount-card,
html[data-theme="dark"] .mcp-upload-zone.has-file { background: rgba(245, 230, 0, .08); border-color: rgba(245, 230, 0, .28); }
html[data-theme="dark"] .mcp-copy-icon:active { color: #111; }
html[data-theme="dark"] .mcp-primary-btn,
html[data-theme="dark"] .mcp-success-mark { color: #111; }
html[data-theme="dark"] .mcp-timer-track { background: #1C2438; }

/* ---------- welcome popup / alerts / toast ---------- */
html[data-theme="dark"] .wc-modal { box-shadow: 0 24px 60px rgba(0, 0, 0, .65); }
html[data-theme="dark"] .wc-tg-primary { box-shadow: none; }

html[data-theme="dark"] .ft-alert-card { background: #141B2E; border: 1px solid #232B42; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
html[data-theme="dark"] .ft-alert-title,
html[data-theme="dark"] #ftAlertTitle,
html[data-theme="dark"] .ft-alert-html { color: #EDF0F7; }
html[data-theme="dark"] .ft-alert-text,
html[data-theme="dark"] #ftAlertText { color: rgba(237, 240, 247, .62); }
html[data-theme="dark"] .ft-alert-icon.warning { background: rgba(217, 154, 6, .16); }
html[data-theme="dark"] .ft-alert-icon.error   { background: rgba(229, 72, 77, .16); }
html[data-theme="dark"] .ft-alert-icon.success,
html[data-theme="dark"] .ft-alert-icon.info    { background: rgba(26, 156, 74, .16); }
html[data-theme="dark"] .ft-alert-btn-cancel,
html[data-theme="dark"] #ftAlertCancelBtn { background: #232B40; color: #EDF0F7; border: 1px solid #2F3A56; }
html[data-theme="dark"] #ftAlertCancelBtn:hover { background: #2B3550; }
html[data-theme="dark"] #ftAlertBtn { background: #EDF0F7; color: #111827; }
html[data-theme="dark"] #ftAlertBtn:hover { background: #CFD6E6; }

html[data-theme="dark"] .toast-inner { background: #1F2740; border: 1px solid #2F3A56; }
html[data-theme="dark"] .custom-alert { background: rgba(31, 39, 64, .95); border: 1px solid #2F3A56; }

/* SweetAlert2 popups */
html[data-theme="dark"] .swal2-popup { background: #141B2E; color: #EDF0F7; }
html[data-theme="dark"] .swal2-title,
html[data-theme="dark"] .swal2-html-container,
html[data-theme="dark"] .gle-swal-title { color: #EDF0F7 !important; }
html[data-theme="dark"] .gle-swal-text { color: #9AA3B8 !important; }
html[data-theme="dark"] .gle-swal-popup { box-shadow: 0 20px 50px rgba(0, 0, 0, .6) !important; }
html[data-theme="dark"] .gle-swal-icon { border-color: #232B42 !important; }

/* ---------- referral promo card ---------- */
html[data-theme="dark"] .referral-promo-card { background: #141B2E; border-color: #232B42; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .referral-eyebrow { color: #6B94FF; }
html[data-theme="dark"] .referral-headline { color: #EDF0F7; }
html[data-theme="dark"] .referral-subtext { color: #8E98B0; }
html[data-theme="dark"] .referral-icon-badge { background: rgba(76, 125, 255, .14); border-color: rgba(76, 125, 255, .3); color: #6B94FF; }
html[data-theme="dark"] .referral-pill.green { background: rgba(22, 163, 74, .16); border-color: rgba(22, 163, 74, .35); color: #4ADE80; }
html[data-theme="dark"] .referral-pill.amber { background: rgba(245, 158, 11, .14); border-color: rgba(245, 158, 11, .35); color: #FBBF24; }

/* ---------- product page / purple cards ---------- */
html[data-theme="dark"] .product-page { background: #0B0F1A; }
html[data-theme="dark"] .premium-card { background: #141B2E; border-color: #2A2347; box-shadow: 0 4px 18px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .inv-product-img { background: #1B1733; border-color: #2A2347; }
html[data-theme="dark"] .premium-card .inv-stat-box { background: #1A1730; border-color: #2A2347; }
html[data-theme="dark"] .premium-card .inv-stat-label { color: #8E98B0; }
html[data-theme="dark"] .premium-card .inv-stat-val.dark { color: #EDF0F7; }
html[data-theme="dark"] .inv-card-footer { border-top-color: #2A2347; }
html[data-theme="dark"] .inv-date-range { color: #B794FF; }
html[data-theme="dark"] .inv-progress-bar-wrap { background: #2A2347; }
html[data-theme="dark"] .inv-countdown-row { background: #1A1730; border-top-color: #2A2347; }
html[data-theme="dark"] .inv-countdown-timer { color: #C9A6FF; }

/* ---------- invite page ---------- */
html[data-theme="dark"] .invite-page {
  background:
    radial-gradient(120% 40% at 50% 0%, rgba(76, 125, 255, .14) 0%, rgba(11, 15, 26, 0) 70%),
    linear-gradient(180deg, #0B0F1A 0%, #10162A 100%);
}
html[data-theme="dark"] .invite-page .iv-code-section { background: linear-gradient(180deg, #121A30 0%, #141B2E 100%); }
html[data-theme="dark"] .invite-page .iv-media-foot { background: #060810; }
html[data-theme="dark"] .invite-page .iv-badge-2 { background: #2A3350; }
html[data-theme="dark"] .invite-page .iv-link-text { color: #8FB0FF; }
html[data-theme="dark"] .invite-page .iv-main-card { box-shadow: 0 10px 26px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .invite-page .iv-level-card { box-shadow: none; }

/* ---------- team / earnings ---------- */
html[data-theme="dark"] #earningsPage {
  --team-ink: #EDF0F7;
  --team-muted: rgba(237, 240, 247, .56);
  --team-line: rgba(255, 255, 255, .09);
  --team-bg: #0B0F1A;
  --team-blue: #4C7DFF;
  --team-blue-soft: rgba(76, 125, 255, .14);
  --team-black-a: #1C2338;
  --team-black-b: #121829;
}
html[data-theme="dark"] .team-header-main,
html[data-theme="dark"] .team-tabs,
html[data-theme="dark"] .team-list-row,
html[data-theme="dark"] .team-list-empty-wrap { background: #141B2E; }
html[data-theme="dark"] .team-board { border-color: #2A3350; }
html[data-theme="dark"] .team-view-team-btn { color: #fff; }

/* ---------- withdraw ---------- */
html[data-theme="dark"] .withdraw-page {
  --pu: #4C7DFF;
  --pu-deep: #9DB8FF;
  --pu-glaze: rgba(76, 125, 255, .14);
  --pu-glaze-line: rgba(76, 125, 255, .30);
  --ink: #EDF0F7;
  --muted: #9AA3B8;
  --faint: #6E7A99;
  --line: #232B42;
  --bg: #0B0F1A;
}
html[data-theme="dark"] .wd-circle-btn,
html[data-theme="dark"] .wd-account-card { background: #141B2E; }
html[data-theme="dark"] .wd-status { background: #121A30; }
html[data-theme="dark"] .wd-chip { background: #141B2E; }
html[data-theme="dark"] .wd-chip.active { background: var(--pu-glaze); }
html[data-theme="dark"] .wd-input::placeholder { color: #5E6985; }
html[data-theme="dark"] .wd-account-item.selected { background: rgba(76, 125, 255, .14); border-color: #4C7DFF; }
html[data-theme="dark"] .wd-account-item.selected .wd-account-check { color: #6B94FF; }
html[data-theme="dark"] .wd-confirm-btn { color: #fff; }

/* ---------- records ---------- */
html[data-theme="dark"] #recordsPage {
  --blue: #4C7DFF;
  --blue-soft: rgba(76, 125, 255, .16);
  --white: #141B2E;
  --bg: #0B0F1A;
  --ink: #EDF0F7;
  --muted: #8E98B0;
  --faint: #6E7A99;
  --line: #232B42;
  --amber: #F5A524;
  --amber-soft: rgba(245, 158, 11, .16);
  --red: #F87171;
  --red-soft: rgba(248, 113, 113, .14);
}
html[data-theme="dark"] #recordsPage .tx-row { box-shadow: none; }
html[data-theme="dark"] #recordsPage .tx-skel {
  background: linear-gradient(90deg, #1A2238 25%, #232C46 50%, #1A2238 75%);
  background-size: 200% 100%;
}

/* ---------- investment modal ---------- */
html[data-theme="dark"] .modal-card { background: #141B2E; box-shadow: 0 20px 40px rgba(0, 0, 0, .6); }
html[data-theme="dark"] .sheet-title { color: #EDF0F7; }
html[data-theme="dark"] .close-sheet { background: #232B40; color: #EDF0F7; }
html[data-theme="dark"] .slim-card { background: #1A2238; box-shadow: none; }
html[data-theme="dark"] .product-details strong { color: #EDF0F7; }
html[data-theme="dark"] .product-details p { color: #9AA3B8; }
html[data-theme="dark"] .divider-line { background: #2A3350; }
html[data-theme="dark"] .account-balance-row { color: #C4CBDD; }

/* ---------- my products ---------- */
html[data-theme="dark"] .investment-page {
  --inv-card: #151B2E;
  --inv-ink: #EDF0F7;
  --inv-muted: #8E98B0;
  background: #0B0F1A;
}
html[data-theme="dark"] .fs-card-img { background: #232B40; }
html[data-theme="dark"] .inv-banner { background: #151B2E; }

/* ---------- products list ---------- */
html[data-theme="dark"] .ppx-page {
  --ppx-blue: #4C7DFF;
  --ppx-tint: rgba(76, 125, 255, .14);
  --ppx-line: rgba(255, 255, 255, .09);
  --ppx-ink: #EDF0F7;
  background: #0B0F1A;
}
html[data-theme="dark"] .ppx-item { background: #141B2E; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .ppx-item-media { background: #1C2438; }
html[data-theme="dark"] .ppx-media-img { background: #232B40; }
html[data-theme="dark"] .ppx-media-note { color: #C4CBDD; }
html[data-theme="dark"] .ppx-buy-btn { color: #fff; }
html[data-theme="dark"] .ppx-buy-btn:disabled { background: #232B40; color: #6E7A99; }
html[data-theme="dark"] .ppx-rate b { color: #6B94FF; }
html[data-theme="dark"] .ppx-item::after {
  background: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.07) 50%, rgba(255,255,255,0) 100%);
}

/* ---------- password page ---------- */
html[data-theme="dark"] .pw-page { background: #0B0F1A; }
html[data-theme="dark"] .pw-topbar { background: rgba(11, 15, 26, .92); }
html[data-theme="dark"] .pw-back-btn { background: #141B2E; }
html[data-theme="dark"] .pw-input-wrap input::placeholder { color: #5E6985; }

/* ---------- empty state, loaders ---------- */
html[data-theme="dark"] .empty-state-container { background: #141B2E; border-color: #232B42; box-shadow: 0 4px 15px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .empty-icon-circle { background: #1C2438; }
html[data-theme="dark"] .empty-icon-circle i { color: #EDF0F7; }
html[data-theme="dark"] .empty-title { color: #EDF0F7; }
html[data-theme="dark"] .empty-subtitle { color: #8E98B0; }

html[data-theme="dark"] #pageLoader { background: #0B0F1A; }
html[data-theme="dark"] .brand-redirect-screen { --brand-ash: #0B0F1A; --brand-blue: #6B94FF; }
html[data-theme="dark"] .clean-loading-text,
html[data-theme="dark"] .loader-dots::after { color: #6B94FF; }

/* ---------- reviews ticker ---------- */
html[data-theme="dark"] .reviews-ticker-wrapper { background: #0B0F1A; }
html[data-theme="dark"] .review-item { background: #141B2E; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .review-item .review-text { color: #9DB8FF; }

/* ---------- payment type dropdown ---------- */
html[data-theme="dark"] .payment-box,
html[data-theme="dark"] .payment-options { background: #141B2E; border-color: #2F3A56; color: #EDF0F7; }
html[data-theme="dark"] .payment-options li { color: #EDF0F7; }
html[data-theme="dark"] .payment-options li:hover { background: rgba(76, 125, 255, .14); }
html[data-theme="dark"] .selected-amount { color: #EDF0F7; }

/* ---------- payment status + record badges ---------- */
html[data-theme="dark"] .status-pending  { background: rgba(245, 158, 11, .14); color: #FBBF24; }
html[data-theme="dark"] .status-approved { background: rgba(22, 163, 74, .16);  color: #4ADE80; }
html[data-theme="dark"] .status-declined,
html[data-theme="dark"] .status-failed   { background: rgba(220, 38, 38, .16);  color: #F87171; }
html[data-theme="dark"] .status-timeout  { background: rgba(245, 158, 11, .14); color: #FBBF24; }

html[data-theme="dark"] .payment-confirm-page { background: #0B0F1A; }
html[data-theme="dark"] .pc-title { color: #EDF0F7; }
html[data-theme="dark"] .pc-sub { color: #8E98B0; }
html[data-theme="dark"] .pc-ring { border-color: #3A3320; border-top-color: #F0B100; }

/* ---------- tasks ---------- */
html[data-theme="dark"] .tsk-header { background: rgba(11, 15, 26, .92); }
html[data-theme="dark"] .tsk-round-btn,
html[data-theme="dark"] .tsk-step-num { background: #141B2E; }
html[data-theme="dark"] .tsk-btn.progress,
html[data-theme="dark"] .tsk-step.is-ready .tsk-step-num,
html[data-theme="dark"] .tsk-step.is-ready .tsk-step-reward { color: #9DB8FF; }
html[data-theme="dark"] .tsk-step.is-claimed .tsk-step-num { border-color: rgba(76, 195, 128, .4); }

/* ---------- games (spin / dice / safe) ---------- */
html[data-theme="dark"] .tc-recharge-btn,
html[data-theme="dark"] .tc-reward-claim-btn { background: #EDF0F7; color: #111; }
html[data-theme="dark"] .tc-reward-card { background: #141B2E; }
html[data-theme="dark"] .tc-reward-label { color: #8E98B0; }
html[data-theme="dark"] .tc-play-btn:disabled { background: #2A3350 !important; color: #6E7A99; }
html[data-theme="dark"] .tc-wheel-hub { background: #141B2E; }
html[data-theme="dark"] .tc-activate-btn { color: #fff; }


/* =========================================================================
   DARK THEME — things created by script.js (popups, loaders, toasts)
   ========================================================================= */

/* SweetAlert toasts (FintechNotify / FintechToast set an inline white background) */
html[data-theme="dark"] .fintech-toast,
html[data-theme="dark"] .fintech-toast-offset,
html[data-theme="dark"] .swal2-popup.swal2-toast {
  background: #1F2740 !important;
  color: #EDF0F7 !important;
  border: 1px solid #2F3A56;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5) !important;
}
html[data-theme="dark"] .swal2-toast .swal2-title,
html[data-theme="dark"] .swal2-toast .swal2-html-container { color: #EDF0F7 !important; }
html[data-theme="dark"] .swal2-timer-progress-bar { background: rgba(255, 255, 255, .35); }
html[data-theme="dark"] .swal2-icon .swal2-success-fix,
html[data-theme="dark"] .swal2-icon [class^="swal2-success-circular-line"] { background: transparent !important; }

/* iOS-style alert */
html[data-theme="dark"] .ios-alert-box { background: rgba(28, 33, 50, .94); box-shadow: 0 8px 28px rgba(0, 0, 0, .6); }
html[data-theme="dark"] .ios-alert-title { color: #EDF0F7; }
html[data-theme="dark"] .ios-alert-message { color: rgba(237, 240, 247, .66); }
html[data-theme="dark"] .ios-alert-btn-row { border-top-color: rgba(255, 255, 255, .12); }
html[data-theme="dark"] .ios-alert-btn-row .ios-alert-btn:not(:last-child) { border-right-color: rgba(255, 255, 255, .12); }
html[data-theme="dark"] .ios-alert-btn:active { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .ios-alert-btn { color: #4ADE80; }
html[data-theme="dark"] .ios-alert-btn.ios-alert-btn-destructive { color: #FF6B6B; }

/* logout loader */
html[data-theme="dark"] #customLogoutLoader {
  background: radial-gradient(circle at 50% 42%, #141B2E 0%, #0B0F1A 60%, #080B14 100%);
}
html[data-theme="dark"] #customLogoutLoader .lo-title { color: #CFE0FF; }
html[data-theme="dark"] #customLogoutLoader .lo-sub { color: #8E98B0; }

/* captcha canvas keeps the same text, just flips to dark colors */
html[data-theme="dark"] #captchaCanvas { filter: invert(1) hue-rotate(180deg); border-radius: 6px; }

/* "no transactions" illustration (SVG fills are set in script.js) */
html[data-theme="dark"] .tx-empty svg ellipse { fill: #1C2438; }
html[data-theme="dark"] .tx-empty svg rect { fill: #2A3350; }
html[data-theme="dark"] .tx-empty svg rect:first-of-type { fill: #141B2E; stroke: #2A3350; }





/* =========================================================
   CUSTOMER SERVICE (page id: vipPage) — image / dim glass / lime
   ========================================================= */
.vip-page {
  /* ====== PAGE BACKGROUND IMAGE (free picsum seed). Change the link to use your own ====== */
  --cs-bg-image: url('https://picsum.photos/seed/nrt-support-bg/720/1280');

  --cs-lime: #B7F34A;
  --cs-green: #16A34A;
  --cs-gold: #F5C542;
  --cs-text: #FFFFFF;
  --cs-muted: #A8B8AD;
  --cs-border: rgba(183, 243, 74, 0.20);
  --cs-glass: rgba(10, 22, 14, 0.82);
  --cs-glow: 0 0 20px rgba(22, 163, 74, 0.25);

  position: relative;
  min-height: 100vh;
  background: #07110A;
  color: var(--cs-text);
  color-scheme: dark;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 110px;
  overflow-x: hidden;
}
.vip-page *, .vip-page *::before, .vip-page *::after { box-sizing: border-box; }
.vip-page p, .vip-page h2 { margin: 0; }
.vip-page button { -webkit-appearance: none; appearance: none; font-family: inherit; color: inherit; margin: 0; }

/* page image with a soft tint */
.cs-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,17,10,0.45) 0%, rgba(7,17,10,0.75) 100%),
    var(--cs-bg-image) center / cover no-repeat,
    linear-gradient(180deg, #0E2A1A, #07110A);
}


/* ── BANNER ── */
.cs-hero {
  position: relative; z-index: 1;
  width: 100%;
  height: calc(210px + env(safe-area-inset-top, 0px));
  overflow: hidden;
  background: linear-gradient(135deg, #0E2A1A, #07110A);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.cs-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.cs-hero::after {                      /* dark layer so the title stays readable */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,17,10,.55) 0%, rgba(7,17,10,.15) 55%, rgba(7,17,10,0) 100%);
  pointer-events: none;
}
.cs-hero-top {
  position: absolute; z-index: 2; top: 0; left: 0; right: 0;
  height: calc(46px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center; justify-content: center;
}
.cs-title { font-size: 12.5px; font-weight: 500; letter-spacing: .3px; }
.cs-hero-brand {
  position: absolute; z-index: 2; left: 50%; bottom: 46px;
  transform: translateX(-50%);
  padding: 4px 18px;
  border-radius: 999px;
  border: 1px solid var(--cs-border);
  background: var(--cs-glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 600; letter-spacing: 4px;
  color: var(--cs-lime);
}


/* ── BODY ── */
.cs-body {
  position: relative; z-index: 2;
  max-width: 430px;
  margin: -34px auto 0;
  padding: 0 14px;
  display: flex; flex-direction: column; gap: 10px;
}

/* online time card */
.cs-time {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px 16px 16px;
  border-radius: 16px;
  background: var(--cs-glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--cs-border);
  box-shadow: var(--cs-glow), inset 0 1px 0 rgba(255,255,255,.08);
}
.cs-time-hours { font-size: 19px; font-weight: 500; letter-spacing: .3px; color: var(--cs-text); }
.cs-time-label { font-size: 11px; color: var(--cs-muted); }
.cs-status {
  margin-top: 4px;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  font-size: 10px; font-weight: 500;
  color: var(--cs-muted);
}
.cs-status.is-on  { border-color: var(--cs-border); color: var(--cs-lime); background: rgba(183,243,74,.08); }
.cs-status.is-off { color: var(--cs-gold); border-color: rgba(245,197,66,.3); }

.cs-section { margin: 8px 0 0 4px; font-size: 12px; font-weight: 500; color: var(--cs-text); }

/* pill buttons */
.cs-link {
  width: 100%;
  height: 46px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  border: 1px solid var(--cs-border);
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--cs-glow), inset 0 1px 0 rgba(255,255,255,.1);
  font-size: 12.5px; font-weight: 500; text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .1s, background .15s;
}
.cs-link svg { width: 16px; height: 16px; stroke: var(--cs-lime); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cs-link:not(:disabled):hover { background: rgba(22, 163, 74, 0.6); }
.cs-link:active { transform: scale(.985); }
.cs-link:focus-visible { outline: 2px solid var(--cs-lime); outline-offset: 2px; }

/* tips */
.cs-tips {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--cs-glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--cs-border);
  display: flex; flex-direction: column; gap: 8px;
}
.cs-tips h2 { font-size: 12px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase; color: var(--cs-lime); }
.cs-tips p { font-size: 11px; line-height: 1.65; color: var(--cs-muted); }

@media (prefers-reduced-motion: reduce) {
  .cs-link { transition: none; }
}


/* =========================================================
   KEPT: Confirm Purchase sheet (used by the Products page)
   Looks only; open/close logic untouched.
   ========================================================= */
#investmentModal{background:rgba(20,32,26,.45);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
#investmentModal .modal-card{background:#fff;border-radius:26px 26px 0 0;padding:20px 18px calc(20px + env(safe-area-inset-bottom,0px));box-shadow:0 -12px 40px rgba(20,32,26,.18);font-family:'Plus Jakarta Sans','Inter',system-ui,sans-serif}
#investmentModal .sheet-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
#investmentModal .sheet-title{margin:0;font-size:18px;font-weight:800;color:#14201a;letter-spacing:-.2px}
#investmentModal .close-sheet{width:32px;height:32px;border:0;border-radius:50%;background:#f1f3f4;color:#4b5a52;font-size:19px;line-height:1;cursor:pointer;display:grid;place-items:center}
#investmentModal .slim-card{background:#f7f8f9;border:1px solid #e6e8eb;border-radius:18px;padding:14px}
#investmentModal .product-main-row{display:flex;align-items:center;gap:12px}
#investmentModal .check-icon-container{flex:0 0 46px;height:46px}
#investmentModal .check-icon{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(145deg,#4ade80,#16a34a);color:#fff;font-size:19px;font-weight:800;box-shadow:0 6px 14px rgba(34,165,89,.28)}
#investmentModal .product-details strong{display:block;font-size:15.5px;font-weight:800;color:#14201a}
#investmentModal .product-details p{margin:3px 0 0;font-size:13px;color:#6b7580}
#investmentModal .divider-line{height:1px;margin:13px 0;background:repeating-linear-gradient(90deg,#d9dde1 0 6px,transparent 6px 11px)}
#investmentModal .account-balance-row{font-size:13px;font-weight:600;color:#4b5a52}
#investmentModal .account-balance-row span{color:#138a45;font-weight:800}
#investmentModal .action-area{margin-top:16px}
#investmentModal .purchase-btn{width:100%;height:50px;border:0;border-radius:16px;font-family:inherit;font-size:15px;font-weight:800;color:#fff;background:linear-gradient(135deg,#34c26f,#16a34a);box-shadow:0 10px 22px rgba(34,165,89,.34);cursor:pointer}
#investmentModal .purchase-btn:disabled{background:#e6e8eb;color:#9aa3ab;box-shadow:none}


/* =========================================================
   HELP NAV BUTTON: no highlight when tapped
   ========================================================= */
#helpNavBtn,
#helpNavBtn:hover,
#helpNavBtn:active,
#helpNavBtn:focus,
#helpNavBtn:focus-visible {
  -webkit-tap-highlight-color: transparent;
  outline: none;
  background: transparent;
  box-shadow: none;
}
#helpNavBtn:active .nav-icon-wrapper,
#helpNavBtn:focus .nav-icon-wrapper,
#helpNavBtn.active .nav-icon-wrapper,
#helpNavBtn.is-active .nav-icon-wrapper {
  background: transparent;
  box-shadow: none;
  filter: none;
}




/* =====================================================================
   ABOUT + REGULATION PAGES — white / ash / green
   ===================================================================== */
.ix-page {
  --ix-green: #2E9E5B;
  --ix-green-deep: #217A45;
  --ix-green-soft: #E9F6EC;
  --ix-green-line: #CFE8D5;
  --ix-ink: #17231D;
  --ix-text: #4B5A52;
  --ix-muted: #8A958F;
  --ix-ash: #F1F3F5;
  --ix-line: #E4E8EC;

  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 60px;
  background:
    radial-gradient(120% 34% at 50% 0%, #E3F3E8 0%, rgba(227, 243, 232, 0) 70%),
    var(--ix-ash);
  color: var(--ix-ink);
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.ix-page *, .ix-page *::before, .ix-page *::after { box-sizing: border-box; }
/* resets kept at low specificity so the class rules below always win */
.ix-page :where(p, h2, h3, ul) { margin: 0; padding: 0; }
.ix-page :where(button) { font-family: inherit; margin: 0; }

/* ---------- header ---------- */
.ix-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ix-line);
}
.ix-back {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ix-ink);
  cursor: pointer;
}
.ix-back:active { background: var(--ix-ash); }
.ix-title { font-size: 15px; font-weight: 700; color: var(--ix-green); }

.ix-wrap { width: 100%; max-width: 430px; margin: 0 auto; padding: 12px 14px 0; }

/* ---------- banner (About only) ---------- */
.ix-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #DDEFE4;
  box-shadow: 0 6px 18px rgba(32, 90, 56, 0.12);
}
.ix-slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ix-slides::-webkit-scrollbar { display: none; }
.ix-slide {
  position: relative;
  flex: 0 0 100%;
  height: 150px;
  scroll-snap-align: center;
  background: linear-gradient(135deg, #E6F5EA 0%, #BFE3CB 100%);
  overflow: hidden;
}
.ix-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ix-slide-fb {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 0 20px;
  color: #1B5E3A;
}
.ix-slide-fb b { font-size: 21px; font-weight: 800; letter-spacing: -0.5px; }
.ix-slide-fb b i { font-style: normal; color: var(--ix-green); }
.ix-slide-fb span { font-size: 12px; font-weight: 500; opacity: 0.85; }
.ix-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.ix-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.15);
  transition: width 0.2s, background 0.2s;
}
.ix-dots i.is-on { width: 15px; border-radius: 4px; background: var(--ix-green); }

/* ---------- cards ---------- */
.ix-card {
  margin-top: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--ix-line);
  border-radius: 14px;
}
.ix-brand { text-align: center; padding: 16px 14px; }
.ix-wordmark { font-size: 22px; font-weight: 800; letter-spacing: -0.6px; }
.ix-wordmark i { font-style: normal; color: var(--ix-green); }
.ix-tagline { margin-top: 3px; font-size: 12px; color: var(--ix-muted); }

.ix-eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--ix-green);
}
.ix-h {
  margin-bottom: 8px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--ix-ink);
}
.ix-p { font-size: 12.5px; line-height: 1.65; color: var(--ix-text); }
.ix-p + .ix-p { margin-top: 8px; }

/* what we do */
.ix-do { display: flex; flex-direction: column; }
.ix-do-row {
  display: flex;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid #EEF0F1;
}
.ix-do-row:first-child { padding-top: 2px; }
.ix-do-row:last-child { padding-bottom: 0; border-bottom: 0; }
.ix-do-ic {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--ix-green-soft);
  color: var(--ix-green-deep);
  font-size: 13px;
}
.ix-do-row b { display: block; font-size: 12.5px; font-weight: 700; color: var(--ix-ink); }
.ix-do-row span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.55; color: var(--ix-text); }

/* limited days */
.ix-limited { background: linear-gradient(180deg, #F4FBF6, #EAF6EE); border-color: var(--ix-green-line); }
.ix-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 10px 0 9px; }
.ix-day {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--ix-line);
  color: #B3BBB6;
  font-size: 10.5px;
  font-weight: 700;
}
.ix-day.is-open {
  background: linear-gradient(145deg, #4CC07E, #2E9E5B);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 8px rgba(46, 158, 91, 0.28);
}
.ix-day.is-today { outline: 2px solid #1B5E3A; outline-offset: 1px; }
.ix-today-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ix-green-deep);
}
.ix-today-line.is-closed { color: #8A6D1F; }
.ix-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ix-green); flex: 0 0 7px; }
.ix-today-line.is-closed .ix-pulse { background: #D9A441; }

/* facts */
.ix-fact {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #EEF0F1;
  font-size: 12px;
}
.ix-fact:first-of-type { padding-top: 2px; }
.ix-fact:last-child { padding-bottom: 0; border-bottom: 0; }
.ix-fact span { color: var(--ix-muted); }
.ix-fact b { text-align: right; font-weight: 700; color: var(--ix-ink); }

.ix-page .ix-btn {
  display: block;
  margin: 12px auto 0;
  min-width: 150px;
  height: 38px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ix-green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ix-btn:active { transform: scale(0.97); }

.ix-foot { margin-top: 16px; text-align: center; font-size: 10.5px; color: var(--ix-muted); }

/* ---------- regulation ---------- */
.ix-intro { margin-top: 0; }
.ix-meta {
  display: inline-block;
  margin-top: 9px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ix-green-soft);
  color: var(--ix-green-deep);
  font-size: 10.5px;
  font-weight: 700;
}
.ix-acc {
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--ix-line);
  border-radius: 14px;
  overflow: hidden;
}
.ix-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.ix-num {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--ix-green-soft);
  color: var(--ix-green-deep);
  font-size: 11px;
  font-weight: 800;
}
.ix-acc-title { flex: 1; font-size: 13px; font-weight: 700; color: var(--ix-ink); }
.ix-chev { width: 14px; height: 14px; color: var(--ix-muted); transition: transform 0.25s; }
.ix-acc.is-open .ix-chev { transform: rotate(180deg); }
.ix-acc.is-open .ix-num { background: var(--ix-green); color: #fff; }
.ix-acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.ix-acc.is-open .ix-acc-body { grid-template-rows: 1fr; }
.ix-acc-inner { overflow: hidden; }
.ix-list { list-style: none; padding: 0 14px 12px 48px; }
.ix-list li {
  position: relative;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ix-text);
}
.ix-list li::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ix-green);
}
.ix-list li:first-child { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .ix-acc-body, .ix-chev { transition: none; }
}



/* =========================================================
   NTR LOADER — brand colours. Replace the old loader CSS.
   Uses your :root variables, with fallbacks so it also works alone.
   HTML stays the same (ntr-loader.html).
   ========================================================= */

.ntr-splash {
  --l-bg: var(--bg-primary, #050907);
  --l-bg2: var(--bg-secondary, #0B2115);
  --l-green: var(--primary-green, #16A34A);
  --l-lime: var(--lime-green, #B7F34A);
  --l-text: var(--text-primary, #F4F7F4);
  --l-muted: var(--text-secondary, #A8B8AD);

  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top, 0px) 24px env(safe-area-inset-bottom, 0px);
  background:
    radial-gradient(420px circle at 50% 42%, rgba(22,163,74,.20), transparent 70%),
    linear-gradient(180deg, var(--l-bg2) 0%, var(--l-bg) 75%);
  color-scheme: dark;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  opacity: 1;
  visibility: visible;
  transition: opacity .4s ease, visibility .4s ease;
}
.ntr-splash.px-hide,
.ntr-splash.ntr-hide { opacity: 0; visibility: hidden; pointer-events: none; }

/* page loader floats over the app */
.ntr-splash.ntr-page {
  background:
    radial-gradient(420px circle at 50% 42%, rgba(22,163,74,.16), transparent 70%),
    rgba(5, 9, 7, .84);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}

.ntr-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* ── WORDMARK ── */
.ntr-word {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--l-text);
}
.ntr-word span {
  opacity: .16;
  animation: ntr-letter 1.8s ease-in-out infinite;
}
.ntr-word span:nth-child(2) { animation-delay: .18s; }
.ntr-word span:nth-child(3) { animation-delay: .36s; }
@keyframes ntr-letter {
  0%, 100% { opacity: .16; transform: translateY(0);    text-shadow: 0 0 0 rgba(183,243,74,0); }
  30%      { opacity: 1;   transform: translateY(-3px); text-shadow: 0 0 18px rgba(183,243,74,.45); }
  60%      { opacity: .16; transform: translateY(0);    text-shadow: 0 0 0 rgba(183,243,74,0); }
}

/* lime full stop */
.ntr-dot {
  width: 9px; height: 9px;
  margin-left: 1px;
  border-radius: 50%;
  background: var(--l-lime);
  box-shadow: 0 0 12px rgba(183,243,74,.55);
  animation: ntr-dot 1.8s ease-out infinite;
  animation-delay: .54s;
}
@keyframes ntr-dot {
  0%   { transform: scale(.8); box-shadow: 0 0 0 0 rgba(183,243,74,.5); }
  40%  { transform: scale(1);  box-shadow: 0 0 0 10px rgba(183,243,74,0); }
  100% { transform: scale(.8); box-shadow: 0 0 0 0 rgba(183,243,74,0); }
}

/* ── STATUS ── */
.ntr-status {
  margin: 0;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2px;
  color: var(--l-muted);
  text-align: center;
}

/* hidden hooks for old scripts */
.ntr-compat { display: none; }

@media (prefers-reduced-motion: reduce) {
  .ntr-word span { animation: none; opacity: 1; }
  .ntr-dot { animation: none; }
  .ntr-splash { transition: none; }
}


:root {
  --dl-accent: #d71921;
  --dl-accent-dark: #a80f16;
  --dl-accent-soft: #fdeced;
}

#dlOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 12, 16, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
#dlOverlay.dl-open {
  opacity: 1;
  pointer-events: auto;
}

.dl-card {
  width: 100%;
  max-width: 340px;
  background: #ffffff;
  border-radius: 22px;
  padding: 26px 22px 20px;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.2s ease;
}
#dlOverlay.dl-open .dl-card {
  transform: translateY(0) scale(1);
}

.dl-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--dl-accent-soft);
  color: var(--dl-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.dl-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: #14171c;
}
.dl-sub {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: #6b7280;
}

.dl-bar {
  width: 100%;
  height: 9px;
  background: #eef0f2;
  border-radius: 999px;
  overflow: hidden;
}
.dl-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ee3b42, var(--dl-accent-dark));
  border-radius: 999px;
  transition: width 0.1s linear;
}
.dl-pct {
  margin: 8px 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dl-accent);
}

.dl-steps {
  margin: 0 0 14px;
  padding: 0 0 0 20px;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  color: #14171c;
}
.dl-steps li { margin-bottom: 8px; }

.dl-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.dl-btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.dl-btn-main {
  background: linear-gradient(135deg, #e8262e 0%, var(--dl-accent) 55%, var(--dl-accent-dark) 100%);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(215, 25, 33, 0.3);
}
.dl-btn-main:active { transform: scale(0.97); }
.dl-btn-ghost {
  background: #f1f3f5;
  color: #4b5563;
}



/* ===== PROSPERIX — bell + image drop (white & light green) ===== */
.pxd-overlay{
  position:fixed;inset:0;z-index:2147482000;
  display:flex;align-items:center;justify-content:center;
  background:rgba(244,251,247,.78);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  opacity:0;transition:opacity .35s ease;
  font-family:'Plus Jakarta Sans','Inter',-apple-system,sans-serif;
  touch-action:none;overscroll-behavior:contain;
}
.pxd-overlay.is-on{opacity:1}
.pxd-overlay.is-out{opacity:0;pointer-events:none}
body.pxd-lock{overflow:hidden}

/* ---------- BELL ---------- */
.pxd-bell-stage{
  display:flex;flex-direction:column;align-items:center;gap:18px;
  cursor:pointer;-webkit-tap-highlight-color:transparent;user-select:none;
  transition:transform .35s ease,opacity .3s ease;
}
.pxd-bell-stage.is-gone{transform:scale(.6);opacity:0;pointer-events:none}
.pxd-bell-wrap{position:relative;width:112px;height:112px;display:flex;align-items:center;justify-content:center}
.pxd-ring{position:absolute;inset:0;border-radius:50%;border:2px solid #7fdca6;opacity:0;animation:pxdRing 1.8s ease-out infinite}
.pxd-ring:nth-child(2){animation-delay:.6s}
.pxd-ring:nth-child(3){animation-delay:1.2s}
@keyframes pxdRing{0%{transform:scale(.55);opacity:.7}100%{transform:scale(1.5);opacity:0}}
.pxd-bell{
  position:relative;width:84px;height:84px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;color:#fff;font-size:36px;
  background:linear-gradient(145deg,#6fe3a1,#1f9d58);
  box-shadow:0 14px 30px rgba(47,191,113,.4),0 0 0 6px rgba(47,191,113,.14);
  animation:pxdBlink 1s ease-in-out infinite;
}
.pxd-bell i{display:block;transform-origin:50% 12%;animation:pxdShake 1.1s ease-in-out infinite}
.pxd-dot{position:absolute;top:2px;right:2px;width:16px;height:16px;border-radius:50%;background:#fff;border:3px solid #2fbf71}
@keyframes pxdBlink{0%,100%{opacity:1;filter:brightness(1)}50%{opacity:.55;filter:brightness(1.15)}}
@keyframes pxdShake{
  0%,100%{transform:rotate(0)}10%{transform:rotate(16deg)}20%{transform:rotate(-14deg)}
  30%{transform:rotate(11deg)}40%{transform:rotate(-9deg)}50%{transform:rotate(5deg)}60%{transform:rotate(0)}
}
.pxd-click{
  padding:9px 22px;border-radius:999px;font-size:14px;font-weight:700;letter-spacing:.2px;
  color:#1f9d58;background:#fff;border:1.5px solid #bfeccf;
  box-shadow:0 8px 20px rgba(47,191,113,.18);animation:pxdBob 1.4s ease-in-out infinite;
}
@keyframes pxdBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}

/* ---------- ROPES + CARD ---------- */
.pxd-rig{
  position:fixed;left:50%;top:0;width:0;height:0;display:none;
}
.pxd-rig.is-show{display:block}
.pxd-drop{position:absolute;left:0;top:0;width:0;height:0;transform:translateY(-110vh)}
.pxd-drop.go{animation:pxdFall 1.15s cubic-bezier(.22,.9,.3,1.08) forwards}
@keyframes pxdFall{0%{transform:translateY(-110vh)}70%{transform:translateY(14px)}100%{transform:translateY(0)}}
.pxd-swing{position:absolute;left:0;top:0;width:0;height:0;transform-origin:0 0}
.pxd-swing.go{animation:pxdSwing 3.2s ease-out 1s forwards}
@keyframes pxdSwing{
  0%{transform:rotate(0)}12%{transform:rotate(3.2deg)}28%{transform:rotate(-2.4deg)}
  44%{transform:rotate(1.6deg)}60%{transform:rotate(-.9deg)}78%{transform:rotate(.4deg)}100%{transform:rotate(0)}
}
.pxd-rope{
  position:absolute;top:0;width:4px;margin-left:-2px;border-radius:2px;
  background:repeating-linear-gradient(135deg,#d9c9a3 0 3px,#b9a679 3px 6px);
  box-shadow:0 0 0 .5px rgba(0,0,0,.08);transition:opacity .6s ease;
}
.pxd-rig.is-slack .pxd-rope{opacity:.0}
.pxd-card{
  position:absolute;left:0;top:0;transform:translateX(-50%);
  width:min(84vw,340px);padding:12px 12px 14px;border-radius:22px;background:#fff;
  border:1.5px solid #d6f1e1;
  box-shadow:0 0 0 5px rgba(47,191,113,.12),0 26px 50px rgba(20,60,38,.26);
}
.pxd-knot{position:absolute;top:-6px;width:12px;height:12px;border-radius:50%;background:#c9b88c;border:2px solid #fff;box-shadow:0 2px 4px rgba(0,0,0,.2)}
.pxd-imgbox{
  position:relative;border-radius:16px;overflow:hidden;background:linear-gradient(145deg,#eefaf3,#d9f2e4);
  aspect-ratio:4/5;max-height:52vh;width:100%;display:flex;align-items:center;justify-content:center;
}
.pxd-imgbox img{width:100%;height:100%;object-fit:cover;display:block}
.pxd-ph{display:none;flex-direction:column;align-items:center;gap:8px;color:#2fbf71;font-size:12px;font-weight:600}
.pxd-ph i{font-size:42px}
.pxd-imgbox.no-img .pxd-ph{display:flex}
.pxd-imgbox.no-img img{display:none}
.pxd-x{
  position:absolute;top:-12px;right:-12px;width:34px;height:34px;border:0;border-radius:50%;cursor:pointer;
  color:#1f9d58;background:#fff;font-size:15px;display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 14px rgba(0,0,0,.18);border:1.5px solid #d6f1e1;
}
.pxd-go{
  width:100%;height:44px;margin-top:12px;border:0;border-radius:13px;cursor:pointer;
  font:700 14px 'Plus Jakarta Sans','Inter',sans-serif;color:#fff;
  background:linear-gradient(145deg,#4fd88c,#1f9d58);box-shadow:0 10px 20px rgba(47,191,113,.3);
}
.pxd-go:active{transform:scale(.98)}
.pxd-card.is-closing{animation:pxdBye .45s ease-in forwards}
@keyframes pxdBye{to{transform:translateX(-50%) translateY(-120vh)}}

/* ---------- CONFETTI ---------- */
.pxd-confetti{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:2147482500}

@media (prefers-reduced-motion:reduce){
  .pxd-bell,.pxd-bell i,.pxd-ring,.pxd-click{animation:none}
  .pxd-swing.go{animation:none}
}




/* =====================================================================
   GIFT CODE PAGE — white / ash / green (premium ticket design)
   ===================================================================== */
.rc-page {
  --rc-green: #1f9d58;
  --rc-green-2: #34c26f;
  --rc-deep: #0f5f37;
  --rc-mint: #e9f7ef;
  --rc-bg: #f2f4f3;
  --rc-line: #e3e7e5;
  --rc-mute: #76857d;
  --rc-ink: #14211a;
  --rc-red: #d64545;

  min-height: 100vh;
  color: var(--rc-ink);
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(120% 46% at 50% -6%, rgba(31,157,88,.20), rgba(31,157,88,0) 64%),
    var(--rc-bg);
  padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
}

/* ---------- top bar ---------- */
.rc-top {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 4px;
}
.rc-back {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--rc-line); background: #fff; color: var(--rc-ink);
  box-shadow: 0 4px 12px rgba(20,33,26,.06); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rc-back:active { transform: scale(.94); }
.rc-title { margin: 0; text-align: center; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }

.rc-wrap { max-width: 480px; margin: 0 auto; padding: 14px 16px 0; }

/* ---------- ticket ---------- */
.rc-ticket { filter: drop-shadow(0 18px 28px rgba(15,95,55,.16)); }

.rc-ticket-top {
  position: relative; overflow: hidden;
  padding: 22px 22px 30px; color: #fff;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(155deg, var(--rc-green-2) 0%, var(--rc-green) 42%, var(--rc-deep) 100%);
  -webkit-mask: radial-gradient(circle 13px at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 13px at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 13px at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 13px at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
}
/* concentric rings */
.rc-ticket-top::before {
  content: ""; position: absolute; right: -80px; top: -90px; width: 280px; height: 280px; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.2) 0 1px, transparent 1px 24px);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%);
          mask: radial-gradient(circle, #000 25%, transparent 70%);
}
/* soft sheen */
.rc-ticket-top::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.16), rgba(255,255,255,0) 42%);
}
.rc-ticket-top > * { position: relative; z-index: 1; }

.rc-ticket-row { display: flex; align-items: center; justify-content: space-between; }
.rc-gift {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 23px;
  border-radius: 18px; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.34);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.rc-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px;
  font-size: 11.5px; font-weight: 600; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.26);
}
.rc-chip i { font-size: 10px; color: #c8f5da; }
.rc-head { margin: 20px 0 6px; font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
.rc-lede { margin: 0; max-width: 290px; font-size: 13.5px; line-height: 1.55; opacity: .88; }

.rc-ticket-bottom {
  position: relative; padding: 24px 20px 20px; background: #fff;
  border-radius: 0 0 26px 26px;
  -webkit-mask: radial-gradient(circle 13px at 0 0, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 13px at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 13px at 0 0, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 13px at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
}
/* perforation line */
.rc-ticket-bottom::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 2px;
  background: repeating-linear-gradient(90deg, #cdd4d0 0 6px, transparent 6px 12px);
}

.rc-label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; color: var(--rc-ink); }

.rc-field {
  display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 8px 0 8px;
  background: #fff; border: 1.5px solid var(--rc-line); border-radius: 17px;
  box-shadow: inset 0 1px 2px rgba(20,33,26,.04);
  transition: border-color .15s, box-shadow .15s;
}
.rc-field:focus-within { border-color: var(--rc-green); box-shadow: 0 0 0 4px rgba(31,157,88,.13); }
.rc-field.is-error { border-color: var(--rc-red); box-shadow: 0 0 0 4px rgba(214,69,69,.10); animation: rc-shake .35s; }

.rc-field-ic {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; background: var(--rc-mint); color: var(--rc-green); font-size: 15px;
}
.rc-input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: 17px; font-weight: 700; letter-spacing: .12em; color: var(--rc-ink);
}
.rc-input::placeholder { color: #a9b3ad; font-weight: 500; letter-spacing: 0; font-size: 15px; }
.rc-paste {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px;
  border: 0; border-radius: 11px; cursor: pointer;
  background: var(--rc-bg); color: var(--rc-ink);
  font-family: inherit; font-size: 12.5px; font-weight: 700;
}
.rc-paste:active { background: var(--rc-line); }

.rc-msg { min-height: 20px; margin: 10px 4px 12px; font-size: 13px; line-height: 1.45; color: var(--rc-mute); }
.rc-msg.is-error { color: var(--rc-red); font-weight: 600; }

.rc-submit {
  width: 100%; height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 17px; cursor: pointer; color: #fff;
  font-family: inherit; font-size: 15.5px; font-weight: 700; letter-spacing: -.005em;
  background: linear-gradient(180deg, var(--rc-green-2), var(--rc-green));
  box-shadow: 0 10px 22px rgba(31,157,88,.32), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .1s;
}
.rc-submit:active:not(:disabled) { transform: scale(.985); }
.rc-submit:disabled { background: #d3d9d5; box-shadow: none; cursor: not-allowed; }

/* ---------- good to know ---------- */
.rc-tips { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rc-tip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 14px 12px; background: #fff; border: 1px solid var(--rc-line); border-radius: 18px;
}
.rc-tip i {
  width: 32px; height: 32px; margin-bottom: 8px; display: grid; place-items: center;
  border-radius: 10px; background: var(--rc-mint); color: var(--rc-green); font-size: 13px;
}
.rc-tip b { font-size: 13px; font-weight: 700; }
.rc-tip span { font-size: 11.5px; line-height: 1.4; color: var(--rc-mute); }

/* ---------- success popup ---------- */
.rc-pop-overlay {
  position: fixed; inset: 0; z-index: 2147483100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(14,28,20,.58);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: rc-fade .2s ease-out;
}
.rc-pop-overlay[hidden] { display: none; }
.rc-confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2147483200; pointer-events: none; }

.rc-pop {
  position: relative; width: 100%; max-width: 330px; padding: 0 24px 24px; text-align: center;
  background: #fff; border-radius: 30px; color: var(--rc-ink);
  box-shadow: 0 30px 70px rgba(0,0,0,.3);
  animation: rc-pop-in .45s cubic-bezier(.2,1.2,.4,1);
}
.rc-pop::before {
  content: ""; position: absolute; left: 50%; top: -70px; width: 280px; height: 220px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(52,194,111,.38), rgba(52,194,111,0));
}
.rc-pop > * { position: relative; }
.rc-pop-ic {
  position: relative; width: 96px; height: 96px; margin: -48px auto 16px;
  display: grid; place-items: center; font-size: 38px; color: #fff;
  border-radius: 50%; border: 6px solid #fff;
  background: linear-gradient(155deg, var(--rc-green-2), var(--rc-deep));
  box-shadow: 0 12px 28px rgba(31,157,88,.42);
}
.rc-pop-ring {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--rc-green-2); opacity: 0; animation: rc-ring 1.4s ease-out .3s 2;
}
.rc-pop-title { margin: 0 0 8px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.rc-pop-amt {
  display: inline-flex; align-items: baseline; gap: 3px; margin: 0 0 6px; padding: 8px 20px;
  border-radius: 16px; background: var(--rc-mint); border: 1px solid #cdeedb; color: var(--rc-deep);
}
.rc-pop-amt span { font-size: 21px; font-weight: 800; }
.rc-pop-amt b { font-size: 42px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rc-pop-sub { margin: 8px 0 20px; font-size: 13px; line-height: 1.5; color: var(--rc-mute); }
.rc-pop-done {
  width: 100%; height: 52px; border: 0; border-radius: 16px; cursor: pointer; color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 700;
  background: linear-gradient(180deg, var(--rc-green-2), var(--rc-green));
  box-shadow: 0 10px 22px rgba(31,157,88,.3), inset 0 1px 0 rgba(255,255,255,.35);
}

@keyframes rc-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes rc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rc-pop-in { from { transform: translateY(26px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rc-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }

.rc-back:focus-visible, .rc-submit:focus-visible, .rc-paste:focus-visible, .rc-pop-done:focus-visible {
  outline: 3px solid rgba(31,157,88,.5); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .rc-pop, .rc-pop-overlay, .rc-pop-ring, .rc-field.is-error { animation: none; }
}
@media (max-width: 360px) { .rc-tips { grid-template-columns: 1fr; } }




/* =========================================================
   INTERN PAGE
   ========================================================= */
#internPage {
  --bg-primary: #050907;
  --bg-secondary: #0B2115;
  --bg-tertiary: #103522;
  --primary-green: #16A34A;
  --emerald-green: #087A3D;
  --lime-green: #B7F34A;
  --gold: #F5C542;
  --gold-light: #FFE58A;
  --text-primary: #F4F7F4;
  --text-secondary: #A8B8AD;
  --text-dark: #07110A;
  --glass-bg: rgba(11, 33, 21, 0.58);
  --glass-border: rgba(183, 243, 74, 0.20);
  --glass-blur: blur(14px);

  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
  color-scheme: dark;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  z-index: 500;
  box-sizing: border-box;
}
#internPage *, #internPage *::before, #internPage *::after { box-sizing: border-box; }
#internPage p, #internPage h1, #internPage h3 { margin: 0; }
#internPage button { font-family: inherit; color: inherit; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }

/* background: built-in green grid (always there) + your image on top */
#internPage .in-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 40% at 85% 6%, rgba(22,163,74,.38), transparent 70%),
    radial-gradient(50% 35% at 8% 55%, rgba(183,243,74,.12), transparent 70%),
    radial-gradient(60% 40% at 90% 96%, rgba(245,197,66,.10), transparent 70%),
    linear-gradient(rgba(183,243,74,.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(183,243,74,.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, #0B2115 0%, #050907 100%);
}
#internPage .in-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
#internPage .in-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,9,7,.45) 0%, rgba(5,9,7,.82) 100%);
}

#internPage .in-scroll {
  position: absolute; inset: 0; z-index: 1;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
#internPage .in-wrap {
  width: 100%; max-width: 420px; margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 12px calc(120px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 10px;
}

/* header */
#internPage .in-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
#internPage .in-title { font-size: 20px; font-weight: 700; letter-spacing: .2px; }
#internPage .in-sub { margin-top: 4px; font-size: 11px; color: var(--text-secondary); line-height: 1.4; }
#internPage .in-badge {
  flex: none; padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

/* glass */
#internPage .in-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-radius: 16px;
  box-shadow: 0 0 16px rgba(22,163,74,.16), inset 0 1px 0 rgba(255,255,255,.05);
}

/* summary */
#internPage .in-summary { display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px 4px; }
#internPage .in-sum { min-width: 0; padding: 0 6px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
#internPage .in-sum + .in-sum { border-left: 1px solid var(--glass-border); }
#internPage .in-sum-lbl { font-size: 10px; color: var(--text-secondary); }
#internPage .in-sum-val { max-width: 100%; font-size: 14px; font-weight: 700; color: var(--lime-green); overflow-wrap: anywhere; }

/* day pills */
#internPage .in-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
#internPage .in-day {
  padding: 7px 0; text-align: center; border-radius: 10px;
  font-size: 11px; font-weight: 600; color: var(--text-secondary);
  background: rgba(16,53,34,.4); border: 1px solid var(--glass-border);
}
#internPage .in-day.is-now { color: var(--text-dark); background: linear-gradient(135deg, var(--lime-green), var(--primary-green)); border-color: transparent; }
#internPage .in-day.is-past { color: var(--lime-green); }

/* banner */
#internPage .in-banner {
  padding: 12px 14px; border-radius: 14px; text-align: center;
  font-size: 12px; line-height: 1.5; color: var(--gold-light);
  background: linear-gradient(135deg, rgba(11,33,21,.6), rgba(70,52,10,.4));
  border: 1px solid rgba(245,197,66,.3);
}
#internPage .in-banner[hidden] { display: none; }
#internPage .in-banner b { color: var(--gold); font-variant-numeric: tabular-nums; }

/* task cards */
#internPage .in-list { display: flex; flex-direction: column; gap: 10px; }
#internPage .in-loading { padding: 24px 0; text-align: center; font-size: 12px; color: var(--text-secondary); }
#internPage .in-task { padding: 14px; }
#internPage .in-task-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#internPage .in-task-title { font-size: 13px; font-weight: 600; min-width: 0; }
#internPage .in-reward {
  flex: none; padding: 3px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 700; color: var(--lime-green);
  background: rgba(22,163,74,.22); border: 1px solid var(--glass-border);
}
#internPage .in-q { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--text-primary); }
#internPage .in-opts { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
#internPage .in-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 11px;
  border: 1px solid transparent; font-size: 12.5px; cursor: pointer;
}
#internPage .in-opt input { position: absolute; opacity: 0; pointer-events: none; }
#internPage .in-dot {
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  border: 1.5px solid rgba(168,184,173,.6);
  display: flex; align-items: center; justify-content: center;
}
#internPage .in-opt input:checked + .in-dot { border-color: var(--lime-green); }
#internPage .in-opt input:checked + .in-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-green); }
#internPage .in-opt:has(input:checked) { background: rgba(22,163,74,.16); border-color: var(--glass-border); }
#internPage .in-opt.is-correct { background: rgba(22,163,74,.2); border-color: rgba(183,243,74,.5); }
#internPage .in-opt.is-wrong { background: rgba(225,29,72,.14); border-color: rgba(225,29,72,.45); }
#internPage .in-opt.is-locked { cursor: default; }

#internPage .in-submit {
  width: 100%; height: 42px; margin-top: 12px; border: 0; border-radius: 12px;
  font-size: 13px; font-weight: 700;
  color: rgba(168,184,173,.6); background: rgba(255,255,255,.06);
}
#internPage .in-submit:not(:disabled) {
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--lime-green), var(--primary-green));
}
#internPage .in-submit:active:not(:disabled) { transform: scale(.98); }
#internPage .in-done {
  margin-top: 12px; padding: 10px; border-radius: 12px; text-align: center;
  font-size: 12px; font-weight: 600; color: var(--lime-green);
  background: rgba(22,163,74,.14);
}
#internPage .in-note { margin-top: 8px; font-size: 11px; color: var(--text-secondary); }
#internPage .in-task.is-done { opacity: .82; }

/* toast */
#internPage .in-toast {
  position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: 88%; padding: 10px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 600; text-align: center;
  color: var(--text-dark); background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 8px 22px rgba(0,0,0,.5);
  transition: all .25s ease; z-index: 20;
}
#internPage .in-toast.show { opacity: 1; transform: translate(-50%, 0); }
#internPage .in-toast.is-error { color: #fff; background: #B42318; }



#pageLoader.ntr-splash,
#brandRedirectScreen.ntr-splash {
  background:
    radial-gradient(420px circle at 50% 42%, rgba(22,163,74,.20), transparent 70%),
    linear-gradient(180deg, #0B2115 0%, #050907 75%);
}
#pageLoader.ntr-splash .ntr-word { color: #F4F7F4; }
#pageLoader.ntr-splash .ntr-status { color: #A8B8AD; }