/* ================= GENERAL RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}



:root {
  --auth-bg-image: url('sil.jpg'); /* <-- put your image path here */
  --green: #1FCB8A;
  --green-deep: #14A870;
  --glow: rgba(31, 203, 138, 0.35);
  --field: rgba(255, 255, 255, 0.88);
  --field-ink: #1B2230;
  --white: #FFFFFF;
  --soft: rgba(255, 255, 255, 0.7);
  --glass: rgba(20, 22, 30, 0.72);
  --glass-line: rgba(255, 255, 255, 0.12);
}

.honda-auth-container {
  display: none;
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'DM Sans', 'Inter', sans-serif;
  color: var(--white);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 9999;
  align-items: flex-start;
  background:
    linear-gradient(180deg, rgba(10,12,18,0.55) 0%, rgba(10,12,18,0.82) 60%, rgba(8,9,14,0.95) 100%),
    var(--auth-bg-image) center / cover no-repeat,
    #12151d;
}
.honda-auth-container.active { display: flex !important; }
.honda-auth-container * { box-sizing: border-box; }

.auth-page-inner {
  width: 100%;
  max-width: 400px;
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(24px, 6vh, 56px) 22px 28px;
  display: flex;
  flex-direction: column;
}

/* TOP BAR */
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(20px, 5vh, 44px);
}
.auth-brand { display: flex; align-items: center; gap: 8px; }
.auth-v-logo { width: 30px; height: 27px; display: block; }
.auth-brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1;
}
.auth-brand-name i { color: var(--green); font-style: normal; }
.auth-region {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--soft);
}
.auth-region i { font-size: 12px; }
.auth-region .fa-chevron-down { font-size: 9px; }
.theme-toggle { display: none; } /* page is always dark */

/* HERO */
.auth-hero { margin-bottom: 14px; text-align: center; }
.auth-title {
  margin: 0 0 6px;
  font-family: 'Lato', 'DM Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--white);
}
.auth-sub { margin: 0 auto; max-width: 280px; font-size: 13px; line-height: 1.4; color: var(--soft); }

/* FORM */
.auth-form { width: 100%; }
.auth-label {
  display: block;
  margin: 14px 0 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--white);
}
.auth-input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  background: var(--field);
  border: 1px solid transparent;
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.auth-input:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31,203,138,0.25);
}
.auth-input input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px; /* prevents iOS zoom */
  color: var(--field-ink);
}
.auth-input input::placeholder { color: #8A93A6; }
.auth-code {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--field-ink);
  padding-right: 12px;
  border-right: 1px solid #C9D0DE;
  line-height: 24px;
}
.auth-show {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700;
  color: var(--green-deep);
  padding: 0;
}
.auth-hint { margin: 5px 0 0; font-size: 11.5px; color: var(--soft); line-height: 1.35; }

/* REMEMBER (toggle switch) + FORGOT */
.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 4px;
}
.remember-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--soft);
  cursor: pointer;
}
.remember-row input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.remember-row .switch {
  position: relative;
  width: 34px; height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
  transition: background .2s;
  flex-shrink: 0;
}
.remember-row .switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}
.remember-row input:checked + .switch { background: var(--green); }
.remember-row input:checked + .switch::after { transform: translateX(16px); }
.remember-row input:focus-visible + .switch { outline: 2px solid var(--green); outline-offset: 2px; }

/* LINKS */
.auth-link {
  background: none; border: none; padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
}
.auth-link.small { font-size: 12.5px; font-weight: 500; }
.auth-link.center { display: block; margin: 14px auto 0; font-weight: 500; font-size: 14px; }
.auth-link:hover { opacity: .8; }

/* BUTTON */
.auth-btn {
  width: 100%;
  height: 48px;
  margin-top: 20px;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--green);
  box-shadow: 0 8px 20px var(--glow);
  transition: transform .1s, filter .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; filter: brightness(0.94); }
.auth-btn:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.auth-btn:not(:disabled):hover { filter: brightness(1.07); }
.auth-btn:not(:disabled):active { transform: scale(0.98); }

.spin-icon { animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

/* DIVIDER + SOCIAL */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0 14px;
  font-size: 12px; color: var(--soft);
}
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--glass-line); }
.auth-social { display: flex; gap: 10px; }
.auth-social button {
  flex: 1;
  height: 44px;
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  background: var(--glass);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.auth-social button:hover { background: rgba(50,54,66,0.85); }
.auth-social button:active { transform: scale(0.97); }

.auth-switch {
  text-align: center;
  margin: auto 0 0;
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--soft);
}

/* SHORT SCREENS */
@media (max-height: 700px) {
  .auth-page-inner { padding-top: 20px; }
  .auth-topbar { margin-bottom: 14px; }
  .auth-label { margin-top: 10px; }
  .auth-input { height: 42px; }
  .auth-btn { height: 44px; margin-top: 14px; }
  .auth-divider { margin: 16px 0 10px; }
}



@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* =========================================================
   DASHBOARD — white / ash / green / navy
   ========================================================= */
.dashboard {
  --green: #2E9E5B;
  --green-deep: #217A45;
  --green-soft: #E8F5EC;
  --navy: #14284B;
  --muted: #6C7A8C;
  --ash: #F1F3F5;
  --black: #121418;
  --white: #FFFFFF;

  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: var(--ash);
  color: var(--navy);
  color-scheme: light;
  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; }


/* ── HERO ── */
.hm-hero {
  width: 100%;
  height: calc(210px + env(safe-area-inset-top, 0px));
  overflow: hidden;
  background: linear-gradient(135deg, #DDEFE4, #C9E3D3);
}
.hm-hero video,
.hm-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;              /* shown as is, nothing on top of it */
}

.hm-body {
  padding: 12px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* ── 4 QUICK ACTIONS ── */
.hm-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 16px 8px 14px;
  border-radius: 16px;
  background: var(--white);
}
.hm-action {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
}
.hm-action:active { transform: scale(.95); }
.hm-action-ic {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-deep);
}
.hm-action-ic svg { width: 20px; height: 20px; display: block; }
.hm-action-text {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  color: var(--navy);
}


/* ── NOTICE BAR ── */
.hm-notice {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--white);
  font-size: 12px;
  color: var(--muted);
}
.hm-notice i { font-size: 13px; color: var(--green); }
.hm-notice span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ── MISSION CENTER ── */
.hm-mission {
  display: flex;
  height: 150px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--black);
}
.hm-mission-img {
  flex: 0 0 38%;
  overflow: hidden;
  background: linear-gradient(135deg, #DDEFE4, #C9E3D3);
}
.hm-mission-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hm-mission-body {
  flex: 1;
  min-width: 0;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.hm-mission-body h2 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.1px;
  color: #fff;
}
.hm-mission-body p {
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .72);
}
.hm-mission-btn {
  height: 34px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
}
.hm-mission-btn:active { transform: scale(.97); }


/* ── BALANCES ── */
.hm-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.hm-stat {
  position: relative;
  min-width: 0;
  height: 86px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--white);
}
/* the photo sits on the right and fades out into the white card (nothing laid over it) */
.hm-stat-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  display: block;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
.hm-stat-text {
  position: relative;
  height: 100%;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.hm-stat-val {
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hm-stat-lbl {
  font-size: 11px;
  color: var(--navy);
  white-space: nowrap;
}


/* ── SMALL PHONES ── */
@media (max-width: 360px) {
  .hm-hero { height: calc(180px + env(safe-area-inset-top, 0px)); }
  .hm-action-ic { width: 38px; height: 38px; }
  .hm-mission { height: 144px; }
  .hm-mission-body h2 { font-size: 14px; }
  .hm-stat-val { font-size: 14.5px; }
}

/* ── 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;
}



@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* =========================================================
   DAILY SIGN-IN — white / ash / light green
   ========================================================= */
#giftCodePage {
  --g: #2FA866;
  --g-deep: #1F8A50;
  --g-soft: #EAF7EF;
  --g-soft2: #D3EFDF;
  --ash: #F2F4F5;
  --line: #E5E8EA;
  --ink: #1B2620;
  --mut: #76827B;
  --orange: #F59E0B;
  --red: #EF4444;

  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 110px;
  background: var(--ash);
  color: var(--ink);
  color-scheme: light;
  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;
  box-sizing: border-box;
}
#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; }

/* header */
#giftCodePage .ds-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
#giftCodePage .ds-back {
  width: 36px; height: 36px; flex: 0 0 36px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--ash); cursor: pointer;
}
#giftCodePage .ds-back:active { background: var(--line); }
#giftCodePage .ds-title { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }

#giftCodePage .ds-wrap { max-width: 430px; margin: 0 auto; padding: 14px 14px 0; }

/* slim banner */
#giftCodePage .ds-banner {
  position: relative; height: 100px; margin-bottom: 14px;
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(120deg, #F3FBF6 0%, #D3EFDF 62%, #BDE8CF 100%);
  border: 1px solid var(--g-soft2);
}
#giftCodePage .ds-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#giftCodePage .ds-banner::before {
  content: ""; position: absolute; right: -34px; top: -46px; width: 150px; height: 150px;
  border-radius: 50%; background: rgba(255,255,255,.55);
}
#giftCodePage .ds-banner::after {
  content: ""; position: absolute; right: 52px; bottom: -58px; width: 116px; height: 116px;
  border-radius: 50%; background: rgba(47,168,102,.14);
}
#giftCodePage .ds-banner-txt {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; padding: 0 18px;
  background: linear-gradient(90deg, rgba(255,255,255,.88), rgba(255,255,255,.5) 58%, rgba(255,255,255,0));
}
#giftCodePage .ds-banner-txt small { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--g-deep); }
#giftCodePage .ds-banner-txt b { margin-top: 4px; font-size: 17px; font-weight: 700; max-width: 70%; line-height: 1.25; }

/* claim card (silk sheen) */
#giftCodePage .ds-claim {
  position: relative; overflow: hidden; text-align: center;
  padding: 24px 18px 20px; margin-bottom: 12px;
  border-radius: 26px; border: 1px solid var(--line);
  background: linear-gradient(145deg, #ffffff 0%, #F4FBF7 52%, #E4F5EB 100%);
  box-shadow: 0 10px 28px rgba(27, 38, 32, .06);
}
#giftCodePage .ds-claim::before {
  content: ""; position: absolute; top: -60%; left: -30%; width: 70%; height: 220%;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.75), rgba(255,255,255,0));
  transform: rotate(18deg); pointer-events: none;
}
#giftCodePage .ds-claim > * { position: relative; }
#giftCodePage .ds-eyebrow { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 2.4px; color: var(--g-deep); }
#giftCodePage .ds-amount { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 8px 0 4px; }
#giftCodePage .ds-amount span { font-size: 24px; font-weight: 600; color: var(--g-deep); font-family: 'Inter', sans-serif; }
#giftCodePage .ds-amount b {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 68px; font-weight: 700; line-height: 1; letter-spacing: -1px; color: var(--ink);
}
#giftCodePage .ds-sub { font-size: 12.5px; color: var(--mut); line-height: 1.5; }

#giftCodePage .ds-claim-btn {
  width: 100%; height: 52px; margin-top: 18px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: 16px; cursor: pointer;
  font-size: 15px; font-weight: 700; letter-spacing: .1px; color: #fff;
  background: linear-gradient(135deg, #3FBF78, #1F9D58);
  box-shadow: 0 10px 22px rgba(47, 168, 102, .34);
  transition: transform .1s, opacity .15s;
}
#giftCodePage .ds-claim-btn:not(:disabled):active { transform: scale(.98); }
#giftCodePage .ds-claim-btn:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
#giftCodePage .ds-claim-btn.is-done {
  opacity: 1; background: var(--g-soft); color: var(--g-deep);
  box-shadow: inset 0 0 0 1.5px var(--g-soft2);
}

/* stats */
#giftCodePage .ds-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
#giftCodePage .ds-stat {
  padding: 12px 6px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
}
#giftCodePage .ds-stat b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
#giftCodePage .ds-stat span { font-size: 10.5px; font-weight: 600; color: var(--mut); }
#giftCodePage .c-orange { color: var(--orange); }
#giftCodePage .c-red { color: var(--red); }
#giftCodePage .c-green { color: var(--g-deep); }

/* calendar */
#giftCodePage .ds-cal {
  padding: 16px 14px 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 8px 24px rgba(27, 38, 32, .04);
}
#giftCodePage .ds-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
#giftCodePage .ds-cal-head b { font-size: 15px; font-weight: 700; letter-spacing: -.1px; }
#giftCodePage .ds-nav {
  width: 34px; height: 34px; padding: 0; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--ash); color: var(--ink); cursor: pointer;
}
#giftCodePage .ds-nav:disabled { opacity: .3; cursor: default; }
#giftCodePage .ds-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 8px; text-align: center; }
#giftCodePage .ds-dow span { font-size: 10px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: #9AA5A0; }
#giftCodePage .ds-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
#giftCodePage .ds-d {
  aspect-ratio: 1 / 1; display: grid; place-items: center;
  border-radius: 12px; font-size: 13px; font-weight: 600;
}
#giftCodePage .ds-d.is-blank   { visibility: hidden; }
#giftCodePage .ds-d.is-before  { color: #C5CCC8; }
#giftCodePage .ds-d.is-future  { color: #8D9993; background: #F6F7F7; }
#giftCodePage .ds-d.is-today   { color: var(--g-deep); background: var(--g-soft); box-shadow: inset 0 0 0 2px var(--g); font-weight: 800; }
#giftCodePage .ds-d.is-claimed {
  color: #fff; background: linear-gradient(145deg, #FBBF24, #F59E0B);
  box-shadow: 0 4px 10px rgba(245, 158, 11, .32);
}
#giftCodePage .ds-d.is-missed {
  color: #fff; background: linear-gradient(145deg, #F87171, #EF4444);
  box-shadow: 0 4px 10px rgba(239, 68, 68, .26);
}
#giftCodePage .ds-d.is-claimed.is-today { box-shadow: 0 4px 10px rgba(245, 158, 11, .32); }

#giftCodePage .ds-legend { display: flex; justify-content: center; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
#giftCodePage .ds-legend span { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--mut); }
#giftCodePage .ds-legend i { width: 10px; height: 10px; border-radius: 4px; display: block; }
#giftCodePage .lg-orange { background: var(--orange); }
#giftCodePage .lg-red { background: var(--red); }
#giftCodePage .lg-green { background: var(--g-soft); box-shadow: inset 0 0 0 2px var(--g); }

#giftCodePage .ds-note { margin-top: 14px; padding: 0 8px; text-align: center; font-size: 11px; line-height: 1.55; color: var(--mut); }



/* ── 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 — flat, fixed to bottom ── */
.bottom-nav {
  --nav-active: #2f5bdc;        /* change this to your purple if you want it to match the recharge page */
  --nav-active-bg: #eaf0ff;
  --nav-muted: #6b7185;

  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  margin: 0;
  z-index: 9999;
  background: #ffffff;
  border-top: 1px solid #ececf3;
  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(4, 1fr);
  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;
}

/* soft pill behind the icon */
.nav-icon-wrapper {
  width: 46px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background .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;
}

/* 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&display=swap');

/* =========================================================
   PROFILE — white / ash / green / navy
   ========================================================= */
#profilePage {
  --green: #2E9E5B;
  --green-deep: #217A45;
  --green-soft: #E8F5EC;
  --navy: #14284B;
  --muted: #6C7A8C;
  --ash: #F1F3F5;
  --line: #E4E8EC;
  --white: #FFFFFF;
  --nav-h: 58px;                 /* height of your bottom nav bar */

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: var(--ash);
  color: var(--navy);
  color-scheme: light;           /* stops Android "force dark" from inverting colours */
  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;
  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;
}

/* centred column on wide screens */
#profilePage .pf-top,
#profilePage .pf-sheet,
#profilePage .pf-body {
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

/* ── GREEN TOP BAND ── */
#profilePage .pf-top {
  height: calc(92px + env(safe-area-inset-top, 0px));
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
}
#profilePage .pf-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1px;
}
#profilePage .pf-logout i { font-size: 11px; }
#profilePage .pf-logout:active { background: rgba(255, 255, 255, .16); }

/* ── WHITE SHEET ── */
#profilePage .pf-sheet {
  position: relative;
  margin-top: -22px;
  padding: 46px 16px 16px;
  background: var(--white);
  border-radius: 22px 22px 0 0;
}
#profilePage .pf-avatar {
  position: absolute;
  top: -30px;
  left: 16px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--green-soft);
  box-shadow: 0 0 0 1px var(--line);
}
#profilePage .pf-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#profilePage .pf-idrow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
#profilePage .pf-id {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
#profilePage .pf-phone-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
#profilePage .pf-phone {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1px;
  color: var(--navy);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#profilePage .pf-phone::before { content: "+234 "; }

#profilePage .pf-copy-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--ash);
  color: var(--muted);
  font-size: 10.5px;
}
#profilePage .pf-copy-btn:active { transform: scale(.92); }

#profilePage .pf-tier {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

/* quick actions */
#profilePage .pf-quick {
  flex: 1;
  min-width: 0;
  max-width: 224px;
  margin-top: -2px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
#profilePage .pf-q {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
}
#profilePage .pf-q:active { transform: scale(.95); }
#profilePage .pf-q-ic {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 16px;
}
#profilePage .pf-q-lbl {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
  white-space: nowrap;
}

/* ── ASH BODY ── */
#profilePage .pf-body {
  padding: 10px 12px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* banner */
#profilePage .pf-banner {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #DDEFE4, #C9E3D3);
}
#profilePage .pf-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
/* name sits on a small dark glass chip, the photo itself is left untouched */
#profilePage .pf-banner-name {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(14, 28, 52, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#profilePage .pf-banner-name:empty::before { content: "Welcome back"; }

/* balances */
#profilePage .pf-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
#profilePage .pf-stat {
  min-width: 0;
  padding: 13px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 14px;
  background: var(--white);
}
#profilePage .pf-stat-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#profilePage .pf-stat-lbl {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}

/* services */
#profilePage .pf-services {
  padding: 15px 10px 14px;
  border-radius: 16px;
  background: var(--white);
}
#profilePage .pf-services-title {
  margin: 0 4px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--navy);
}
#profilePage .pf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 18px;
  column-gap: 4px;
}
#profilePage .pf-svc {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  border: 0;
  background: none;
  text-align: center;
}
#profilePage .pf-svc:active { transform: scale(.95); }
#profilePage .pf-svc-ic {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--ash);
  color: var(--green);
  font-size: 16px;
}
#profilePage .pf-svc-lbl {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--navy);
}

/* hidden compat elements */
#profilePage .pf-compat-hidden { display: none; }

@media (max-width: 350px) {
  #profilePage .pf-phone { font-size: 13px; }
  #profilePage .pf-q-ic { width: 36px; height: 36px; }
  #profilePage .pf-stat-val { font-size: 12.5px; }
}

/* =========================================================
   PROFILE — dark mode
   ========================================================= */
html[data-theme="dark"] #profilePage {
  --pf-band: #05070D;
  --pf-surface: #0B0F1A;
  --pf-ash: #141B2E;
  --pf-gap: #070A12;
  --pf-tile: #1C2438;
  --pf-ink: #EDF0F7;
  --pf-muted: #8E98B0;
  --pf-line: #232B42;
  --pf-danger: #FF6B6B;
}
html[data-theme="dark"] #profilePage .pf-band { background: linear-gradient(135deg, #1A2238 0%, #05070D 70%); }
html[data-theme="dark"] #profilePage .pf-avatar { border-color: #0B0F1A; background: #05070D; }
html[data-theme="dark"] #profilePage .pf-copy-btn { background: rgba(255, 255, 255, .10); }
html[data-theme="dark"] #profilePage .pf-q-ic { background: #EDF0F7; color: #0B0F1A; }


/* =========================================================
   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 — WHITE + ASH + LIGHT GREEN
   (single-page layout: amount grid, input, channels, button)
   ========================================================= */

#rechargePage {
  --g: #3dc383;                       /* light green */
  --g-top: #62d59e;                   /* gradient top */
  --g-text: #1b9a5c;                  /* green used for small text only */
  --g-soft: #eaf8f1;                  /* pale green tint */
  --g-line: #bfe8d3;

  --ink: #17231d;
  --muted: #7a847f;
  --faint: #9aa39e;
  --line: #e3e9e6;
  --ash: #f1f3f2;
  --ash-2: #e8ebe9;

  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 500;
  background: var(--ash);
  color: var(--ink);
  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; }


/* ── 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: #ffffff;
  box-shadow: 0 2px 10px rgba(23, 35, 29, .06);
}

#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: 0;
  border-radius: 8px;
  background: var(--ash);
  color: var(--faint);
  font-size: 13px;
  cursor: pointer;
}


/* ── CONTAINER ── */
#rechargePage .recharge-page-container {
  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: linear-gradient(180deg, #ffffff, #f4faf7);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 3px 9px rgba(23, 35, 29, .07);
  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);
  background: var(--g-soft);
  color: var(--g-text);
  box-shadow: 0 4px 12px rgba(61, 195, 131, .25);
}


/* ── 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: #ffffff;
  box-shadow: 0 3px 9px rgba(23, 35, 29, .05);
  transition: border-color .15s ease, box-shadow .15s ease;
}

#rechargePage .main-amount-input:focus-within {
  border-color: var(--g);
  box-shadow: 0 0 0 3px rgba(61, 195, 131, .16);
}

#rechargePage .main-amount-currency {
  font-size: 14px;
  font-weight: 500;
  color: var(--faint);
}

#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(--faint);
}

#rechargePage .channel-box.selected {
  border-color: var(--g);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(61, 195, 131, .2);
}

#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: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: .1px;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(61, 195, 131, .38), 0 2px 5px rgba(61, 195, 131, .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(61, 195, 131, .3);
}

#rechargePage .deposit-btn:disabled {
  background: var(--ash-2);
  color: var(--faint);
  box-shadow: none;
  cursor: not-allowed;
}


/* ── NOTICE + NOTES ── */
#rechargePage .rech-notice {
  margin-top: 20px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--g-soft);
  color: var(--g-text);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(61, 195, 131, .1);
}

#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(--faint);
}

#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(61, 195, 131, .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: #ffffff !important;
  border: 1px solid #e3e9e6 !important;
  box-shadow: 0 20px 40px rgba(23, 35, 29, .16) !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: #eaf8f1;
}

.rech-loader-spinner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(61, 195, 131, .18);
}

.rech-loader-spinner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #3dc383;
  border-right-color: rgba(61, 195, 131, .45);
  animation: rech-loader-spin .9s linear infinite;
}

.rech-loader-icon {
  font-size: 17px;
  color: #3dc383;
  animation: rech-loader-pulse 1.4s ease-in-out infinite;
}

.rech-loader-text {
  margin: 0;
  color: #17231d;
  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;
}


:root {
  --wc-white: #FFFFFF;
  --wc-ash: #F2F4F5;
  --wc-ash-dark: #E3E7E9;
  --wc-ink: #1B2620;
  --wc-grey: #76827B;
  --wc-green: #2FA866;
  --wc-green-deep: #1F8A50;
  --wc-green-soft: #EAF7EF;
}

.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(27, 38, 32, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999998;
  box-sizing: border-box;
  padding: 20px;
}

/* PERFECT SQUARE */
.wc-modal {
  position: relative;
  width: min(360px, calc(100vw - 40px), calc(100dvh - 40px));
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 14px 12px 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--wc-ash);
  box-shadow: 0 24px 60px rgba(27, 38, 32, 0.4);
  animation: wc-pop-in 0.28s cubic-bezier(.2, .9, .3, 1.1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wc-modal * { box-sizing: border-box; }

@keyframes wc-pop-in {
  from { transform: translateY(14px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0) scale(1);       opacity: 1; }
}

/* ── HEAD ── */
.wc-head {
  flex-shrink: 0;
  margin: 0 0 10px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.2px;
  color: var(--wc-ink);
}
.wc-bar {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, #3FBF78, var(--wc-green-deep));
}

/* ── SCROLLABLE WRITE-UP ── */
.wc-scroll {
  flex: 1;
  min-height: 0;
  margin-top: -4px;
  padding: 14px 12px 10px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--wc-white);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 10px rgba(27, 38, 32, 0.08);
  color: var(--wc-ink);
  font-size: 12.5px;
  line-height: 1.55;
  scrollbar-width: thin;
  scrollbar-color: var(--wc-green) transparent;
}
.wc-scroll::-webkit-scrollbar { width: 4px; }
.wc-scroll::-webkit-scrollbar-thumb { background: var(--wc-green); border-radius: 99px; }

.wc-slide { display: none; }
.wc-slide.is-on { display: block; }

.wc-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 6px;
}
.wc-line > i {
  flex: 0 0 18px;
  margin-top: 2px;
  text-align: center;
  font-size: 13px;
  color: var(--wc-green);
}
.wc-line span { flex: 1; }
.wc-p {
  margin: 4px 0 8px;
  color: #4A5750;
}
.wc-slide b { font-weight: 700; color: var(--wc-ink); }
.wc-slide b.wc-g { color: var(--wc-green-deep); }

.wc-hr {
  width: 56px;
  height: 3px;
  margin: 10px 0 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--wc-green), transparent);
}

.wc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--wc-ash);
  color: var(--wc-ink);
  text-decoration: none;
  font-weight: 600;
}
.wc-link:active { background: var(--wc-ash-dark); }
.wc-link > i:first-child { font-size: 18px; color: var(--wc-green); }
.wc-link span { flex: 1; }
.wc-arr { font-size: 11px; color: #A3ADA8; }

/* ── BUTTONS ── */
.wc-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
}
.wc-fbtn {
  width: 38%;
  height: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wc-close { color: var(--wc-grey); }
.wc-next  { color: var(--wc-green-deep); font-weight: 800; }
.wc-fbtn:active { opacity: .6; }

.wc-dots { display: flex; gap: 6px; }
.wc-dots i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #CBD2CE;
  transition: width .2s, background .2s;
}
.wc-dots i.is-on { width: 16px; background: var(--wc-green); }

@media (max-width: 380px) {
  .wc-head { font-size: 16px; }
  .wc-scroll { font-size: 12px; }
}



#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 — ASH BACKGROUND, WHITE CARDS, LIGHT GREEN
   ========================================================= */
.invite-page{
  --g:#3dc383;
  --g-top:#62d59e;
  --g-text:#1b9a5c;
  --g-soft:#eaf8f1;
  --ink:#17231d;
  --muted:#7a847f;
  --faint:#9aa39e;
  --line:#e3e9e6;
  --ash:#f1f3f2;
  --ash-2:#e8ebe9;

  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(--ink);
  padding-bottom:90px;
  background:var(--ash);
  font-family:'Plus Jakarta Sans','Inter',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
.invite-page *{ box-sizing:border-box; }

.referral-container{
  width:100%;
  max-width:430px;
  margin:0 auto;
  padding:calc(env(safe-area-inset-top, 0px) + 16px) 16px 0;
}


/* ── MAIN CARD ── */
.iv-main-card{
  background:#ffffff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 22px rgba(23,35,29,.09);
}

.iv-banner{
  width:100%;
  aspect-ratio:16 / 7;
  background:linear-gradient(135deg,var(--g-soft),#dfe9e4);
  overflow:hidden;
}
.iv-banner img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.iv-code-section{ padding:14px 16px 16px; }

.iv-code-label{
  display:block;
  font-size:11px;
  font-weight:400;
  color:var(--muted);
}
.iv-label-gap{ margin-top:14px; }

.iv-code-row,
.iv-link-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:6px;
}

.iv-code-val{
  font-size:22px;
  font-weight:600;
  letter-spacing:3px;
  color:var(--ink);
  word-break:break-all;
}

.iv-link-text{
  flex:1;
  min-width:0;
  padding:0;
  border:none;
  outline:none;
  background:transparent;
  font-family:inherit;
  font-size:11.5px;
  font-weight:500;
  color:var(--ink);
  text-overflow:ellipsis;
}

.iv-pill-btn{
  flex-shrink:0;
  height:30px;
  padding:0 16px;
  border:none;
  border-radius:999px;
  background:linear-gradient(145deg,var(--g-top),var(--g));
  color:#ffffff;
  font-family:inherit;
  font-size:11.5px;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 5px 12px rgba(61,195,131,.35);
  -webkit-tap-highlight-color:transparent;
}
.iv-pill-btn:active{ transform:scale(.96); }

/* social row */
.iv-social{
  display:flex;
  justify-content:space-between;
  gap:6px;
  margin-top:16px;
}
.iv-social-btn{
  width:36px;
  height:36px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:50%;
  background:#ffffff;
  color:var(--ink);
  font-size:15px;
  cursor:pointer;
  box-shadow:0 3px 8px rgba(23,35,29,.08);
  -webkit-tap-highlight-color:transparent;
}
.iv-social-btn:active{ transform:scale(.93); }


/* ── SECTION TITLES ── */
.iv-section-title{
  margin:22px 0 10px 2px;
  font-size:15px;
  font-weight:600;
  letter-spacing:-.2px;
  color:var(--ink);
}
.iv-section-title + .iv-section-sub{ margin-top:-6px; }
.iv-section-sub{
  margin:0 0 12px 2px;
  font-size:11.5px;
  font-weight:400;
  color:var(--muted);
}


/* ── TEAM OVERVIEW ── */
.iv-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  background:#ffffff;
  border-radius:16px;
  box-shadow:0 6px 16px rgba(23,35,29,.07);
  overflow:hidden;
}
.iv-stat{
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:14px 16px;
}
.iv-stat:nth-child(odd){ border-right:1px solid var(--line); }
.iv-stat:nth-child(-n+2){ border-bottom:1px solid var(--line); }

.iv-stat-label{
  font-size:11px;
  font-weight:400;
  color:var(--muted);
}
.iv-stat-val{
  font-size:17px;
  font-weight:600;
  letter-spacing:-.2px;
  color:var(--ink);
  word-break:break-word;
}
.iv-stat-val small{
  font-size:10.5px;
  font-weight:400;
  color:var(--muted);
}


/* ── LEVEL CARDS (three gradients) ── */
.iv-levels{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:8px;
}

.iv-level-card{
  position:relative;
  overflow:hidden;
  padding:44px 7px 8px;
  border-radius:16px;
  color:#ffffff;
}
.iv-level-1{
  background:linear-gradient(160deg,#74e3b3 0%,#2fb8a0 100%);
  box-shadow:0 8px 18px rgba(47,184,160,.32);
}
.iv-level-2{
  background:linear-gradient(160deg,#76c9ff 0%,#5a7dff 100%);
  box-shadow:0 8px 18px rgba(90,125,255,.30);
}
.iv-level-3{
  background:linear-gradient(160deg,#dc92ff 0%,#8f5cf6 100%);
  box-shadow:0 8px 18px rgba(143,92,246,.30);
}

/* corner ribbon */
.iv-ribbon{
  position:absolute;
  top:13px;
  left:-32px;
  width:112px;
  padding:3px 0;
  transform:rotate(-45deg);
  text-align:center;
  background:#fff6df;
  color:#6a5a25;
  font-size:9.5px;
  font-weight:600;
  letter-spacing:.2px;
  box-shadow:0 2px 6px rgba(0,0,0,.12);
}

/* frosted panel */
.iv-level-panel{
  padding:12px 4px 4px;
  border-radius:12px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.26);
}
.iv-lv-row{
  margin-bottom:11px;
  text-align:center;
}
.iv-lv-row span{
  display:block;
  margin-bottom:2px;
  font-size:9px;
  font-weight:400;
  color:rgba(255,255,255,.88);
}
.iv-lv-row b{
  display:block;
  font-size:12px;
  font-weight:600;
  color:#ffffff;
  word-break:break-word;
}
.iv-lv-rate{ font-size:15px !important; }


/* ── HOW IT WORKS ── */
.iv-how-toggle{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  margin-top:14px;
  padding:6px 2px;
  border:none;
  background:none;
  font-family:inherit;
  font-size:12px;
  font-weight:500;
  color:var(--g-text);
  cursor:pointer;
  text-align:left;
}
.iv-how-chev{ margin-left:auto; font-size:10px; transition:transform .2s; }
.iv-how-toggle.open .iv-how-chev{ transform:rotate(180deg); }

.iv-how-body{
  display:none;
  margin-top:6px;
  padding:12px 14px;
  background:#ffffff;
  border-radius:14px;
  box-shadow:0 4px 12px rgba(23,35,29,.06);
}
.iv-how-body.open{ display:block; }

.iv-step-row{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding-bottom:8px;
  margin-bottom:8px;
  border-bottom:1px dashed var(--line);
}
.iv-step-row-last{ border-bottom:none; padding-bottom:0; margin-bottom:0; }
.iv-step-num{
  flex-shrink:0;
  width:20px;
  height:20px;
  border-radius:50%;
  background:var(--g-soft);
  color:var(--g-text);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  font-weight:600;
}
.iv-step-row p{ margin:0; font-size:11.5px; line-height:1.5; color:var(--muted); }
.iv-step-row strong{ font-weight:600; color:var(--ink); }

.iv-footnote{
  margin:14px 2px 0;
  font-size:10.5px;
  line-height:1.5;
  color:var(--muted);
}


@media (max-width:380px){
  .iv-code-val{ font-size:19px; letter-spacing:2px; }
  .iv-social-btn{ width:33px; height:33px; font-size:14px; }
  .iv-lv-row b{ font-size:11px; }
  .iv-lv-rate{ font-size:14px !important; }
}



/* =========================================================
   MY TEAM — white / ash shiny background / light green
   ========================================================= */
#earningsPage {
  --tm-ink: #17231d;
  --tm-muted: #7b8a82;
  --tm-line: #e3e9e5;
  --tm-green: #2fbf71;
  --tm-green-deep: #1f9d58;
  --tm-green-soft: #e6f6ed;
  --tm-green-soft2: #f2fbf6;

  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--tm-ink);
  overflow-x: hidden;
  box-sizing: border-box;
  /* ash, slightly shiny */
  background:
    radial-gradient(120% 60% at 50% -10%, #ffffff 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #f1f4f2 0%, #e9eeeb 100%);
}
#earningsPage * { box-sizing: border-box; }

/* header */
.tm-header {
  position: sticky; top: 0; z-index: 20;
  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(--tm-line);
}
.tm-title { font-size: 13.5px; font-weight: 700; letter-spacing: .1px; }
.tm-back {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: transparent; color: var(--tm-ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tm-back:active { background: var(--tm-green-soft); }

/* tabs */
.tm-tabs {
  position: sticky; top: 50px; z-index: 15;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-bottom: 1px solid var(--tm-line);
  box-shadow: 0 6px 16px rgba(23,35,29,.05);
}
.tm-tab {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 13px 4px 11px; border: 0; background: transparent;
  font-family: inherit; color: var(--tm-muted); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tm-tab-amt  { font-size: 13.5px; font-weight: 700; }
.tm-tab-name { font-size: 11px; font-weight: 500; }
.tm-tab::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 2.5px;
  border-radius: 3px 3px 0 0; background: var(--tm-green);
  transform: scaleX(0); transition: transform .2s ease;
}
.tm-tab.is-active { color: var(--tm-ink); }
.tm-tab.is-active .tm-tab-amt { color: var(--tm-green-deep); }
.tm-tab.is-active::after { transform: scaleX(1); }

/* list */
.tm-wrap { max-width: 520px; margin: 0 auto; padding: 14px 14px 130px; }
.tm-list { display: flex; flex-direction: column; gap: 10px; }

/* member card */
.tm-card {
  position: relative; overflow: hidden;
  padding: 13px 14px 13px 13px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  border: 1px solid #fff;
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 6px 18px rgba(23,35,29,.07), 0 1px 3px rgba(23,35,29,.05);
}
/* soft green shine in the corner */
.tm-card::before {
  content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px;
  background: radial-gradient(circle, rgba(47,191,113,.14), rgba(47,191,113,0) 70%);
  pointer-events: none;
}
.tm-card-top { position: relative; display: flex; align-items: center; gap: 10px; }
.tm-avatar {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  background: linear-gradient(160deg, #eafaf1, #d3f1e1);
  box-shadow: 0 0 0 1px rgba(47,191,113,.18) inset;
  color: var(--tm-green-deep);
}
.tm-avatar svg { display: block; }
.tm-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tm-num  { font-size: 13px; font-weight: 700; letter-spacing: .2px; }
.tm-time { font-size: 10px; font-weight: 500; color: var(--tm-muted); }
.tm-badge {
  flex: 0 0 auto; font-size: 9.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: var(--tm-green-soft); color: var(--tm-green-deep);
}
.tm-badge.is-idle { background: #eef1ef; color: var(--tm-muted); }

.tm-figs {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-top: 12px; padding: 9px 4px;
  background: var(--tm-green-soft2); border: 1px solid #dff3e8; border-radius: 12px;
}
.tm-fig { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.tm-fig + .tm-fig { border-left: 1px solid #dcefe4; }
.tm-fig .lbl { font-size: 9.5px; font-weight: 500; color: var(--tm-muted); }
.tm-fig .val { font-size: 11.5px; font-weight: 700; color: var(--tm-ink); white-space: nowrap; }
.tm-fig.is-green .val { color: var(--tm-green-deep); }

/* empty */
.tm-empty { display: flex; flex-direction: column; align-items: center; padding: 64px 20px 80px; text-align: center; }
.tm-empty svg { margin-bottom: 14px; }
.tm-empty .t { font-size: 13px; font-weight: 600; color: #98a59e; }
.tm-empty .s { margin-top: 4px; font-size: 11px; color: #aeb9b3; }

/* loading skeleton */
.tm-skel {
  height: 112px; border-radius: 16px;
  background: linear-gradient(90deg, #f4f7f5 0%, #ffffff 50%, #f4f7f5 100%);
  background-size: 200% 100%; animation: tmShine 1.2s linear infinite;
  box-shadow: 0 4px 14px rgba(23,35,29,.05);
}
@keyframes tmShine { to { background-position: -200% 0; } }

.tm-retry {
  margin-top: 12px; padding: 8px 18px; border: 0; border-radius: 999px;
  background: var(--tm-green); color: #fff; font-family: inherit; font-size: 11.5px; font-weight: 600;
  box-shadow: 0 6px 14px rgba(47,191,113,.28); cursor: pointer;
}




/* ============ WITHDRAWAL — WHITE / ASH / GREEN ============ */
.withdraw-page{
  --g:#2FA866;
  --g-deep:#1F8A50;
  --g-soft:#EAF7EF;
  --g-line:#CFEBDA;
  --ink:#111713;
  --muted:#6B7570;
  --line:#DFE4E1;
  --ash:#F1F3F2;
  --red:#D93A3A;

  position:fixed;
  inset:0;
  width:100%;
  height:100vh;
  height:100dvh;
  overflow-y:auto;
  overflow-x:hidden;
  background:#fff;
  color:var(--ink);
  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; }


/* ── HEADER ── */
.wd-topbar{
  position:sticky;
  top:0;
  z-index:5;
  display:flex;
  align-items:center;
  gap:14px;
  padding:calc(14px + env(safe-area-inset-top,0px)) 16px 14px;
  background:var(--ash);
}
.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:18px; font-weight:700; }
.wd-info-btn{
  width:34px; height:34px; padding:0;
  display:grid; place-items:center;
  border:0; border-radius:50%;
  background:var(--g-deep); color:#fff; cursor:pointer;
}


/* ── CONTAINER ── */
.wd-container{
  width:100%;
  max-width:480px;
  margin:0 auto;
  padding:0 16px calc(140px + env(safe-area-inset-bottom,0px));
}


/* ── BANNER ── */
.wd-banner{
  position:relative;
  height:96px;
  margin:0 -16px 0;
  border-radius:0 0 16px 16px;
  overflow:hidden;
  background:
    radial-gradient(circle at 100% -20%, rgba(255,255,255,.25) 0 30%, transparent 31%),
    radial-gradient(circle at 0% 130%, rgba(255,255,255,.18) 0 30%, transparent 31%),
    linear-gradient(135deg,#46C47E,#1F8A50);
}
.wd-banner img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.wd-banner-bal{
  position:absolute; top:12px; right:16px; z-index:2;
  text-align:right; color:#fff;
  text-shadow:0 1px 6px rgba(0,0,0,.35);
}
.wd-banner-bal small{ display:block; font-size:12px; font-weight:600; opacity:.95; }
.wd-banner-bal b{ display:block; margin-top:2px; font-size:24px; font-weight:800; letter-spacing:-.3px; }


/* ── OPEN / CLOSED BAR ── */
.wd-hours{
  display:flex;
  align-items:center;
  gap:8px;
  margin:12px 0 0;
  padding:9px 12px;
  border-radius:10px;
  background:var(--g-soft);
  border:1px solid var(--g-line);
  font-size:12.5px;
  font-weight:600;
  color:var(--g-deep);
}
.wd-hours-dot{
  width:8px; height:8px; flex:none; border-radius:50%;
  background:var(--g);
  box-shadow:0 0 0 3px rgba(47,168,102,.22);
}
.wd-hours[data-state="closed"]{
  background:#FBEFEF; border-color:#F2D3D3; color:var(--red);
}
.wd-hours[data-state="closed"] .wd-hours-dot{
  background:var(--red); box-shadow:0 0 0 3px rgba(217,58,58,.18);
}


/* ── SECTIONS ── */
.wd-section-title{ margin:22px 0 10px 2px; font-size:15.5px; font-weight:700; }
.wd-section-row{ display:flex; align-items:flex-end; justify-content:space-between; }
.wd-tax{ margin-bottom:10px; font-size:13px; font-weight:700; color:var(--muted); }


/* ── ACCOUNT ── */
.wd-account-card{
  display:flex; align-items:center; gap:12px;
  min-height:58px; padding:9px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  cursor:pointer;
}
.wd-account-icon{
  width:36px; height:36px; flex-shrink:0;
  display:grid; place-items:center;
  border-radius:10px;
  background:var(--g-soft); color:var(--g-deep);
  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:14.5px; font-weight:600; }
.wd-account-name{ font-size:12px; color:var(--muted); }
.wd-account-name:empty{ display:none; }
.wd-account-note{ font-size:12px; color:var(--muted); }
.wd-account-chevron{ flex-shrink:0; color:var(--muted); }


/* ── AMOUNT ── */
.wd-amount-box{
  display:flex; align-items:center; gap:12px;
  height:58px; padding:0 8px 0 18px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  transition:border-color .2s, box-shadow .2s;
}
.wd-amount-box:focus-within{ border-color:var(--g); box-shadow:0 0 0 3px rgba(47,168,102,.15); }
.wd-currency{ font-size:20px; font-weight:700; color:var(--ink); }
.wd-input{
  flex:1; width:100%; min-width:0;
  border:0; outline:0; background:transparent;
  font-family:inherit; font-size:18px; font-weight:600; color:var(--ink);
}
.wd-input::placeholder{ font-size:14px; font-weight:400; color:#B3BAB6; }
.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:36px; padding:0 14px;
  border:0; border-radius:9px;
  background:var(--g-soft); color:var(--g-deep);
  font-size:12.5px; font-weight:700; cursor:pointer;
}

.wd-receive-row{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin:14px 2px 0;
}
.wd-receive{ margin:0; font-size:14px; font-weight:500; color:var(--muted); }
.wd-receive b{ font-size:16px; font-weight:800; color:var(--ink); }
.wd-min-text{
  margin:0; padding:3px 10px;
  border-radius:999px;
  background:var(--ash);
  font-size:12px; font-weight:600; color:var(--g-deep);
}


/* ── QUICK AMOUNTS ── */
.wd-chips{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:14px; }
.wd-chip{
  height:38px; padding:0 2px;
  border:1px solid var(--line); border-radius:999px;
  background:#fff; color:var(--muted);
  font-size:12px; font-weight:600; cursor:pointer;
}
.wd-chip.active{ border-color:var(--g); background:var(--g-soft); color:var(--g-deep); }


/* ── BUTTON ── */
.wd-confirm-btn{
  display:block; width:100%; height:52px; margin-top:24px;
  border:0; border-radius:12px;
  background:linear-gradient(135deg,#3BBF78,#2FA866);
  color:#fff; font-size:16.5px; font-weight:700; cursor:pointer;
  box-shadow:0 10px 20px rgba(47,168,102,.28);
}
.wd-confirm-btn:active{ background:var(--g-deep); transform:scale(.99); }

.wd-link-btn{
  display:block; margin:10px auto 0; padding:6px 10px;
  border:0; background:transparent;
  font-size:13px; font-weight:600; color:var(--g-deep); cursor:pointer;
}


/* ── INSTRUCTIONS (compact, small text) ── */
.wd-guide{
  margin-top:22px;
  padding:12px 14px;
  border-radius:12px;
  background:var(--ash);
}
.wd-guide-title{
  display:flex; align-items:center; gap:6px;
  margin:0 0 8px;
  font-size:12.5px; font-weight:700; color:var(--g-deep);
}
.wd-list{ list-style:none; margin:0; padding:0; }
.wd-list li{
  position:relative;
  padding:0 0 5px 14px;
  font-size:11.5px; line-height:1.45; 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(--g);
}
.wd-list b{ font-weight:600; color:var(--ink); }
.wd-notice-link{
  padding:0; border:0; background:transparent;
  font-size:11.5px; font-weight:700; color:var(--g-deep);
  text-decoration:underline; cursor:pointer;
}


@media (max-width:360px){
  .wd-chips{ grid-template-columns:repeat(2,1fr); }
}



/* =========================================================
   RECORDS — History / Recharge / Withdraw  (white · ash · green)
   ========================================================= */

#recordsPage{
  --green:#16a85a;
  --green-dark:#0b6e3b;
  --green-soft:rgba(22,168,90,.12);
  --white:#FFFFFF;
  --ash:#F2F4F3;
  --ash-2:#E7EAE9;
  --ink:#111614;
  --muted:#8A938F;
  --faint:#9AA3A0;
  --line:#E3EAE6;
  --red:#DC2626;

  position:fixed;
  inset:0;
  width:100%;
  height:100vh;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  z-index:9000;
  background:var(--ash);
  color:var(--ink);
  font-family:'Inter','Roboto',Arial,sans-serif;
  box-sizing:border-box;
}
#recordsPage *{ box-sizing:border-box; }

/* ── HEADER ── */
#recordsPage .tx-header{
  position:sticky;
  top:0;
  z-index:10;
  display:grid;
  grid-template-columns:34px 1fr 34px;
  align-items:center;
  height:52px;
  padding:0 14px;
  background:var(--white);
}
#recordsPage .tx-icon-btn{
  width:32px;
  height:32px;
  border-radius:50%;
  border:none;
  background:var(--ash);
  color:var(--green);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  outline:none;
}
#recordsPage .tx-icon-btn:active{ background:var(--ash-2); }
#recordsPage .tx-title-bar{
  margin:0;
  text-align:center;
  font-size:15px;
  font-weight:700;
  letter-spacing:-.2px;
  color:var(--ink);
}

/* ── PILL TABS ── */
#recordsPage .tx-tabs-wrap{
  position:sticky;
  top:52px;
  z-index:9;
  padding:2px 14px 12px;
  background:var(--white);
  border-bottom-left-radius:18px;
  border-bottom-right-radius:18px;
  box-shadow:0 6px 16px rgba(17,22,20,.04);
}
#recordsPage .tx-tabs{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:4px;
  max-width:420px;
  margin:0 auto;
  padding:3px;
  background:var(--ash);
  border-radius:999px;
}
#recordsPage .tx-tab{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  height:32px;
  padding:0 6px;
  border:none;
  border-radius:999px;
  background:transparent;
  color:var(--muted);
  font-family:inherit;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  outline:none;
  transition:background .2s ease, color .2s ease, box-shadow .2s ease;
}
#recordsPage .tx-tab svg{ width:13px; height:13px; flex:none; }
#recordsPage .tx-tab.is-active{
  background:var(--green);
  color:#fff;
  box-shadow:0 4px 10px rgba(22,168,90,.32);
}
#recordsPage .tx-tab:focus-visible{ outline:2px solid var(--green); outline-offset:2px; }

/* ── CONTENT ── */
#recordsPage .tx-content{
  width:100%;
  max-width:600px;
  margin:0 auto;
  padding:12px 12px calc(40px + env(safe-area-inset-bottom, 0px));
}

/* ── CARD (shared) ── */
#recordsPage .tx-card{
  margin-bottom:10px;
  padding:12px 15px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 1px 2px rgba(17,22,20,.03);
}

/* key / value line */
#recordsPage .tx-line{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:14px;
  padding:5px 0;
  font-size:12.5px;
  line-height:1.4;
}
#recordsPage .tx-line .k{ color:var(--ink); flex:none; }
#recordsPage .tx-line .v{
  color:var(--ink);
  text-align:right;
  min-width:0;
  font-variant-numeric:tabular-nums;
}
#recordsPage .tx-line .v.ok  { color:var(--green); }
#recordsPage .tx-line .v.wait{ color:var(--muted); }
#recordsPage .tx-line .v.fail{ color:var(--red); }
#recordsPage .tx-line .v.plus{ color:var(--green); font-weight:700; }
#recordsPage .tx-line .v.dim { color:var(--muted); }
#recordsPage .tx-line.is-date{
  margin-top:5px;
  padding-top:9px;
  border-top:1px solid var(--line);
}
#recordsPage .tx-line.is-date .k,
#recordsPage .tx-line.is-date .v{ color:var(--muted); }

/* centered green ID pill (withdraw card) */
#recordsPage .tx-id{
  display:table;
  max-width:100%;
  margin:0 auto 8px;
  padding:5px 16px;
  border-radius:8px;
  background:var(--green-soft);
  color:var(--green);
  font-size:12px;
  font-weight:600;
  letter-spacing:.1px;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#recordsPage .tx-copy.is-copied{ color:var(--green); font-weight:700; }

/* ── FOOTER: ——— No more data ——— ── */
#recordsPage .tx-footer{
  display:flex;
  align-items:center;
  gap:12px;
  margin:18px 18px 0;
  font-size:11.5px;
  font-weight:500;
  color:var(--faint);
  justify-content:center;
}
#recordsPage .tx-footer::before,
#recordsPage .tx-footer::after{
  content:'';
  flex:1;
  height:1px;
  background:var(--line);
}
#recordsPage .tx-note{
  text-align:center;
  font-size:12px;
  color:var(--faint);
  margin:18px 4px 0;
}

/* ── 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:14px; }
#recordsPage .tx-empty p{ margin:0; font-size:13px; font-weight:500; color:var(--faint); }
#recordsPage .tx-empty svg .ill-a{ fill:#E9ECEB; stroke:none; }
#recordsPage .tx-empty svg .ill-b{ fill:#D9DEDC; stroke:none; }
#recordsPage .tx-empty svg .ill-c{ fill:#FFFFFF; stroke:none; }
#recordsPage .tx-empty svg .ill-d{ fill:rgba(22,168,90,.20); stroke:none; }

/* ── SKELETON ── */
#recordsPage .tx-skel-card{
  margin-bottom:10px;
  padding:14px 15px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px;
  display:flex;
  flex-direction:column;
  gap:11px;
}
#recordsPage .tx-skel-line{ display:flex; justify-content:space-between; gap:20px; }
#recordsPage .tx-skel{
  height:10px;
  border-radius:6px;
  background:linear-gradient(90deg,#E9ECEB 25%,#F7F9F8 50%,#E9ECEB 75%);
  background-size:200% 100%;
  animation:txShimmer 1.3s linear infinite;
}
#recordsPage .tx-skel.a{ width:28%; }
#recordsPage .tx-skel.b{ width:34%; }
@keyframes txShimmer{ to{ background-position:-200% 0; } }

/* ── 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 — white / ash / green
   income cards, My Invest banner, small tabs, product cards
   ========================================================= */

.investment-page {
  --inv-card: #ececee;
  --inv-ink: #111111;
  --inv-muted: #6b6b72;
  --inv-green: #16a85a;
  --inv-green-dark: #0b6e3b;
  --inv-green-soft: #e3f5ea;
  --inv-track: #d9d9de;

  background: #ffffff;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--inv-ink);
}
.investment-page * { box-sizing: border-box; }

.inv-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 10px 10px 110px;
}

/* ── TOP INCOME CARDS ── */
.inv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.inv-stat-card {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 86px; padding: 12px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 120%, rgba(255,255,255,.18) 0 28%, transparent 29%),
    radial-gradient(circle at 90% -10%, rgba(255,255,255,.14) 0 30%, transparent 31%),
    linear-gradient(135deg, #0b6e3b, #16a85a);
}
.inv-stat-card.is-alt {
  background:
    radial-gradient(circle at 80% 120%, rgba(255,255,255,.18) 0 28%, transparent 29%),
    radial-gradient(circle at 10% -10%, rgba(255,255,255,.14) 0 30%, transparent 31%),
    linear-gradient(135deg, #12915040, #12915000),
    linear-gradient(135deg, #0f8a4a, #1fbf6b);
}
.inv-stat-label { position: relative; font-size: 13px; line-height: 16px; font-weight: 400; opacity: .92; }
.inv-stat-val   { position: relative; font-size: 22px; line-height: 26px; font-weight: 700; }

/* background image slot inside the 3 top cards (green gradient shows if the image is missing) */
.inv-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.inv-stat-card > :not(.inv-bg),
.inv-invest > :not(.inv-bg) { position: relative; z-index: 1; }
.inv-stat-label, .inv-stat-val, .inv-invest-label, .inv-invest-num { text-shadow: 0 1px 3px rgba(0,0,0,.35); }

/* ── MY INVEST BANNER ── */
.inv-invest {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 92px;
  padding: 14px 18px 14px 22px;
  margin-bottom: 12px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 105% -20%, rgba(255,255,255,.28) 0 30%, transparent 31%),
    radial-gradient(circle at -5% 130%, rgba(255,255,255,.2) 0 30%, transparent 31%),
    linear-gradient(120deg, #0b6e3b, #1fbf6b);
}
.inv-invest-text { position: relative; display: flex; flex-direction: column; gap: 4px; }
.inv-invest-label { font-size: 14px; opacity: .92; }
.inv-invest-num   { font-size: 30px; line-height: 34px; font-weight: 700; }

.inv-details-btn {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 6px 0 16px;
  border: 0; border-radius: 999px;
  background: #fff; color: var(--inv-green-dark);
  font: 700 13px/1 'Roboto', Arial, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.inv-details-btn i {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--inv-green); color: #fff;
}
.inv-details-btn svg { width: 14px; height: 14px; }

/* ── SMALL TABS ── */
.inv-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.inv-tab {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  height: 34px; padding: 0 8px;
  border: 0; border-radius: 999px;
  background: #f1f1f3;
  color: var(--inv-muted);
  font: 500 12.5px/1 'Roboto', Arial, sans-serif;
  cursor: pointer;
  transition: background .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.inv-tab svg { width: 14px; height: 14px; flex: none; }
.inv-tab em {
  font-style: normal; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: rgba(0,0,0,.08);
}
.inv-tab.is-on { background: var(--inv-green); color: #fff; }
.inv-tab.is-on em { background: rgba(255,255,255,.25); }
.inv-tab:focus-visible, .inv-details-btn:focus-visible { outline: 2px solid var(--inv-green); outline-offset: 2px; }

.inv-empty-text { margin: 24px 0; text-align: center; font-size: 12px; color: var(--inv-muted); }

/* ── PRODUCT CARD ── */
#investmentCardsList { display: flex; flex-direction: column; gap: 8px; }

.fs-product-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 12px;
  background: var(--inv-card);
  border-radius: 12px;
}
.fs-product-card.is-completed { opacity: .65; }

.fs-card-img {
  flex: none; width: 66px; height: 66px;
  border-radius: 8px; object-fit: cover; background: var(--inv-track);
}
.fs-card-body { flex: 1; min-width: 0; }

.fs-card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 8px;
}
.fs-card-name  { margin: 0; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--inv-ink); }
.fs-card-price { font-size: 14px; line-height: 18px; font-weight: 700; color: var(--inv-ink); white-space: nowrap; }

.fs-progress {
  height: 6px; margin: 0 0 6px;
  border-radius: 999px; background: var(--inv-track); overflow: hidden;
}
.fs-progress i {
  display: block; height: 100%;
  border-radius: 999px; background: var(--inv-green);
  transition: width .6s ease;
}

.fs-countdown {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 2px 0 6px; padding: 5px 8px;
  background: #fff; border-radius: 7px;
  font-size: 11px; line-height: 14px;
}
.fs-countdown .k { color: var(--inv-muted); }
.fs-countdown .t {
  color: var(--inv-green); font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: .3px;
}

.fs-line {
  display: flex; align-items: baseline; gap: 3px;
  margin-top: 4px; font-size: 12px; line-height: 17px; white-space: nowrap;
}
.fs-line .k { color: var(--inv-muted); }
.fs-line .v { color: var(--inv-ink); }
.fs-line .v.is-green { color: var(--inv-green); font-weight: 500; }

.fs-done-tag {
  display: inline-block; margin-top: 6px; padding: 2px 8px;
  border-radius: 999px; background: var(--inv-green-soft);
  color: var(--inv-green); font-size: 11px; font-weight: 700;
}

/* ── TOP CARDS: force all text + amounts to white ── */
#myInvestmentPage .inv-stat-card,
#myInvestmentPage .inv-stat-card *,
#myInvestmentPage .inv-stat-label,
#myInvestmentPage .inv-stat-val,
#myInvestmentPage .inv-stat-val span,
#myInvestmentPage .inv-invest-label,
#myInvestmentPage .inv-invest-num {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}


.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 — WHITE + GREEN, touch of navy ============ */
.ppx{
  --g:#3dc383;          /* light green (same as recharge) */
  --g-top:#62d59e;
  --g-d:#1b9a5c;        /* green for small text */
  --g-soft:#eaf8f1;
  --navy:#17231d;       /* main text */
  --navy-2:#7a847f;     /* muted text */
  --ash:#f1f3f2;
  --ash-2:#e8ebe9;
  --line:#e3e9e6;
  --white:#fff;
  font-family:'Plus Jakarta Sans','Inter',system-ui,sans-serif;
  color:var(--navy);
  -webkit-font-smoothing:antialiased;
}
.ppx, .ppx *{ box-sizing:border-box; }

.ppx-page{
  min-height:100vh;
  width:100%;
  margin:0;
  padding:0 0 100px;
  background:var(--ash);
}
.ppx-content{ max-width:600px; margin:0 auto; padding:14px 12px 0; }
.hm-products{ margin-top:14px; }

/* ── TITLE ── */
.ppx-section-title{
  display:flex; align-items:baseline; gap:7px;
  margin:0 0 10px 3px;
  font-size:16px; font-weight:600; letter-spacing:-.2px;
  color:var(--navy);
}
.ppx-section-title i{
  font-style:normal; font-size:10.5px; font-weight:500; color:var(--g-d);
}

/* ── TABS ── */
.ppx-tabs{
  display:flex; gap:6px; margin:0 0 12px;
  overflow-x:auto; scrollbar-width:none;
}
.ppx-tabs::-webkit-scrollbar{ display:none; }
.ppx-tab{
  flex:none;
  display:inline-flex; align-items:center; gap:6px;
  padding:7px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--white);
  font-family:inherit; font-size:11.5px; font-weight:500;
  color:var(--navy-2);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:background .2s, color .2s, border-color .2s;
}
.ppx-tab svg{ width:13px; height:13px; }
.ppx-tab em{
  font-style:normal; font-size:9.5px; font-weight:500;
  padding:1px 6px; border-radius:20px;
  background:var(--ash); color:var(--navy-2);
}
.ppx-tab.is-on{
  background:linear-gradient(145deg,var(--g-top),var(--g)); border-color:var(--g); color:var(--white);
  box-shadow:0 4px 10px rgba(61,195,131,.3);
}
.ppx-tab.is-on em{ background:rgba(255,255,255,.22); color:var(--white); }

.ppx-list{ display:flex; flex-direction:column; gap:10px; }
.ppx-list.is-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }

.ppx-loader, .ppx-empty{
  grid-column:1 / -1;
  text-align:center; padding:26px 16px;
  font-size:12px; font-weight:500; color:var(--navy-2);
}

/* shared button */
.ppx-btn{
  display:flex; align-items:center; justify-content:center; gap:6px;
  height:30px; padding:0 14px;
  border:0; border-radius:9px;
  font-family:inherit; font-size:11.5px; font-weight:600; letter-spacing:.1px;
  color:var(--white); background:linear-gradient(145deg,var(--g-top),var(--g));
  box-shadow:0 5px 12px rgba(61,195,131,.35);
  cursor:pointer; -webkit-tap-highlight-color:transparent;
}
.ppx-btn svg{ width:13px; height:13px; }
.ppx-btn:active{ transform:scale(.97); }
.ppx-btn:disabled{ background:var(--ash-2); color:var(--navy-2); box-shadow:none; cursor:not-allowed; }
.ppx-btn.is-out{ background:#e9ecef; color:#7b858d; box-shadow:none; cursor:pointer; }

/* ===== STOCK — plain red text (no box, no glow, adds no height) =====
   Only printed when a product has a stock limit.
   AI      -> under the Buy button
   VIP     -> top right of the card
   Limited -> on the image, top right                                  */
.ppx-stock{
  font-size:9.5px;
  font-weight:600;
  line-height:1.2;
  color:#dc2626;
  white-space:nowrap;
}
.ppx-stock.is-out{ font-weight:700; }

.ppx-ai-right .ppx-stock{            /* AI */
  display:block;
  text-align:center;
  margin-top:-3px;
}
.ppx-vip-top .ppx-stock{ flex:none; } /* VIP */
.ppx-lim-media .ppx-stock{           /* LIMITED: sits on the picture */
  position:absolute;
  top:7px;
  right:7px;
  padding:2px 7px;
  border-radius:20px;
  background:rgba(255,255,255,.92);  /* keeps red readable on any photo; delete this line for text only */
  font-size:8.5px;
}

/* =========================================================
   VIP — list card (image left, footer with price + button)
   ========================================================= */
.ppx-vip{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 3px 10px rgba(23,35,29,.07);
  overflow:hidden;
}
.ppx-vip-main{ display:flex; gap:12px; align-items:center; padding:11px 12px 10px; }
.ppx-vip-media{
  flex:none; width:88px; height:88px;
  display:flex; flex-direction:column; gap:4px;
  padding:6px 6px 4px;
  background:var(--ash); border-radius:11px;
}
.ppx-vip-img{ flex:1; min-height:0; border-radius:7px; overflow:hidden; background:var(--white); }
.ppx-vip-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.ppx-vip-note{ font-size:8px; font-weight:400; text-align:center; color:var(--navy-2); white-space:nowrap; }

.ppx-vip-info{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.ppx-vip-top{ display:flex; justify-content:space-between; align-items:center; gap:6px; }
.ppx-vip-name{ margin:0; font-size:13.5px; font-weight:600; color:var(--navy); }
.ppx-vip-line{ display:flex; align-items:baseline; gap:5px; flex-wrap:wrap; }
.ppx-vip-line b{ font-size:12px; font-weight:600; color:var(--navy); }
.ppx-vip-line.is-rate b{ color:var(--g-d); }
.ppx-vip-line span, .ppx-vip-time{ font-size:9.5px; font-weight:400; color:var(--navy-2); }

.ppx-vip-foot{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:8px 12px 10px; border-top:1px solid var(--line);
}
.ppx-vip-buy span{ display:block; font-size:9px; color:var(--navy-2); }
.ppx-vip-buy strong{ font-size:14px; font-weight:600; letter-spacing:-.2px; color:var(--navy); }
.ppx-vip-foot .ppx-btn{ min-width:100px; }

/* =========================================================
   LIMITED — compact 2‑column grid card
   ========================================================= */
.ppx-lim{
  display:flex; flex-direction:column;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 3px 10px rgba(23,35,29,.07);
}
.ppx-lim-media{ position:relative; height:84px; background:var(--ash); }
.ppx-lim-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.ppx-lim-badge{
  position:absolute; top:7px; left:7px;
  font-size:8.5px; font-weight:500; letter-spacing:.2px;
  padding:2px 7px; border-radius:20px;
  background:rgba(255,255,255,.92); color:var(--g-d);
}
.ppx-lim-badge.is-out{ color:var(--navy-2); }
.ppx-lim-body{ display:flex; flex-direction:column; gap:6px; padding:9px 10px 10px; }
.ppx-lim-name{ margin:0; font-size:12.5px; font-weight:600; color:var(--navy); }
.ppx-lim-row{ display:flex; justify-content:space-between; align-items:baseline; font-size:9.5px; color:var(--navy-2); }
.ppx-lim-row b{ font-size:10.5px; font-weight:500; color:var(--navy); }
.ppx-lim-price{ font-size:14px; font-weight:600; letter-spacing:-.2px; color:var(--navy); }
.ppx-lim-income{
  font-size:9.5px; line-height:1.4; color:var(--navy-2);
  background:var(--ash); border-radius:8px; padding:6px 8px;
}
.ppx-lim-income b{ font-weight:600; color:var(--g-d); }
.ppx-lim .ppx-btn{ width:100%; height:28px; }

/* =========================================================
   AI — detail rows left, framed image + button right
   ========================================================= */
.ppx-ai{
  display:flex; gap:12px; align-items:stretch;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  box-shadow:0 3px 10px rgba(23,35,29,.07);
}
.ppx-ai-left{ flex:1; min-width:0; display:flex; flex-direction:column; }
.ppx-ai-head{ display:flex; align-items:center; gap:6px; margin-bottom:8px; }
.ppx-ai-name{ margin:0; font-size:13.5px; font-weight:600; color:var(--g-d); }
.ppx-ai-chip{
  font-size:8.5px; font-weight:500; letter-spacing:.3px;
  padding:2px 6px; border-radius:6px;
  background:var(--g-soft); color:var(--g-d);
}
.ppx-ai-rows{ display:flex; flex-direction:column; }
.ppx-ai-row{
  display:flex; justify-content:space-between; gap:8px;
  padding:5px 0; border-bottom:1px dashed var(--line);
  font-size:10.5px; color:var(--navy-2);
}
.ppx-ai-row:last-child{ border-bottom:0; }
.ppx-ai-row b{ font-weight:500; color:var(--navy); }
.ppx-ai-row.is-total b{ color:var(--g-d); font-weight:600; }

.ppx-ai-right{ flex:none; width:96px; display:flex; flex-direction:column; gap:8px; }
.ppx-ai-img{
  width:96px; height:96px; border-radius:11px; overflow:hidden;
  border:1.5px solid var(--g); background:var(--ash);
}
.ppx-ai-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.ppx-ai-right .ppx-btn{ width:100%; height:28px; }

/* duration / "paid once" notes */
.ppx-note{ margin-top:7px; font-size:9px; line-height:1.45; color:var(--navy-2); }
.ppx-note b{ font-weight:500; color:var(--g-d); }
.ppx-ai-sub{ margin:-4px 0 6px; font-size:9.5px; color:var(--navy-2); }
.ppx-lim-income small{ display:block; margin-top:1px; font-size:8.5px; opacity:.85; }
.ppx-vip-info .ppx-vip-time{ line-height:1.35; }

@media (max-width:360px){
  .ppx-vip-media{ width:80px; height:80px; }
  .ppx-ai-right, .ppx-ai-img{ width:86px; }
  .ppx-ai-img{ height:86px; }
}



/* 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; }
}




/* =====================================================================
   SPIN & WIN  (replaces the old Team Bonus Tasks CSS completely)
   colours: white / ash / light green
   ===================================================================== */
:root {
  --sp-bg: #F2F3F4;
  --sp-card: #FFFFFF;
  --sp-line: #E3E6E8;
  --sp-ink: #1D2520;
  --sp-muted: #8A929A;
  --sp-ash: #DDE0E3;
  --sp-green: #4CAF50;
  --sp-green-deep: #3A9A45;
  --sp-green-light: #CFEBD5;
  --sp-green-soft: #E9F6EC;
}

#tasksPage {
  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
  left: 0;
  right: 0;
  box-sizing: border-box;
}

.sp-wrapper {
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--sp-ink);
  padding-bottom: 110px;
  background:
    radial-gradient(120% 46% at 50% 34%, #E1F2E6 0%, rgba(225, 242, 230, 0) 70%),
    var(--sp-bg);
}
.sp-wrapper * { box-sizing: border-box; }

/* ---------- HEADER ---------- */
.sp-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sp-line);
}
.sp-round-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--sp-line);
  border-radius: 50%;
  background: #fff;
  color: var(--sp-ink);
  cursor: pointer;
}
.sp-round-btn:active { background: var(--sp-green-soft); }
.sp-header-title {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--sp-green);
  pointer-events: none;
}

/* ---------- BODY ---------- */
.sp-body {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 16px 14px 0;
}
.sp-eyebrow {
  margin: 0 0 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--sp-green-deep);
}
.sp-hero-title {
  margin: 0;
  text-align: center;
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--sp-ink);
}
.sp-hero-title span { color: var(--sp-green); }
.sp-hero-sub {
  margin: 6px auto 0;
  max-width: 290px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--sp-muted);
}

/* ---------- STATS ---------- */
.sp-stats {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.sp-stat {
  padding: 9px 6px;
  text-align: center;
  background: var(--sp-card);
  border: 1px solid var(--sp-line);
  border-radius: 12px;
}
.sp-stat b {
  display: block;
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--sp-ink);
  font-variant-numeric: tabular-nums;
}
.sp-stat span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  color: var(--sp-muted);
}
.sp-stat-main {
  background: var(--sp-green-soft);
  border-color: #CFE8D5;
}
.sp-stat-main b { color: var(--sp-green-deep); }

/* ---------- WHEEL ---------- */
.sp-stage {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 22px 0 8px;
}
.sp-wheel-wrap {
  position: relative;
  width: min(300px, 80vw);
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 14px 18px rgba(32, 70, 44, 0.22));
}
.sp-disc,
.sp-rim {
  position: absolute;
  inset: 0;
}
.sp-disc { will-change: transform; transform: rotate(0deg); }
.sp-rim { pointer-events: none; }
.sp-disc svg,
.sp-rim svg { display: block; width: 100%; height: 100%; }
.sp-wheel-wrap.is-locked .sp-disc { filter: grayscale(0.55); }

/* disc text + icons */
.sp-seg-text {
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  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; }
.sp-wheel-wrap.is-spinning .sp-bulb { animation-duration: 0.4s; }
.sp-wheel-wrap.is-spinning .sp-bulb-b { animation-delay: 0.2s; }
@keyframes spBlink {
  0%, 100% { fill: #FFFFFF; }
  50% { fill: #BFE5C8; }
}

/* pointer */
.sp-pointer {
  position: absolute;
  left: 50%;
  top: -3.5%;
  z-index: 4;
  width: 11%;
  margin-left: -5.5%;
  transform-origin: 50% 36%;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.25));
}
.sp-pointer svg { display: block; width: 100%; height: auto; }
.sp-pointer.is-tick { animation: spTick 0.14s ease-out; }
@keyframes spTick {
  0%   { transform: rotate(0deg); }
  40%  { transform: rotate(-18deg); }
  100% { transform: rotate(0deg); }
}

/* centre button */
.sp-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 25%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  border: 4px solid #FFFFFF;
  border-radius: 50%;
  background: linear-gradient(145deg, #74D07A 0%, #3E9F48 100%);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(40, 110, 55, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.55);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s;
}
.sp-hub:active { transform: translate(-50%, -50%) scale(0.95); }
.sp-hub svg { width: 15px; height: 15px; }
.sp-hub.is-ready::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid rgba(76, 175, 80, 0.55);
  animation: spPulse 1.6s ease-out infinite;
  pointer-events: none;
}
@keyframes spPulse {
  0%   { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.25); opacity: 0; }
}
.sp-hub.is-locked {
  background: linear-gradient(145deg, #C5CACF 0%, #9AA1A8 100%);
  box-shadow: 0 5px 12px rgba(60, 70, 80, 0.3), inset 0 2px 3px rgba(255, 255, 255, 0.5);
  font-size: 9px;
}
.sp-hub.is-busy { opacity: 0.85; pointer-events: none; }

.sp-status {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--sp-muted);
}
.sp-status b { color: var(--sp-green-deep); }

/* confetti */
.sp-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 6;
}
.sp-confetti i {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 6px;
  height: 10px;
  border-radius: 2px;
  opacity: 0;
  animation: spConf 1.5s ease-out forwards;
}
@keyframes spConf {
  0%   { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}

/* ---------- SECTIONS ---------- */
.sp-section-title {
  margin: 24px 0 8px;
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--sp-ink);
}
.sp-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sp-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--sp-card);
  border: 1px solid var(--sp-line);
  border-radius: 12px;
}
.sp-step-ic {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sp-green-soft);
  color: var(--sp-green-deep);
}
.sp-step-ic svg { width: 15px; height: 15px; }
.sp-step-tx b { display: block; font-size: 12.5px; font-weight: 700; }
.sp-step-tx span { display: block; margin-top: 1px; font-size: 11px; color: var(--sp-muted); }

.sp-history {
  background: var(--sp-card);
  border: 1px solid var(--sp-line);
  border-radius: 12px;
  padding: 2px 12px;
}
.sp-hist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #EEF0F1;
}
.sp-hist-row:last-child { border-bottom: none; }
.sp-hist-l b { display: block; font-size: 12.5px; font-weight: 600; }
.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-green-deep); }
.sp-hist-empty { padding: 12px 0; text-align: center; font-size: 12px; color: var(--sp-muted); }

/* ---------- iOS STYLE ALERT (white, black text, OK button) ---------- */
.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.35);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.sp-ios-overlay.show { opacity: 1; }
.sp-ios-box {
  width: 276px;
  max-width: 100%;
  background: #FFFFFF;
  color: #000000;
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  transform: scale(1.08);
  transition: transform 0.16s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', '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: 17px; font-weight: 600; line-height: 1.25; color: #000; }
.sp-ios-msg { font-size: 13px; line-height: 1.4; color: #000; }
.sp-ios-list {
  margin: 10px 0 0;
  padding-left: 18px;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.45;
  color: #000;
}
.sp-ios-list li { margin-bottom: 5px; }
.sp-ios-actions { border-top: 0.5px solid rgba(60, 60, 67, 0.3); }
.sp-ios-btn {
  display: block;
  width: 100%;
  height: 44px;
  border: 0;
  background: #FFFFFF;
  color: #007AFF;
  font: 600 17px -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  cursor: pointer;
}
.sp-ios-btn:active { background: #E9E9EE; }

@media (max-width: 360px) {
  .sp-hero-title { font-size: 23px; }
  .sp-stat b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-bulb, .sp-hub.is-ready::before, .sp-confetti i { 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; }





:root{--vp-accent:#22a559;--vp-accent-deep:#138a45;--vp-soft:#eaf8ef;--vp-soft2:#d3f0de;--vp-bg:#f2f4f5;--vp-card:#fff;--vp-text:#14201a;--vp-muted:#6f7b75;--vp-line:#e5e8ea;--vp-red:#e5484d;--vp-warn:#a16207;--vp-warn-soft:#fef6d8}
[data-theme="dark"]{--vp-soft:#102a1b;--vp-soft2:#17402a;--vp-bg:#0b0f1a;--vp-card:#151b2b;--vp-text:#f3f4f6;--vp-muted:#9ca3af;--vp-line:#252d42;--vp-warn:#fbbf24;--vp-warn-soft:#3a2d0a}
.vip-page{min-height:100vh;background:var(--vp-bg);color:var(--vp-text);font-family:'Plus Jakarta Sans','Inter',system-ui,sans-serif;padding-bottom:120px;-webkit-font-smoothing:antialiased}
.vip-page *{box-sizing:border-box}

/* top bar */
.vp-top{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--vp-line)}
[data-theme="dark"] .vp-top{background:rgba(21,27,43,.92)}
.vp-top h1{margin:0;font-size:19px;font-weight:800;letter-spacing:-.2px}
.vp-shop-btn{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:999px;padding:8px 14px;font-size:12.5px;font-weight:700;color:var(--vp-accent-deep);background:var(--vp-soft);cursor:pointer}
.vp-shop-btn svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* slim banner */
.vp-banner{position:relative;height:112px;margin:14px 14px 0;border-radius:20px;overflow:hidden;background:linear-gradient(120deg,#f1fbf5 0%,#d3f0de 60%,#b9e8cc 100%);border:1px solid var(--vp-soft2)}
.vp-banner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.vp-banner::before{content:"";position:absolute;right:-30px;top:-40px;width:150px;height:150px;border-radius:50%;background:rgba(255,255,255,.55)}
.vp-banner::after{content:"";position:absolute;right:46px;bottom:-60px;width:120px;height:120px;border-radius:50%;background:rgba(34,165,89,.14)}
.vp-banner-txt{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:center;padding:0 18px;background:linear-gradient(90deg,rgba(255,255,255,.88) 0%,rgba(255,255,255,.55) 55%,rgba(255,255,255,0) 100%)}
.vp-banner-txt small{font-size:10px;font-weight:800;letter-spacing:2px;color:var(--vp-accent-deep)}
.vp-banner-txt b{font-size:18px;font-weight:800;line-height:1.2;margin:3px 0 2px;color:#14201a;max-width:70%}
.vp-banner-txt span{font-size:11.5px;color:#4b5a52;max-width:68%}
.vp-body{padding:14px 14px 0;max-width:560px;margin:0 auto}

/* current level card */
.vp-sum{background:var(--vp-card);border:1px solid var(--vp-line);border-radius:20px;padding:16px;margin-bottom:12px;box-shadow:0 6px 20px rgba(20,32,26,.04)}
.vp-sum small{display:block;font-size:12.5px;font-weight:600;color:var(--vp-muted)}
.vp-sum-lvl{display:flex;align-items:center;gap:10px;margin-top:6px}
.vp-sum-lvl b{font-size:26px;font-weight:800;letter-spacing:-.5px}
.vp-crown{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,#4ade80,#16a34a);box-shadow:0 6px 14px rgba(34,165,89,.3)}
.vp-crown svg{width:20px;height:20px;fill:#fff}
.vp-sum-line{display:flex;align-items:center;gap:8px;margin:10px 0 0;font-size:13px;color:var(--vp-text)}
.vp-sum-line i{flex:0 0 18px;height:18px;display:grid;place-items:center}
.vp-sum-line i svg{width:18px;height:18px;stroke:var(--vp-accent);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.vp-sum-line b{font-weight:700}
.vp-prog{margin-top:14px;padding:13px 14px;border-radius:16px;background:linear-gradient(135deg,var(--vp-soft),#f7fcf9);border:1px solid var(--vp-soft2)}
[data-theme="dark"] .vp-prog{background:var(--vp-soft)}
.vp-prog-top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px;font-size:13px;font-weight:700}
.vp-prog-top b{color:var(--vp-accent-deep)}
.vp-prog p{margin:9px 0 0;font-size:11px;color:var(--vp-muted);line-height:1.45}
.vp-prog .vp-prog-solo{margin:0;font-size:12px}

/* note */
.vp-note{display:flex;gap:9px;align-items:flex-start;font-size:11.5px;line-height:1.55;color:var(--vp-muted);background:var(--vp-soft);border-radius:14px;padding:10px 12px;margin-bottom:14px}
.vp-note svg{flex:0 0 16px;width:16px;height:16px;margin-top:1px;stroke:var(--vp-accent-deep);fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.vp-note b{color:var(--vp-text)}

/* level cards */
.vp-card{background:var(--vp-card);border:1px solid var(--vp-line);border-radius:20px;padding:14px;margin-bottom:12px;box-shadow:0 6px 20px rgba(20,32,26,.04)}
.vp-card.is-current{border-color:var(--vp-accent);box-shadow:0 8px 24px rgba(34,165,89,.16)}
.vp-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.vp-ttl{display:flex;align-items:center;gap:9px}
.vp-ttl h3{margin:0;font-size:17px;font-weight:800;letter-spacing:-.2px}
.vp-crown-sm{width:30px;height:30px;border-radius:10px;display:grid;place-items:center}
.vp-crown-sm svg{width:16px;height:16px;fill:#fff}
.tier-1 .vp-crown-sm{background:linear-gradient(145deg,#86efac,#4ade80)}
.tier-2 .vp-crown-sm{background:linear-gradient(145deg,#4ade80,#22c55e)}
.tier-3 .vp-crown-sm{background:linear-gradient(145deg,#34d399,#16a34a)}
.tier-4 .vp-crown-sm{background:linear-gradient(145deg,#22a559,#15803d)}
.tier-5 .vp-crown-sm{background:linear-gradient(145deg,#15803d,#14532d)}
.vp-badge{font-size:10.5px;font-weight:700;padding:4px 11px;border-radius:999px;background:var(--vp-bg);color:var(--vp-muted)}
.vp-badge.is-active{background:var(--vp-accent);color:#fff}
.vp-badge.is-ready{background:var(--vp-soft);color:var(--vp-accent-deep)}
.vp-badge.is-pending{background:var(--vp-warn-soft);color:var(--vp-warn)}
.vp-badge.is-done{background:var(--vp-soft2);color:var(--vp-accent-deep)}

/* requirement tiles */
.vp-tiles{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.vp-tiles .vp-tile:last-child:nth-child(odd){grid-column:1/-1}
.vp-tile{padding:10px 11px;border:1px solid var(--vp-line);border-radius:14px;background:#f8faf9;min-width:0}
[data-theme="dark"] .vp-tile{background:var(--vp-bg)}
.vp-tile.is-ok{background:#f3fbf6;border-color:var(--vp-soft2)}
.vp-tile-top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:6px}
.vp-tile-top span{font-size:11.5px;font-weight:700;color:var(--vp-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vp-mark{flex:0 0 20px;height:20px;border-radius:50%;display:grid;place-items:center;font-style:normal}
.vp-mark svg{width:11px;height:11px;stroke:#fff;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.is-ok .vp-mark{background:var(--vp-accent)}
.is-no .vp-mark{background:var(--vp-red)}
.vp-tile-val{display:flex;align-items:baseline;gap:4px;margin-bottom:7px;white-space:nowrap}
.vp-tile-val b{font-size:12.5px;font-weight:800;color:var(--vp-text)}
.vp-tile-val em{font-style:normal;font-size:10.5px;font-weight:600;color:var(--vp-muted)}
.is-ok .vp-tile-val b{color:var(--vp-accent-deep)}
.vp-bar{height:5px;border-radius:99px;background:#e6ebe8;overflow:hidden}
[data-theme="dark"] .vp-bar{background:#252d42}
.vp-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#86efac,#22a559);transition:width .5s}
.is-no .vp-bar i{background:linear-gradient(90deg,#c9d3cd,#9aa8a0)}

/* daily salary bar */
.vp-pay{display:flex;align-items:center;gap:12px;margin-top:10px;padding:10px 14px;border-radius:14px;color:#fff;background:linear-gradient(135deg,#34c26f,#16a34a);box-shadow:0 8px 18px rgba(34,165,89,.25)}
.vp-pay-ic{flex:0 0 34px;height:34px;border-radius:11px;display:grid;place-items:center;background:rgba(255,255,255,.2)}
.vp-pay-ic svg{width:20px;height:20px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.vp-pay div{flex:1}
.vp-pay small{display:block;font-size:11px;font-weight:600;opacity:.85}
.vp-pay b{display:block;font-size:20px;font-weight:800;letter-spacing:-.3px;line-height:1.15}
.vp-pay-day{font-size:12.5px;font-weight:600;opacity:.9}

/* button */
.vp-pill{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:42px;margin-top:10px;border:0;border-radius:13px;font-family:inherit;font-size:13px;font-weight:700;background:var(--vp-bg);color:#9aa3ab;cursor:not-allowed}
.vp-pill svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.vp-pill.is-ready{background:#fff;color:var(--vp-accent-deep);box-shadow:inset 0 0 0 1.5px var(--vp-accent);cursor:pointer}
.vp-pill.is-pending{background:var(--vp-warn-soft);color:var(--vp-warn);cursor:pointer}
.vp-pill.is-on{background:var(--vp-soft);color:var(--vp-accent-deep);cursor:default}
.vp-pill:disabled{opacity:.9}
.vp-empty{text-align:center;color:var(--vp-muted);padding:30px 0;font-size:13px}

/* Limited products: blurred on closed days */
.ppx-lim.is-closed{position:relative;overflow:hidden}
.ppx-lim.is-closed>*{filter:blur(4px);pointer-events:none;user-select:none}
.ppx-lim.is-closed::after{content:attr(data-open-msg);position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;text-align:center;padding:10px;font-size:12px;font-weight:700;color:#111;background:rgba(255,255,255,.45)}
.ppx-vip-lock{margin-top:4px;font-size:11px;font-weight:600;color:#b45309}

/* Confirm Purchase sheet (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}






/* =====================================================================
   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; }
}




/* =========================================================
   PROSPERIX LOADER — brand + slim progress bar
   classes: px-splash, px-page, px-brand, px-bar, px-fill, px-meta
   ========================================================= */

.px-splash {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(22,168,90,.10), transparent 55%),
    #F5F6F7;
  font-family: 'Inter', 'Roboto', Arial, sans-serif;
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, visibility .35s ease;
}
.px-splash.px-hide { opacity: 0; visibility: hidden; pointer-events: none; }

.px-splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── BRAND ── */
.px-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.px-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0b6e3b, #1fbf6b);
  box-shadow: 0 6px 16px rgba(22,168,90,.35);
  animation: px-float 2.4s ease-in-out infinite;
}
.px-mark svg { width: 17px; height: 17px; }
.px-name { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; color: #111; }
.px-name b { color: #16a85a; font-weight: 700; }
@keyframes px-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* ── SLIM PROGRESS BAR ── */
.px-bar {
  position: relative;
  width: 150px; height: 4px;
  border-radius: 999px;
  background: #dcdde1;
  overflow: hidden;
}
.px-fill {
  position: absolute; inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b6e3b, #16a85a, #5fe39a);
  transform-origin: left center;
  transform: scaleX(0);
  overflow: hidden;
}
.px-fill::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  animation: px-shine 1.1s ease-in-out infinite;
}
@keyframes px-shine {
  0%   { left: -40px; }
  100% { left: 150px; }
}

/* ── PERCENT + STATUS ── */
.px-meta {
  display: flex; align-items: baseline; justify-content: space-between;
  width: 150px; margin-top: 9px;
  font-size: 10.5px; line-height: 14px;
}
.px-status { color: #7A8296; font-weight: 500; }
.px-pct { color: #16a85a; font-weight: 700; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .px-mark, .px-fill::after { animation: none; }
}

