/* ================= GENERAL RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}



@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* ---- Tune the look here ---- */
.auth-shell {
  --red: #D12B2B;          /* the red we have been using */
  --red-dark: #B01F1F;
  --ink: #1E2125;
  --muted: #7B8189;
  --line: #E2E5E9;
  --field: #F8F9FB;
  --ash: #F1F2F4;

  display: none;
  flex-direction: column;
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--ash);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 9999;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
}
.auth-shell.active { display: flex; }
.auth-shell * { box-sizing: border-box; }
.auth-shell button { font-family: inherit; }

.auth-wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

/* ===================== HERO (flat red, no image) ===================== */
.auth-hero {
  flex-shrink: 0;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 52px;
  color: #FFFFFF;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(160deg, #DD3434 0%, #C32424 55%, #A81B1B 100%);
}

/* white top bar: back button, logo + name, tagline */
.auth-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 9px;
  border-radius: 14px 40px 14px 14px;
  background: #FFFFFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
  color: var(--ink);
}
.auth-topbar.no-back { padding-left: 14px; }

.auth-back {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #FFFFFF;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.auth-back svg { width: 16px; height: 16px; }

.auth-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.auth-logo-img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.auth-brand-name {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--red);
}

.auth-topbar-tag {
  margin-left: auto;
  padding-right: 10px;
  font-size: 9.5px;
  line-height: 1.7;
  letter-spacing: 1.6px;
  text-align: right;
  color: #6D737A;
}

.auth-hero-text { padding: 24px 6px 0; }
.auth-eyebrow-light {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}
.auth-hero-title {
  margin: 8px 0;
  font-size: 29px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.6px;
  color: #FFFFFF;
}
.auth-hero-sub {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .9);
}

/* ===================== WHITE CARD ===================== */
.auth-main {
  flex: 1;
  margin-top: -30px;
  padding: 0 14px 24px;
}

.auth-card {
  position: relative;
  padding: 22px 20px 20px;
  border-radius: 26px;
  background: #FFFFFF;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
}

.auth-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--red);
}
.auth-title {
  margin: 8px 0 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.4px;
  line-height: 1.15;
  color: var(--ink);
}
.auth-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* Sign In / Sign Up switch */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 14px 0 16px;
  padding: 4px;
  border-radius: 13px;
  background: #EEF0F2;
}
.auth-tab {
  height: 38px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.auth-tab.is-active {
  background: #FFFFFF;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  cursor: default;
}

/* ===================== FIELDS ===================== */
.auth-form { width: 100%; }
.auth-group + .auth-group { margin-top: 14px; }

.auth-label {
  display: block;
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 700;
  color: #23272B;
}

.auth-field { position: relative; }

.auth-input,
.phone-row {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  transition: border-color .15s, box-shadow .15s;
}
.auth-input {
  display: block;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  outline: none;
}
.auth-input:focus,
.phone-row:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(209, 43, 43, .12);
}
.auth-input::placeholder,
.phone-row input::placeholder { color: #8B9097; }

/* phone: +234 | number */
.phone-row {
  display: flex;
  align-items: center;
  padding-left: 14px;
}
.phone-code {
  flex-shrink: 0;
  margin-right: 12px;
  padding-right: 12px;
  border-right: 1px solid var(--line);
  font-size: 15px;
  line-height: 22px;
  color: #2B2F33;
}
.phone-row input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px 0 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}

/* eye button */
.auth-input.has-toggle { padding-right: 48px; }
.auth-show {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 50px;
  padding: 0;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  color: #9AA0A6;
  cursor: pointer;
}
.auth-show svg { width: 20px; height: 20px; }
.auth-show .eye-slash { display: none; }
.auth-show.is-on .eye-slash { display: block; }
.auth-show.is-on { color: var(--red); }

/* captcha picture sits inside the field, on the right */
.auth-input.has-captcha { padding-right: 126px; }
.auth-captcha {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 104px;
  height: 34px;
  border-radius: 8px;
  background: #F1F2F4;
  cursor: pointer;
}

/* remember me */
.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin: 14px 0 0 2px;
  font-size: 13px;
  color: #4A4F55;
  cursor: pointer;
}
.auth-remember input {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid #C9CDD2;
  border-radius: 5px;
  background: #FFFFFF;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.auth-remember input:checked {
  background: var(--red);
  border-color: var(--red);
}
.auth-remember input:checked::after {
  content: "";
  width: 4.5px;
  height: 9px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* ===================== BUTTON ===================== */
.auth-submit-btn {
  width: 100%;
  height: 52px;
  margin-top: 20px;
  padding: 0 18px 0 20px;
  border: none;
  border-radius: 14px;
  background: var(--red);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 18px rgba(209, 43, 43, .28);
  transition: background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.auth-submit-btn:hover { background: var(--red-dark); }
.auth-submit-btn:active { transform: scale(.985); }
.auth-submit-btn:disabled { opacity: .65; pointer-events: none; }

.auth-submit-btn .btn-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.auth-submit-btn .btn-content svg { width: 22px; height: 22px; }
.auth-submit-btn .btn-spinner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.auth-submit-btn.is-loading .btn-content { display: none; }
.auth-submit-btn.is-loading .btn-spinner { display: flex; }
.auth-submit-btn.is-loading { cursor: not-allowed; }

.spin-icon { animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin-icon { animation-duration: 2s; } }

/* ===================== LINES UNDER THE BUTTON ===================== */
.auth-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.auth-secure svg { width: 16px; height: 16px; flex-shrink: 0; }

.auth-switch {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
.auth-link {
  margin-left: 4px;
  padding: 0;
  background: none;
  border: none;
  font-size: inherit;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
}

/* ===================== FOOTER ===================== */
.auth-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 4px 0;
  padding-top: 14px;
  border-top: 1px solid #E1E4E8;
  font-size: 10.5px;
  letter-spacing: .3px;
  color: #8B9097;
}

/* ===================== SMALL SCREENS ===================== */
@media (max-width: 360px) {
  .auth-hero-title { font-size: 26px; }
  .auth-card { padding: 20px 16px 18px; }
  .auth-topbar-tag { display: none; }
}


@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600&display=swap');

/* Height of the bottom nav. Keep this the same as the nav (see bottom-nav.css). */
:root {
  --bottom-nav-h: 60px;
}

/* Everything is scoped to .dashboard so it can't affect other pages.
   Change --hm-green to tune the green accent. */
.dashboard {
  --hm-green: #1FB75A;
  --hm-green-dark: #159947;
  --hm-ink: #1B1F27;
  --hm-muted: #7A808C;
  --hm-ash: #F1F2F4;
  --hm-line: #E6E8EC;

  /* space left under the last cards so the nav never covers them */
  --hm-nav-gap: 20px;

  width: 100%;
  max-width: 480px;
  display: none;               /* your script switches this to flex */
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  margin: 0 auto;
  padding-top: 0;
  padding-right: env(safe-area-inset-right, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + var(--hm-nav-gap));
  background: #FFFFFF;
  color: var(--hm-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
.dashboard,
.dashboard *,
.dashboard *::before,
.dashboard *::after { box-sizing: border-box; }

.dashboard img { max-width: 100%; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }

/* ── LOGO BAR ── */
.hm-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 52px;
  background: #FFFFFF;
}
.hm-brand-star { color: #D12B2B; flex-shrink: 0; }
.hm-brand-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 3px;
  padding-left: 4px;
}
.hm-brand-electro { color: #D12B2B; }   /* red */
.hm-brand-mart    { color: #111111; }   /* black */

/* ── BANNER SLIDER ── */
.hm-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2.3 / 1;       /* scales with screen width */
  min-height: 140px;
  overflow: hidden;
  background: linear-gradient(135deg, #E4E7EC, #F2F3F5);
  touch-action: pan-y;
}
.hm-hero-track {
  display: flex;
  height: 100%;
  transition: transform .6s ease;
  will-change: transform;
}
.hm-hero-img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hm-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.hm-hero-dot {
  width: 6px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  transition: width .3s, background .3s;
}
.hm-hero-dot.is-active {
  width: 20px;
  background: #ff0000; /* Changed to red */
}

/* ── FOUR ROUND ACTION BUTTONS ── */
.hm-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 12px 12px 10px;
  padding: 12px 4px 10px;
  background: #FFFFFF;
  border: 1px solid var(--hm-line);
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(20, 24, 35, .06);
}

.hm-action {
  --c1: #EF5A50;
  --c2: #D12B2B;
  --glow: rgba(209, 43, 43, .38);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.hm-action:active { opacity: .75; }
.hm-action:focus-visible .hm-action-ico { outline: 2px solid var(--c2); outline-offset: 3px; }

.hm-action--green  { --c1: #EF5A50; --c2: #D12B2B; --glow: rgba(209, 43, 43, .38); }
.hm-action--orange { --c1: #FFB84D; --c2: #F58F1C; --glow: rgba(245, 143, 28, .36); }
.hm-action--blue   { --c1: #5E9BFF; --c2: #3A78F0; --glow: rgba(58, 120, 240, .34); }
.hm-action--purple { --c1: #9B72FF; --c2: #7648F2; --glow: rgba(118, 72, 242, .36); }

.hm-action-ico {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: clamp(38px, 11vw, 46px);
  height: clamp(38px, 11vw, 46px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  background: linear-gradient(160deg, var(--c1) 0%, var(--c2) 100%);
  box-shadow:
    0 5px 11px var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .12s;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.hm-action:active .hm-action-ico { transform: scale(.94); }

/* glass highlight on the top half of the circle */
.hm-action-ico::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 4%;
  height: 46%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0));
  pointer-events: none;
}

/* shine that sweeps across every 3 seconds */
.hm-action-ico::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .65) 50%,
    rgba(255, 255, 255, 0) 100%);
  transform: translateX(-160%) skewX(-18deg);
  animation: hm-shine 3s ease-in-out infinite;
  will-change: transform;
  z-index: 1;
  pointer-events: none;
}
.hm-action:nth-child(2) .hm-action-ico::after { animation-delay: .3s; }
.hm-action:nth-child(3) .hm-action-ico::after { animation-delay: .6s; }
.hm-action:nth-child(4) .hm-action-ico::after { animation-delay: .9s; }

@keyframes hm-shine {
  0%   { transform: translateX(-160%) skewX(-18deg); }
  35%  { transform: translateX(340%)  skewX(-18deg); }
  100% { transform: translateX(340%)  skewX(-18deg); }
}

.hm-action-ico svg,
.hm-naira {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18));
}
.hm-action-ico svg {
  width: 46%;
  height: 46%;
}

/* the ₦ sits in a small white disc */
.hm-naira {
  width: 50%;
  height: 50%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: var(--c2);
  font-size: clamp(13px, 3.9vw, 16px);
  font-weight: 700;
  line-height: 1;
  filter: none;
}

.hm-action-text {
  max-width: 100%;
  font-size: clamp(11px, 3vw, 12.5px);
  font-weight: 500;
  color: var(--hm-ink);
  text-align: center;
  white-space: nowrap;
}

/* ── TICKER ── */
.hm-ticker {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  background: #FFFFFF;
  overflow: hidden;
}
.hm-ticker-icon {
  flex-shrink: 0;
  color: var(--c2);
}
.hm-ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.hm-ticker-track {
  display: flex;
  width: max-content;
  animation: hm-ticker-scroll 18s linear infinite;
}
.hm-ticker-item {
  flex-shrink: 0;
  padding-right: 36px;
  font-size: clamp(11px, 3vw, 12.5px);
  font-weight: 500;
  color: var(--hm-ink);
  white-space: nowrap;
}
@keyframes hm-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ── STAR INVESTMENT UPDATE ── */
.hm-update {
  position: relative;
  margin: 2px 12px 12px;
  height: 105px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #DDE0E5, #EDEFF2);
  box-shadow: 0 3px 10px rgba(20, 24, 35, .08);
}
.hm-update-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
/* dark fade on the left so the white text stays readable on any picture */
.hm-update-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.42) 62%, rgba(0,0,0,.12) 100%);
}
.hm-update-body {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  max-width: 82%;
}
.hm-update-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}
.hm-update-text {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
}

@media (max-width: 380px) {
  .hm-update { height: 100px; }
  .hm-update-text { font-size: 10px; }
}

/* ── TWO IMAGE CARDS ── */
.hm-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px;             /* bottom space comes from .dashboard so the nav never covers these */
}
.hm-card {
  position: relative;
  aspect-ratio: 1.06 / 1;      /* a little taller, still scales with screen width */
  min-height: 132px;
  border-radius: 12px;
  overflow: hidden;
  background: #DCDFE4;
  box-shadow: 0 3px 10px rgba(20, 24, 35, .08);
}
.hm-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* dark fade at the top so the white text always reads */
.hm-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.62) 0%, rgba(0,0,0,0) 58%);
}
.hm-card-text {
  position: absolute;
  left: 11px;
  right: 11px;
  top: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}
.hm-card-value {
  font-size: clamp(14px, 4vw, 16px);
  font-weight: 600;
  color: #FFFFFF;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hm-card-label {
  margin-top: 1px;
  font-size: clamp(10px, 2.8vw, 11.5px);
  font-weight: 400;
  color: rgba(255,255,255,.86);
}

/* ── Desktop / mouse: hover feedback only, layout stays the same ── */
@media (hover: hover) {
  .hm-action:hover .hm-action-ico { transform: translateY(-2px); }
  .hm-task:hover { box-shadow: 0 5px 14px rgba(20, 24, 35, .14); }
  .hm-task-go:hover { filter: brightness(1.06); }
}

/* very small phones (iPhone SE, small Androids) */
@media (max-width: 340px) {
  .hm-actions { margin-left: 8px; margin-right: 8px; }
  .hm-task, .hm-cards { margin-left: 8px; margin-right: 8px; }
  .hm-cards { padding: 0; margin-top: 0; }
  .hm-task-go { padding: 6px 16px; }
}


/* ── HOW IT WORKS ── */
.hm-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 2px 12px 12px;
}
.hm-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 11px 6px 10px;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid var(--hm-line);
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(20, 24, 35, .06);
}
.hm-step-num {
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #E8483F, #B01F1F);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 3px 7px rgba(209, 43, 43, .35);
}
.hm-step-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--hm-ink);
}
.hm-step-sub {
  font-size: 9.5px;
  line-height: 1.3;
  color: var(--hm-muted);
}

@media (max-width: 340px) {
  .hm-steps { margin-left: 8px; margin-right: 8px; }
  .hm-step-sub { font-size: 9px; }
}
/* the button shine is kept on purpose, even if the phone has "reduce motion" on */


/* =========================================================
   GIFT CODE — WHITE / RED
   Change --gc-red to match your exact brand red.
   ========================================================= */

#giftCodePage{
  --gc-red:#e11d2e;
  --gc-red-dark:#b91424;
  --gc-red-soft:rgba(225,29,46,.14);
  --gc-ink:#16181a;
  --gc-muted:#8a8f94;
  --gc-line:#e4e6e8;
  --gc-bar:#f1f1f1;

  width:100%;
  max-width:430px;
  margin:0 auto;
  min-height:100vh;
  min-height:100dvh;
  background:#ffffff;
  box-sizing:border-box;
  font-family:'Inter',sans-serif;
  color:var(--gc-ink);
}
#giftCodePage *{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

/* ── HEADER ── */
#giftCodePage .gift-page-header{
  position:sticky;
  top:0;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  height:56px;
  padding:0 14px;
  background:var(--gc-bar);
}
#giftCodePage .gift-back-btn{
  position:absolute;
  left:10px;
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  border-radius:50%;
  background:transparent;
  color:var(--gc-ink);
  cursor:pointer;
}
#giftCodePage .gift-back-btn:active{ background:rgba(0,0,0,.06); }
#giftCodePage .gift-header-title{
  font-size:17px;
  font-weight:400;
  color:var(--gc-ink);
}

/* ── BANNER (edge to edge) ── */
#giftCodePage .gift-banner{
  width:100%;
  height:224px;
  min-height:224px;
  overflow:hidden;
  background:var(--gc-red);
}
#giftCodePage .gift-banner-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* ── CONTENT ── */
#giftCodePage .gift-content{
  width:100%;
  padding:14px 20px 40px;
}

/* ── TELEGRAM BUTTON ── */
#giftCodePage .gift-telegram-btn{
  display:flex;
  align-items:center;
  width:86%;
  max-width:320px;
  height:56px;
  margin:0 auto;
  padding:0 14px;
  border-radius:10px;
  background:#000000;
  color:#ffffff;
  text-decoration:none;
}
#giftCodePage .gift-telegram-btn:active{ opacity:.85; }
#giftCodePage .gift-telegram-icon{
  flex-shrink:0;
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#229ed9;
}
#giftCodePage .gift-telegram-icon svg{ margin-right:2px; }
#giftCodePage .gift-telegram-text{
  flex:1;
  text-align:center;
  font-size:15px;
  font-weight:400;
}
#giftCodePage .gift-telegram-chevron{
  flex-shrink:0;
  color:rgba(255,255,255,.45);
}

/* ── INPUT ── */
#giftCodePage .gift-input-wrapper{
  display:flex;
  align-items:center;
  height:56px;
  margin-top:46px;
  padding:0 16px;
  border:1px solid var(--gc-line);
  border-radius:14px;
  background:#ffffff;
  transition:border-color .15s ease, box-shadow .15s ease;
}
#giftCodePage .gift-input-wrapper:focus-within{
  border-color:var(--gc-red);
  box-shadow:0 0 0 3px var(--gc-red-soft);
}
#giftCodePage #giftCodeInput{
  flex:1;
  min-width:0;
  height:100%;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--gc-ink);
  font-family:inherit;
  font-size:15px;
  font-weight:400;
}
#giftCodePage #giftCodeInput::placeholder{
  color:var(--gc-muted);
  font-weight:400;
}

/* ── RECEIVE BUTTON ── */
#giftCodePage .gift-receive-btn-row{
  margin-top:48px;
  padding:0 8%;
}
#giftCodePage .gift-receive-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:52px;
  border:0;
  border-radius:999px;
  background:var(--gc-red);
  color:#ffffff;
  font-family:inherit;
  font-size:16px;
  font-weight:400;
  cursor:pointer;
  transition:transform .1s ease, background .15s ease;
}
#giftCodePage #giftReceiveBtn,
#giftCodePage #giftReceiveBtn:active,
#giftCodePage #giftReceiveBtn:disabled{
  font-weight:400 !important;
  -webkit-text-stroke:0 !important;
  text-shadow:none !important;
  letter-spacing:0;
}
#giftCodePage .gift-receive-btn:active{
  transform:scale(.98);
  background:var(--gc-red-dark);
}
#giftCodePage .gift-receive-btn:disabled{
  background:#e3e5e7;
  color:#9a9ea3;
  cursor:not-allowed;
}

@media (max-width:380px){
  #giftCodePage .gift-banner{ height:180px; }
  #giftCodePage .gift-content{ padding:12px 14px 30px; }
}


.record-id {
  font-weight: 700;           /* Makes it bold */
  font-family: 'Courier New', Courier, monospace; /* Monospace for numbers */
  color: #000000;                /* Slightly darker for readability */
  background: #f0f0f0;        /* Light grey background badge */
  padding: 2px 6px;           /* Space inside the badge */
  border-radius: 4px;         /* Rounded corners */
  display: inline-block;      /* Keeps the background tight to the text */
  margin-top: 4px;            /* Space from the time above */
  font-size: 11px;            /* Keeps it small but clear */
  letter-spacing: 0.5px;      /* Spacing between numbers */
  user-select: all;           /* Allows user to select full ID with one tap */
}


@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
  --nav-bg: #E11D2E;                      /* same red as the invite page: change both together */
  --nav-icon: #FFFFFF;
  --nav-label: rgba(255, 255, 255, .65);  /* faded white for tabs you are not on */
  --nav-label-active: #FFFFFF;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  background: var(--nav-bg);
  border: none;
  border-radius: 0;
  box-shadow: none;
  z-index: 9999;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-pill-container {
  height: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  align-items: center;
  justify-items: center;
  padding: 0 4px;
  box-sizing: border-box;
}

.nav-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 3px;
  -webkit-tap-highlight-color: transparent;
}

.nav-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

/* all icons stay white, like the reference */
.nav-item svg {
  width: 32px;
  height: 32px;
  color: var(--nav-icon);
}

.nav-item .nav-label-text {
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--nav-label);
  transition: color 0.2s;
}

/* current tab: bold, full white label */
.nav-item.active .nav-label-text {
  color: var(--nav-label-active);
  font-weight: 700;
}

.nav-item:active {
  opacity: 0.7;
}

/* 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%); }
}






  .rsl-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000001;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(20, 24, 35, .35);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  .rsl-overlay.show { display: flex; }

  .rsl-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    min-width: 150px;
    padding: 16px 20px 14px;
    background: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(20, 24, 35, .22);
    animation: rsl-pop .2s ease-out;
  }
  .rsl-net { animation: rsl-spin 1.6s linear infinite; }
  .rsl-text {
    font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .2px;
    color: #5B6270;
    text-align: center;
  }

  @keyframes rsl-spin { to { transform: rotate(360deg); } }
  @keyframes rsl-pop {
    from { transform: scale(.94); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
  }

  /* phones set to reduce animations see the loader without the spin */
  @media (prefers-reduced-motion: reduce) {
    .rsl-net  { animation: none; }
    .rsl-card { animation: none; }
  }




  @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600&family=Inter:wght@400;500;600&display=swap');

/* White page top, soft ash behind the lists, red accents.
   Change --pf-red / --pf-red-dark to match the exact red on the redtech website. */
#profilePage {
  --pf-red: #E11D2E;
  --pf-red-dark: #C8101F;
  --pf-ink: #1A1A1A;
  --pf-muted: #6B6B6B;
  --pf-ash: #F1F1F2;
  --pf-line: #E4E4E6;

  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--pf-ash);
  color: var(--pf-ink);
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  z-index: 500;
  box-sizing: border-box;
}
#profilePage * {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

#profilePage .pf-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--pf-ash);
}

/* ── HEADER: logo + text on one line ── */
#profilePage .pf-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 12px 12px;
  background: #FFFFFF;
}
#profilePage .pf-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
#profilePage .pf-header-text {
  display: flex;
  flex-direction: row;        /* was: column */
  align-items: center;
  gap: 4px;                   /* space between Electro and Metric */
  white-space: nowrap;        /* never wrap to a second line */
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .2px;
  color: var(--pf-ink);
}


/* ── ACCOUNT STRIP ── */
#profilePage .pf-strip {
  display: grid;
  grid-template-columns: 64px 1.35fr 1fr 1fr;
  height: 78px;
  background: var(--pf-red);
}

#profilePage .pf-avatar-cell {
  background: var(--pf-ash);
  display: flex;
  align-items: center;
  justify-content: center;
}
#profilePage .pf-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--pf-red);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}
#profilePage .pf-avatar svg {
  width: 26px;
  height: 26px;
  display: block;
}

#profilePage .pf-cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 4px;
  background: var(--pf-red);
  color: #FFFFFF;
  text-align: center;
}
#profilePage .pf-cell--dark { background: var(--pf-red-dark); }

#profilePage .pf-phone {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .2px;
  white-space: nowrap;
}
#profilePage .pf-phone::before { content: "+234 "; }

#profilePage .pf-lv-pill {
  padding: 1px 9px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--pf-red);
  font-size: 10px;
  font-weight: 600;
}

#profilePage .pf-wallet-value {
  max-width: 100%;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#profilePage .pf-wallet-label {
  font-size: 10px;
  font-weight: 400;
  opacity: .9;
  white-space: nowrap;
}

/* ── TWO MAIN ACTIONS ── */
#profilePage .pf-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #FFFFFF;
  padding: 14px 0 12px;
}
#profilePage .pf-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--pf-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}
#profilePage .pf-action svg {
  width: 28px;
  height: 28px;
  display: block;
}
#profilePage .pf-action:active { opacity: .6; }

/* ── IMAGE BANNER ── */
#profilePage .pf-banner {
  width: 100%;
  aspect-ratio: 3.4 / 1;
  background: linear-gradient(135deg, #2A2A2A 0%, #070707 100%);
  overflow: hidden;
}
#profilePage .pf-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── LISTS ── */
#profilePage .profile-scroll-container {
  width: 100%;
  padding: 10px 4px calc(96px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#profilePage .pf-card {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
}

#profilePage .pf-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 16px 0 16px;
  cursor: pointer;
}
#profilePage .pf-row:active { background: #F7F7F8; }

/* thin line between rows, starting after the icon */
#profilePage .pf-row + .pf-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 56px;
  right: 16px;
  height: 1px;
  background: var(--pf-line);
}

#profilePage .pf-ico {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  color: var(--pf-red);
  display: flex;
  align-items: center;
  justify-content: center;
}
#profilePage .pf-ico svg {
  width: 22px;
  height: 22px;
  display: block;
}

#profilePage .pf-label {
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  color: var(--pf-ink);
}

#profilePage .pf-chev {
  width: 15px;
  height: 15px;
  color: var(--pf-ink);
  flex-shrink: 0;
}

/* ── LOG OUT BUTTON ── */
#profilePage .pf-logout {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 8px;
  background: var(--pf-red);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
#profilePage .pf-logout:active { opacity: .85; }

/* ── HIDDEN COMPATIBILITY ELEMENTS ── */
#profilePage .pf-compat-hidden { display: none; }

@media (max-width: 360px) {
  #profilePage .pf-strip { grid-template-columns: 54px 1.4fr 1fr 1fr; }
  #profilePage .pf-phone { font-size: 11.5px; }
  #profilePage .pf-wallet-value { font-size: 12.5px; }
  #profilePage .pf-wallet-label { font-size: 9.5px; }
}




:root {
  --tsk-bg: #f5f6f8;
  --tsk-card: #ffffff;
  --tsk-border: #ebeef3;
  --tsk-text-dark: #12151a;
  --tsk-text-muted: #6b7280;
  --tsk-green: #00e676;
  --tsk-green-dark: #00a854;
  --tsk-green-soft: #e6fff2;
  --tsk-ash-soft: #eef0f3;
  --tsk-ash: #dfe3e8;
  --tsk-black: #12151a;
  --tsk-gradient: linear-gradient(135deg, #0b0f0d 0%, #0f2e1c 45%, #00c853 100%);
}

#tasksPage {
  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
  left: 0;
  right: 0;
  box-sizing: border-box;
}

.tsk-wrapper {
  background: var(--tsk-bg);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  /* Bumped well past the bottom nav bar height so the last card
     always clears it with visible breathing room, on any screen. */
  padding-bottom: 110px;
}

/* ── HEADER ── */
.tsk-header {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--tsk-border);
  box-sizing: border-box;
  position: relative;
}

.tsk-back-btn,
.tsk-support-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tsk-ash-soft);
  border: none;
  color: var(--tsk-text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.tsk-header-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tsk-text-dark);
  margin: 0;
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
}

/* ── BANNER ── */
.tsk-banner {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
}
.tsk-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tsk-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(6,20,12,0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px;
  box-sizing: border-box;
}
.tsk-banner-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--tsk-green);
  margin-bottom: 4px;
}
.tsk-banner-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.2;
}
.tsk-banner-sub {
  font-size: 11.5px;
  color: rgba(255,255,255,0.75);
  margin: 0;
  line-height: 1.35;
}

/* ── HERO STAT ── */
.tsk-hero-stat {
  background: var(--tsk-gradient);
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tsk-hero-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
}
.tsk-hero-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--tsk-green);
}

/* ── STAT ROW ── */
.tsk-stat-row {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  box-sizing: border-box;
}
.tsk-stat-box {
  flex: 1;
  background: var(--tsk-card);
  border: 1px solid var(--tsk-border);
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
  text-align: center;
}
.tsk-stat-label {
  font-size: 10px;
  color: var(--tsk-text-muted);
  font-weight: 600;
}
.tsk-stat-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--tsk-text-dark);
}

/* ── SECTION LABEL ── */
.tsk-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--tsk-text-muted);
  letter-spacing: 0.5px;
  padding: 4px 16px 10px;
}
.tsk-section-fraction {
  color: var(--tsk-green-dark);
  font-weight: 800;
}

/* ── TASK LIST ── */
.tsk-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
}

/* ── TASK CARD — base ── */
.tsk-card {
  position: relative;
  background: var(--tsk-card);
  border: 1px solid var(--tsk-border);
  border-left: 4px solid var(--tsk-ash);
  border-radius: 14px;
  padding: 14px;
  box-sizing: border-box;
  width: 100%;
}

/* Each card gets its own accent, cycling every 4 — all light,
   white/ash/green based, so text stays readable without needing
   any color overrides. No card is ever solid black. */
.tsk-card:nth-child(4n+1) { border-left-color: var(--tsk-green); }
.tsk-card:nth-child(4n+1) .tsk-card-index { background: var(--tsk-green-soft); color: var(--tsk-green-dark); }

.tsk-card:nth-child(4n+2) { border-left-color: var(--tsk-black); }
.tsk-card:nth-child(4n+2) .tsk-card-index { background: var(--tsk-ash-soft); color: var(--tsk-black); }

.tsk-card:nth-child(4n+3) { border-left-color: var(--tsk-green-dark); background: linear-gradient(90deg, var(--tsk-green-soft) 0%, #ffffff 45%); }
.tsk-card:nth-child(4n+3) .tsk-card-index { background: var(--tsk-green-dark); color: #ffffff; }

.tsk-card:nth-child(4n+4) { border-left-color: var(--tsk-ash); background: linear-gradient(90deg, var(--tsk-ash-soft) 0%, #ffffff 45%); }
.tsk-card:nth-child(4n+4) .tsk-card-index { background: var(--tsk-black); color: var(--tsk-green); }

.tsk-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.tsk-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tsk-card-index {
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 6px;
}
.tsk-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--tsk-text-dark);
}

.tsk-card-reward {
  font-size: 14px;
  font-weight: 800;
  color: var(--tsk-green-dark);
  white-space: nowrap;
}

.tsk-card-subtitle {
  font-size: 11px;
  color: var(--tsk-text-muted);
  margin-bottom: 10px;
}

.tsk-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--tsk-ash-soft);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}
.tsk-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--tsk-green-dark), var(--tsk-green));
  border-radius: 10px;
  transition: width 0.4s ease;
}

.tsk-card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tsk-recharged-text {
  font-size: 11px;
  color: var(--tsk-text-muted);
  font-weight: 600;
}

/* Status pill / button */
.tsk-status-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.tsk-status-btn.locked {
  background: var(--tsk-ash-soft);
  color: var(--tsk-text-muted);
  cursor: not-allowed;
}

.tsk-status-btn.ready {
  background: var(--tsk-gradient);
  color: #ffffff;
}
.tsk-status-btn.ready:active {
  transform: scale(0.96);
}

.tsk-status-btn.received {
  background: var(--tsk-green-soft);
  color: var(--tsk-green-dark);
  cursor: default;
}




@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* All colours are scoped to .bank-page so they never leak into other pages.
   Change --red to match the exact red on the redtech website. */
.bank-page,
.bank-page * {
  box-sizing: border-box;
}

.bank-page {
  --red: #E11D2E;
  --red-soft: rgba(225, 29, 46, .16);
  --ink: #1A1A1A;
  --field: #D3D3D4;                    /* ash fields */
  --placeholder: #8A8A8A;
  --page: #F1F1F2;

  background: var(--page);
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
}

/* ── HEADER: plain arrow on the left, centred title ── */
.bank-flat-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 6px 8px;
  background: #FFFFFF;
  border: none;
}

.bank-flat-back {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.bank-flat-back svg {
  width: 18px;
  height: 18px;
  display: block;
}

.bank-flat-header h2 {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  pointer-events: none;
}

/* ── WHITE CARD ── */
.bank-form-card {
  max-width: 460px;
  margin: 12px 10px 0;
  padding: 22px 14px 6px;
  background: #FFFFFF;
  border-radius: 14px;
}

@media (min-width: 480px) {
  .bank-form-card { margin-left: auto; margin-right: auto; }
}

.bank-field { margin-bottom: 18px; }

.bank-field label {
  display: block;
  margin: 0 0 8px 1px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
}

.bank-field select,
.bank-field input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background-color: var(--field);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 400;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s, box-shadow .15s;
}

.bank-field input::placeholder { color: var(--placeholder); }

/* "Please select" shows in placeholder grey until a bank is picked */
.bank-field select:invalid,
.bank-field select option[value=""] { color: var(--placeholder); }
.bank-field select option { color: var(--ink); }

.bank-field select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M0 0h12L6 8z' fill='%23A0A0A0'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.bank-field select:focus,
.bank-field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

/* saved / locked account: same ash fields, text stays dark */
.bank-field select:disabled,
.bank-field input:disabled {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  opacity: 1;
  cursor: not-allowed;
}

/* ── BUTTON: red pill, white text ── */
.bank-submit-btn {
  display: block;
  width: 60%;
  max-width: 260px;
  height: 42px;
  margin: 26px auto 40px;
  border: none;
  border-radius: 999px;
  background: var(--red);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s ease, transform .1s ease;
  -webkit-tap-highlight-color: transparent;
}
.bank-submit-btn:active { opacity: .88; transform: scale(.98); }
.bank-submit-btn:disabled {
  background: #D9DADC;
  color: #8E9093;
  cursor: not-allowed;
}




/* =========================================================
   DAILY CHECK-IN — white header, red panel, white rules
   Change --dc-red to match the exact red on the redtech website.
   ========================================================= */
.dc-page {
  --dc-red: #E11D2E;
  --dc-ink: #1A1A1A;
  --dc-muted: #8E9093;
  --dc-line: #D5D5D8;

  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  z-index: 500;
  background: #FFFFFF;
  color: var(--dc-ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  box-sizing: border-box;
}
.dc-page * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ── HEADER ── */
.dc-page .dc-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  height: 46px;
  background: #FFFFFF;
}
.dc-page .dc-back-btn {
  width: 44px;
  height: 46px;
  border: none;
  background: transparent;
  color: var(--dc-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
}
.dc-page .dc-back-btn:active { opacity: .6; }
.dc-page .dc-title {
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--dc-ink);
}

/* ── RED PANEL ── */
.dc-page .dc-panel {
  max-width: 480px;
  margin: 8px auto 0;
  padding: 26px 16px 28px;
  background: var(--dc-red);
  color: #FFFFFF;
  text-align: center;
}
@media (min-width: 480px) {
  .dc-page .dc-panel { margin-top: 8px; }
}

.dc-page .dc-stat { margin-bottom: 26px; }

.dc-page .dc-amount {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
}
.dc-page .dc-stat-label {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 400;
  opacity: .95;
}

/* white pill with red text */
.dc-page .dc-checkin-btn {
  display: block;
  width: 56%;
  max-width: 240px;
  height: 40px;
  margin: 6px auto 0;
  border: none;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--dc-red);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.dc-page .dc-checkin-btn:active { opacity: .88; transform: scale(.98); }
.dc-page .dc-checkin-btn:disabled {
  background: rgba(255, 255, 255, .55);
  color: rgba(225, 29, 46, .7);
  cursor: not-allowed;
}

/* ── RULES ── */
.dc-page .dc-rule-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 22px calc(40px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.dc-page .dc-rule-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dc-ink);
}
.dc-page .dc-rule-title::before,
.dc-page .dc-rule-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--dc-line);
}

.dc-page .dc-rule-line {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dc-muted);
}


/* =========================================================
   RECHARGE: WHITE / ASH / RED
   Change --red to match the exact red on the redtech website.
   ========================================================= */

#rechargePage{
  --red:#E11D2E;
  --ink:#1A1A1A;
  --muted:#6B6B6B;
  --faint:#8E9093;
  --line:#E4E4E6;
  --page:#F1F1F2;
  --nav-h:52px;              /* same height as the bottom nav */

  position:fixed;
  inset:0;
  width:100%;
  height:100vh;
  height:100dvh;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  background:var(--page);
  color:var(--ink);
  z-index:10000;             /* above the bottom nav (9999) so it can't cover the page */
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  box-sizing:border-box;
}
#rechargePage *{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

/* ── HEADER ── */
#rechargePage .recharge-header-bar{
  position:sticky;
  top:0;
  z-index:5;
  display:grid;
  grid-template-columns:44px 1fr 44px;
  align-items:center;
  height:44px;
  background:#ffffff;
  border-bottom:1px solid var(--line);
}
#rechargePage .recharge-back-btn-v2{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  background:transparent;
  color:var(--ink);
  font-size:13px;
  cursor:pointer;
}
#rechargePage .recharge-banner-title{
  margin:0;
  text-align:center;
  font-size:14px;
  font-weight:600;
  color:var(--ink);
}
#rechargePage .recharge-history-btn{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  background:transparent;
  color:var(--muted);
  font-size:13px;
  cursor:pointer;
}

/* ── CONTENT COLUMN ── */
#rechargePage .recharge-page-container{
  width:100%;
  max-width:480px;
  margin:0 auto;
  /* room at the bottom so the last content is never hidden behind the nav */
  padding-bottom:calc(var(--nav-h) + 40px + env(safe-area-inset-bottom,0px));
}

/* ── BANNER ── */
#rechargePage .rech-banner{
  position:relative;
  width:100%;
  aspect-ratio:3 / 1;
  background:linear-gradient(135deg,#2A2A2A 0%,#070707 100%);
  overflow:hidden;
}
#rechargePage .rech-banner-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
#rechargePage .rech-banner-shade{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(0,0,0,.45) 0%,rgba(0,0,0,0) 60%);
  pointer-events:none;
}
#rechargePage .rech-banner-text{
  position:absolute;
  top:12px;
  left:12px;
  color:#ffffff;
  text-shadow:0 1px 4px rgba(0,0,0,.45);
}
#rechargePage .rech-banner-amount{
  font-family:'Poppins','Inter',sans-serif;
  font-size:17px;
  font-weight:600;
  line-height:1.2;
}
#rechargePage .rech-banner-label{
  margin-top:2px;
  font-size:11px;
  font-weight:400;
}

/* ── SECTION TITLES ── */
#rechargePage .rech-section-title{
  display:flex;
  align-items:baseline;
  gap:6px;
  padding:14px 12px 9px;
}
#rechargePage .rech-section-title h3{
  margin:0;
  font-size:13px;
  font-weight:600;
  color:var(--ink);
}
#rechargePage .rech-section-title span{
  font-size:11px;
  font-weight:400;
  color:var(--ink);
}
#rechargePage .rech-section-title--channels{ padding:16px 12px 8px; }
#rechargePage .rech-section-title--instr{ padding:22px 12px 8px; }

/* ── RED NOTICE BUTTON (small, two lines) ── */
#rechargePage .rech-pending-link{
  display:block;
  width:calc(100% - 20px);
  margin:0 10px;
  padding:7px 14px;
  border:none;
  border-radius:8px;
  background:var(--red);
  color:#ffffff;
  font-family:inherit;
  font-size:10.5px;
  font-weight:400;
  line-height:1.45;
  text-align:center;
  cursor:pointer;
}
#rechargePage .rech-pending-link:active{ opacity:.88; }

/* ── QUICK AMOUNTS ── */
#rechargePage .quick-amount-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:6px;
  padding:12px 10px 0;
}
#rechargePage .amount-option{
  height:32px;
  padding:0 2px;
  border:1px solid var(--red);
  border-radius:6px;
  background:transparent;
  color:var(--red);
  font-family:inherit;
  font-size:11.5px;
  font-weight:400;
  cursor:pointer;
  transition:.15s ease;
}
#rechargePage .amount-option:active{ transform:scale(.97); }
#rechargePage .amount-option.active,
#rechargePage .amount-option.selected{
  background:var(--red);
  color:#ffffff;
}

/* ── AMOUNT INPUT ── */
#rechargePage .rech-input-row{
  display:flex;
  align-items:center;
  margin:12px 10px 0;
  height:40px;
  background:#ffffff;
  border-bottom:1px solid var(--line);
}
#rechargePage .rech-input-currency{
  flex:0 0 38px;
  text-align:center;
  font-size:13px;
  font-weight:500;
  color:var(--ink);
}
#rechargePage #customAmount{
  flex:1;
  min-width:0;
  height:100%;
  padding:0 8px 0 2px;
  border:0;
  outline:0;
  background:transparent;
  font-family:inherit;
  font-size:12px;
  font-weight:400;
  color:var(--ink);
}
#rechargePage #customAmount::placeholder{ color:var(--faint); font-weight:400; }

/* ── CHANNELS ── */
#rechargePage .channel-select-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:0 12px;
}
#rechargePage .channel-card{
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--red);
  border-radius:6px;
  background:transparent;
  color:var(--red);
  cursor:pointer;
  transition:.15s ease;
}
#rechargePage .channel-card-name{
  font-size:12px;
  font-weight:400;
  color:inherit;
}
#rechargePage .channel-card.selected{
  background:var(--red);
  color:#ffffff;
}
#rechargePage .channel-card:active{ opacity:.88; }

/* ── RECHARGE NOW (square edge) ── */
#rechargePage .deposit-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:58%;
  max-width:230px;
  height:40px;
  margin:16px auto 0;
  border:0;
  border-radius:3px;
  background:var(--red);
  color:#ffffff;
  font-family:inherit;
  font-size:13px;
  font-weight:500;
  cursor:pointer;
}
#rechargePage .deposit-btn:active{ opacity:.88; }
#rechargePage .deposit-btn:disabled{
  background:#D9DADC;
  color:#8E9093;
  cursor:not-allowed;
}

/* ── INSTRUCTIONS ── */
#rechargePage .rech-instr-card{
  margin:0 10px;
  padding:12px 12px 2px;
  background:#ffffff;
  border-radius:8px;
}
#rechargePage .rech-instr-card p{
  margin:0 0 9px;
  font-size:11px;
  font-weight:400;
  line-height:1.5;
  color:var(--faint);
}

/* ── HOW TO DEPOSIT MODAL (only opens if your other script opens it) ── */
#rechargePage .rech-how-overlay{
  position:fixed;
  inset:0;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(17,17,17,.45);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
}
#rechargePage .rech-how-overlay.open{ opacity:1; pointer-events:auto; }
#rechargePage .rech-how-modal{
  width:100%;
  max-width:320px;
  max-height:88vh;
  overflow-y:auto;
  padding:18px 16px 14px;
  border-radius:14px;
  background:#ffffff;
  box-shadow:0 20px 50px rgba(17,17,17,.2);
}
#rechargePage .rech-how-title{ margin:0 0 12px; font-size:14px; font-weight:600; color:var(--ink); }
#rechargePage .rech-how-steps{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
#rechargePage .rech-how-steps li{ display:flex; gap:9px; align-items:flex-start; }
#rechargePage .rech-how-num{
  flex-shrink:0;
  width:22px;
  height:22px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--red);
  color:#ffffff;
  font-size:10.5px;
  font-weight:600;
}
#rechargePage .rech-how-steps b{ display:block; font-size:12px; font-weight:500; color:var(--ink); }
#rechargePage .rech-how-steps p{ margin:2px 0 0; font-size:11px; line-height:1.5; color:var(--muted); }
#rechargePage .rech-how-ok{
  width:100%;
  height:38px;
  margin-top:14px;
  border:0;
  border-radius:3px;
  background:var(--red);
  color:#ffffff;
  font-family:inherit;
  font-size:12.5px;
  font-weight:500;
  cursor:pointer;
}

/* ── HIDDEN COMPATIBILITY ── */
#rechargePage #manualTransferCard,
#rechargePage #rechargeRulesBox{
  display:none!important;
}


/* =========================================================
   SECURE-PAYMENT LOADER
   ========================================================= */
.rsl-overlay{
  position:fixed;
  inset:0;
  z-index:10001;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(17,17,17,.4);
}
.rsl-overlay.show{ display:flex; }
.rsl-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding:20px 26px;
  border-radius:14px;
  background:#ffffff;
  box-shadow:0 18px 44px rgba(17,17,17,.18);
}
.rsl-net{ animation:rsl-spin 1.6s linear infinite; }
.rsl-text{ font-size:12px; font-weight:500; color:#1A1A1A; }
@keyframes rsl-spin{ to{ transform:rotate(360deg); } }


/* =========================================================
   OLD PAYMENT LOADER POPUP (recoloured to red)
   ========================================================= */
.gle-payment-loader-popup{
  width:min(240px, calc(100vw - 70px)) !important;
  padding:0 !important;
  border-radius:18px !important;
  overflow:hidden !important;
  background:#ffffff !important;
  border:1px solid #e6e8ea !important;
  box-shadow:0 18px 44px rgba(17,17,17,.16) !important;
}
.gle-payment-loader{ padding:24px 18px 18px; text-align:center; color:#1A1A1A; }
.gle-loader-brand{
  display:flex; align-items:center; justify-content:center; gap:6px;
  margin-bottom:16px; color:rgba(26,26,26,.4); font-size:8.5px; font-weight:600; letter-spacing:1px;
}
.gle-loader-brand-dot{ width:4px; height:4px; border-radius:50%; background:#E11D2E; }
.gle-loader-orbit{
  width:56px; height:56px; margin:0 auto 14px; position:relative;
  display:flex; align-items:center; justify-content:center;
}
.gle-loader-orbit::before{ content:""; position:absolute; inset:0; border-radius:50%; border:3px solid #f0f2f3; }
.gle-loader-orbit::after{
  content:""; position:absolute; inset:0; border-radius:50%;
  border:3px solid transparent; border-top-color:#E11D2E; border-right-color:#FF4B59;
  animation:recharge-loader-spin .9s cubic-bezier(.5,.1,.5,.9) infinite;
}
.gle-loader-core{
  width:34px; height:34px; border-radius:50%; position:relative; z-index:2;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#f3f4f5 0%,#e7e9eb 100%);
}
.gle-loader-core-icon{ color:#E11D2E; font-size:12px; }
.gle-loader-title{ margin:0 0 4px; color:#1A1A1A; font-size:13px; font-weight:600; }
.gle-loader-subtitle{ max-width:200px; margin:0 auto; color:rgba(26,26,26,.5); font-size:10.5px; line-height:1.5; }
.gle-loader-dots{ display:flex; align-items:center; justify-content:center; gap:5px; margin-top:13px; }
.gle-loader-dots span{ width:5px; height:5px; border-radius:50%; background:#E11D2E; animation:recharge-loader-dot 1.2s ease-in-out infinite; }
.gle-loader-dots span:nth-child(2){ background:#FF4B59; animation-delay:.15s; }
.gle-loader-dots span:nth-child(3){ background:#F7A1A8; animation-delay:.3s; }
.gle-loader-security{
  display:flex; align-items:center; justify-content:center; gap:5px;
  margin-top:14px; padding-top:11px; border-top:1px solid #f0f2f3;
  color:rgba(26,26,26,.4); font-size:9px;
}
.gle-loader-security i{ color:#E11D2E; font-size:9px; }
@keyframes recharge-loader-spin{ to{ transform:rotate(360deg); } }
@keyframes recharge-loader-dot{
  0%,70%,100%{ opacity:.3; transform:translateY(0); }
  35%{ opacity:1; transform:translateY(-3px); }
}

@media (max-width:360px){
  #rechargePage .amount-option{ font-size:11px; }
  #rechargePage .rech-pending-link{ font-size:10px; }
}

:root {
  --vfs-black: #0b0f0d;
  --vfs-black-soft: #12151a;
  --vfs-green: #00e676;
  --vfs-green-dark: #00a854;
  --vfs-green-soft: #e6fff2;
  --vfs-ash: #eef0f3;
  --vfs-ash-border: #e5e7eb;
  --vfs-muted: #6b7280;
  --vfs-ink: #12151a;
  --vfs-gradient: linear-gradient(135deg, #0b0f0d 0%, #0f2e1c 45%, #00c853 100%);
}

.manual-checkout-page {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: #ffffff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: 'Inter', sans-serif;
  color: var(--vfs-ink);
  box-sizing: border-box;
  padding-bottom: 90px; /* room for fixed bottom button */
}

.manual-checkout-page * { box-sizing: border-box; }

/* ── DARK HEADER BAR ── */
.mcp-header-dark {
  background: var(--vfs-black);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mcp-close-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mcp-header-titles {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.mcp-header-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.mcp-header-sub {
  font-size: 10.5px;
  color: rgba(255,255,255,0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcp-header-chevron,
.mcp-header-dots {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  flex-shrink: 0;
}

/* ── WRAP ── */
.mcp-wrap {
  max-width: 430px;
  margin: 0 auto;
  padding: 20px 18px 0;
}

/* ── MERCHANT ROW ── */
.mcp-merchant-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.mcp-merchant-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--vfs-green-dark);
  letter-spacing: 0.4px;
}

.mcp-merchant-logo {
  display: flex;
  align-items: center;
}

/* ── AMOUNT ── */
.mcp-amount-value {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: var(--vfs-black);
  margin-bottom: 16px;
}

/* ── CHANGE PAYMENT METHOD ── */
.mcp-change-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--vfs-green-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 0;
  font-family: inherit;
}

.mcp-divider {
  height: 1px;
  background: var(--vfs-ash-border);
  margin: 4px 0;
}

/* ── PAY WITH BANK TRANSFER ROW ── */
.mcp-method-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1.5px solid var(--vfs-ash-border);
  margin: 14px 0;
}

.mcp-method-row.selected {
  border-color: var(--vfs-green);
  background: var(--vfs-green-soft);
}

.mcp-method-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--vfs-black);
  color: var(--vfs-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.mcp-method-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--vfs-ink);
}

/* ── CAPTION ── */
.mcp-caption {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--vfs-muted);
  letter-spacing: 0.3px;
  margin: 4px 0 10px;
}
.mcp-caption strong { color: var(--vfs-ink); }

/* ── DETAIL ROWS ── */
.mcp-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--vfs-ash-border);
}

.mcp-beneficiary-row {
  border-bottom: none;
}

.mcp-detail-label {
  font-size: 13px;
  color: var(--vfs-muted);
  font-weight: 600;
  flex-shrink: 0;
}

.mcp-detail-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mcp-detail-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--vfs-ink);
  text-align: right;
}

.mcp-value-green { color: var(--vfs-green-dark); }

.mcp-beneficiary-value {
  text-align: right;
  line-height: 1.35;
  max-width: 220px;
}

.mcp-copy-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  border: none;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  color: var(--vfs-black);
  background: var(--vfs-ash);
  cursor: pointer;
  font-family: inherit;
}
.mcp-copy-btn:active { background: var(--vfs-green-soft); color: var(--vfs-green-dark); }

/* ── NOTE ── */
.mcp-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--vfs-muted);
  line-height: 1.6;
  margin: 18px 0 6px;
}
.mcp-note span { color: var(--vfs-black); font-weight: 700; }


/* ── SUBMIT BUTTON — inline now, centered, compact width ── */
.mcp-submit-wrap {
  display: flex;
  justify-content: center;
  margin: 20px 0 30px;
}

.mcp-submit-btn {
  width: auto;
  padding: 13px 32px;
  border: none;
  border-radius: 8px;
  background: var(--vfs-gradient);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.mcp-submit-btn:active { filter: brightness(0.9); }

/* =========================================================
   PROOF FORM — BOTTOM SHEET
   ========================================================= */

.mcp-form-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(11, 15, 13, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.mcp-form-card {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  padding: 10px 22px 28px;
  box-sizing: border-box;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: mcpSheetUp 0.25s ease-out;
  max-height: 88vh;
  overflow-y: auto;
}

@keyframes mcpSheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.mcp-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--vfs-ash-border);
  margin: 6px auto 16px;
}

.mcp-form-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--vfs-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 10px 22px -6px rgba(0, 168, 84, 0.5);
}

.mcp-form-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--vfs-ink);
}

.mcp-form-sub {
  margin: 0 0 20px;
  font-size: 12.5px;
  color: var(--vfs-muted);
}

.mcp-form-label {
  display: block;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--vfs-ink);
  margin-bottom: 7px;
}

.mcp-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 48px;
  border: 1.5px solid var(--vfs-ash-border);
  border-radius: 12px;
  background: #FAFCFB;
  margin-bottom: 18px;
  transition: border-color 0.2s;
}

.mcp-input-wrap:focus-within {
  border-color: var(--vfs-green);
  background: #ffffff;
}

.mcp-input-wrap i {
  color: var(--vfs-green-dark);
  font-size: 13px;
}

.mcp-form-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--vfs-ink);
  font-family: inherit;
}

.mcp-upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px;
  border: 1.5px dashed var(--vfs-ash-border);
  border-radius: 14px;
  color: var(--vfs-muted);
  font-size: 12px;
  margin-bottom: 20px;
  cursor: pointer;
  background: #FAFCFB;
  transition: border-color 0.2s, background 0.2s;
}

.mcp-upload-box:hover {
  border-color: var(--vfs-green);
  background: var(--vfs-green-soft);
}

.mcp-upload-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--vfs-green-soft);
  color: var(--vfs-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.mcp-upload-box.has-file {
  border-style: solid;
  border-color: var(--vfs-green);
  color: var(--vfs-green-dark);
  background: var(--vfs-green-soft);
}

.mcp-complete-pill {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 999px;
  background: var(--vfs-gradient);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 12px 26px -8px rgba(0, 168, 84, 0.55);
}
.mcp-complete-pill:active { filter: brightness(0.95); }
.mcp-complete-pill:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }

.mcp-form-cancel {
  width: 100%;
  padding: 11px;
  border: none;
  background: transparent;
  color: var(--vfs-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}


/* =========================================================
   SUCCESS STATE
   ========================================================= */

.mcp-verifying {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}

.mcp-success-icon {
  font-size: 54px;
  color: var(--vfs-green-dark);
  margin-bottom: 16px;
}

.mcp-verifying h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--vfs-ink);
}

.mcp-verifying p {
  margin: 0;
  font-size: 13px;
  color: var(--vfs-muted);
}



.channel-card-icon-manual {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}


.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;
}




/* ── iOS-style alert — transparent black backdrop, frosted white card ── */
.ft-alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 20px;
}
.ft-alert-overlay.show {
  opacity: 1;
  visibility: visible;
}

.ft-alert-card {
  width: 270px;
  max-width: 100%;
  background: rgba(247, 247, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  transform: scale(0.85);
  transition: transform 0.2s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.ft-alert-overlay.show .ft-alert-card {
  transform: scale(1);
}

.ft-alert-icon {
  margin: 18px auto 4px;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ft-alert-icon.success { color: #34C759; }
.ft-alert-icon.error   { color: #FF3B30; }
.ft-alert-icon.warning { color: #FF9500; }
.ft-alert-icon.info    { color: #007AFF; }

.ft-alert-title {
  margin: 4px 16px 2px;
  font-size: 15.5px;
  font-weight: 700;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}

.ft-alert-text {
  margin: 0 16px 14px;
  font-size: 13px;
  line-height: 1.4;
  color: #3c3c43;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}

.ft-alert-html {
  margin: 0 14px 12px;
  text-align: left;
}

.ft-alert-btn-row {
  display: flex;
  border-top: 1px solid rgba(60, 60, 67, 0.29);
}

.ft-alert-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 11px 0;
  font-size: 15.5px;
  font-weight: 400;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.ft-alert-btn:active {
  background: rgba(60, 60, 67, 0.08);
}

.ft-alert-btn-ok {
  color: #007AFF;
  font-weight: 600;
}

.ft-alert-btn-cancel {
  color: #007AFF;
  font-weight: 400;
  border-right: 1px solid rgba(60, 60, 67, 0.29);
}


@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(20, 24, 35, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999998;
  box-sizing: border-box;
  padding: 8px; /* distance from the screen edges */
}

#welcomePopup.popup-overlay {
  background: rgba(0, 0, 0, .92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mx-unique-modal {
  --mx-red: #E11D2E;          /* same red as the nav: change both together */
  --mx-red-ink: #B3121F;      /* darker red for the highlighted words */
  --mx-ink: #0B0B0B;
  --mx-muted: #5E6267;
  --mx-ash: #F1F1F2;

  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  animation: mx-pop-in 0.25s ease-out;
}
.mx-unique-modal * { box-sizing: border-box; }

@keyframes mx-pop-in {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.mx-modal-inner {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 0;
  border-top: 3px solid var(--mx-red);
  padding: 18px 16px;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* TITLE */
.mx-title {
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--mx-ink);
}
.mx-title-line {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 0;
  background: var(--mx-red);
  margin: 7px auto 12px;
}

.mx-emoji {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1.3;
}

/* LEAD */
.mx-lead {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mx-ink);
}

/* POINTS */
.mx-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mx-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: var(--mx-ash);
  border-radius: 0;
}
.mx-item p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: #1E2023;
}
.mx-item b {
  color: var(--mx-red-ink);
  font-weight: 700;
}

.mx-note {
  margin: 10px 0 7px;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--mx-muted);
}

/* SAFETY NOTICE */
.mx-safe {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(225, 29, 46, .08);
  border-left: 3px solid var(--mx-red);
  border-radius: 0;
}
.mx-safe p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.4;
  color: #2A2D30;
}

/* BUTTONS: side by side, square */
.mx-foot {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: 12px;
}

.mx-telegram-btn,
.mx-ok-btn {
  flex: 1;
  height: 38px;
  border: none;
  border-radius: 0;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: transform .1s, filter .15s;
  -webkit-tap-highlight-color: transparent;
}
.mx-telegram-btn:active,
.mx-ok-btn:active { transform: scale(.98); }

.mx-telegram-btn {
  background: var(--mx-red);
  color: #FFFFFF;             /* was black on green; white reads better on red */
  font-weight: 600;
}
.mx-telegram-btn:hover { filter: brightness(1.05); }

.mx-ok-btn {
  background: #0B0B0B;
  color: #FFFFFF;
  font-weight: 500;
}


.mx-ok-btn:hover { filter: brightness(1.25); }
#welcomePopup {
  display: none; /* Changed from none to flex for visibility during testing */
}


.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;
  }
}


@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

/* All colours are scoped to .invite-page so they never leak into other pages.
   Change --red to match the exact red on the redtech website. */
.invite-page,
.invite-page * {
  box-sizing: border-box;
}

.invite-page {
  --red: #E11D2E;
  --red-bright: #FF4B59;
  --ink: #1A1A1A;
  --muted: #6B6B6B;
  --grey-bg: #F1F1F2;
  --line: #D9D9DB;

  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  z-index: 999;
  display: none;
  flex-direction: column;
  background: #FFFFFF;
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
}

.referral-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* ── HEADER: logo on the left, text beside it on one straight line ── */
.invite-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 12px 6px;
}

.invite-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.invite-header-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .2px;
  color: var(--ink);
}

/* ── "Team details >>" (under the header) ── */
.invite-details-link {
  display: block;
  width: 100%;
  border: none;
  background: #FFFFFF;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  padding: 8px 0 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ── BANNER (put your image in sig.jpg, about 2.6:1) ── */
.invite-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 2.6 / 1;
  background: linear-gradient(135deg, #2A2A2A 0%, #070707 100%);
  overflow: hidden;
}
.invite-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.invite-banner-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(0, 0, 0, .55);
  padding: 8px 0;
}

.invite-strip-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 0 6px;
}

.invite-code-value {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--red-bright);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-code-link {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  width: 100%;
  text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  opacity: 1;
  text-overflow: ellipsis;
  -webkit-text-fill-color: var(--red-bright);
}

.invite-code-label {
  font-size: 13px;
  font-weight: 400;
  color: #FFFFFF;
}

/* ── COPY BAR ── */
.invite-copy-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--red);
}

.invite-copy-btn {
  border: none;
  background: transparent;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.invite-copy-btn:active { background: rgba(0, 0, 0, .12); }

/* ── INCOME PILL ── */
.invite-pill-wrap {
  background: var(--grey-bg);
  padding: 14px 10px;
}

.invite-pill {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--red);
  border-radius: 999px;
  padding: 11px 0;
  text-align: center;
  color: #FFFFFF;
}

.invite-pill-num {
  display: block;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.invite-pill-label {
  display: block;
  font-size: 13px;
  font-weight: 400;
}

/* ── LEVEL ROWS ── */
.invite-levels { background: #FFFFFF; }

.invite-level-row {
  display: grid;
  grid-template-columns: 72px 1.25fr 1fr 1fr;
  align-items: center;
  padding: 12px 0 12px 12px;
  border-bottom: 1px solid var(--line);
}
.invite-level-row:last-child { border-bottom: none; }

.invite-medal {
  width: 46px;
  height: 54px;
  display: block;
}

.invite-level-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.invite-level-cell b {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.invite-level-cell span {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
}

/* ── WRITE-UP ── */
.invite-rule-card {
  border-top: 8px solid var(--grey-bg);
  padding: 16px 16px 8px;
  background: #FFFFFF;
}

.invite-rule-card p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 16px;
}
.invite-rule-card p:last-child { margin-bottom: 0; }

@media (max-width: 360px) {
  .invite-code-value { font-size: 17px; }
  .invite-level-row { grid-template-columns: 62px 1.25fr 1fr 1fr; padding-left: 8px; }
  .invite-level-cell b { font-size: 13px; }
  .invite-level-cell span { font-size: 11.5px; }
}


/* =========================================================
   TEAM PAGE: white + red, fixed-column rows
   ========================================================= */

:root {
  --team-ink: #111111;
  --team-muted: #9A9A9A;
  --team-line: #ECECEC;
  --team-red: #DC0018;
}

#earningsPage {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff;
  color: var(--team-ink);
  font-family: 'Inter', 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  overflow-x: hidden;
}
#earningsPage * { box-sizing: border-box; }

/* ---------- HEADER ---------- */
.team-header-main {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--team-line);
}
.team-header-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--team-ink);
}
.back-btn-white {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--team-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.back-btn-white:active { opacity: .6; }

/* ---------- CONTAINER ---------- */
.team-page-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 0 100px;
}

/* ---------- LEVEL TABS ---------- */
.team-level-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #ffffff;
  border-bottom: 1px solid var(--team-line);
}
.team-tab-btn {
  position: relative;
  min-width: 0;
  padding: 14px 4px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}
.team-tab-btn strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(14px, 4.4vw, 18px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--team-ink);
}
.team-tab-btn .lvl {
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--team-muted);
}
.team-tab-btn em {
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--team-ink);
}
.team-tab-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--team-red);
}
.team-tab-btn:active { opacity: .7; }

/* ---------- LIST CARD ---------- */
.team-list-rows {
  margin: 12px 14px 0;
  background: #ffffff;
  border: 1px solid var(--team-line);
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

/* ---------- MEMBER ROW: four fixed columns ----------
   icon | number | time (centered, takes the rest) | amount (right)
   The amount column width is set by JS (--amt-ch) from the longest
   amount, so every row has identical column positions. */
.team-list-row {
  display: grid;
  grid-template-columns: 18px max-content minmax(0, 1fr) calc(var(--amt-ch, 7) * 1ch);
  align-items: center;
  column-gap: 10px;
  min-height: 66px;
  padding: 0 12px;
  font-size: 14px;
  border-bottom: 1px solid var(--team-line);
}
.team-list-row:last-child { border-bottom: none; }

.team-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B5B5B5;
}
.team-row-icon svg { width: 18px; height: 18px; }

.team-list-number {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--team-ink);
}

.team-row-time {
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.3;
  color: #ABABAB;
}
.team-row-time span { display: inline; }

.team-list-amount {
  text-align: right;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  color: var(--team-red);
}

/* phones: stack date over time on EVERY row so nothing shifts */
@media (max-width: 420px) {
  .team-row-time span { display: block; }
  .team-list-row { column-gap: 8px; padding: 0 10px; }
}
@media (max-width: 340px) {
  .team-list-number { font-size: 13px; }
  .team-list-amount { font-size: 13px; }
  .team-row-time { font-size: 10.5px; }
}

/* ---------- EMPTY STATE ---------- */
.team-list-nodata {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 90px;
  text-align: center;
}
.team-box-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}
.team-box-shadow {
  width: 74px;
  height: 12px;
  margin-top: 2px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.10), transparent 72%);
  border-radius: 50%;
}
.team-list-nodata span {
  font-size: 13px;
  font-weight: 500;
  color: #B0B0B0;
}

/* ---------- LOADING / ERROR ---------- */
.team-list-empty-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 44px 22px;
}
.team-list-empty-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F3F3F3;
  color: var(--team-ink);
}
.team-error-state .team-list-empty-icon {
  background: #FDECEE;
  color: var(--team-red);
}
.team-list-empty-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--team-ink);
}
.team-list-empty-sub {
  max-width: 250px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--team-muted);
}
.team-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--team-muted);
}
.team-loading-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F3F3F3;
  color: var(--team-red);
}
.team-loading-icon svg { animation: team-spin .8s linear infinite; }
@keyframes team-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .team-loading-icon svg { animation-duration: 2s; }
}


/* ============ WITHDRAWAL: white / ash / red ============ */
.withdraw-page{
  --wd-ink:#111111;
  --wd-muted:#8A8D91;
  --wd-faint:#9A9EA3;
  --wd-line:#D9DBDE;
  --wd-ash:#F0F0F0;
  --wd-red:#E11D2E;            /* same red as the nav and popup */

  position:relative;
  min-height:100vh;
  width:100%;
  background:#FFFFFF;
  color:var(--wd-ink);
  font-family:'Inter',-apple-system,'Segoe UI',sans-serif;
  font-weight:400;
  overflow-x:hidden;
  box-sizing:border-box;
  padding-bottom:90px;
}
.withdraw-page *{ box-sizing:border-box; font-weight:400; }

/* HEADER */
.wd-header-bar{
  position:sticky;
  top:0;
  z-index:5;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#FFFFFF;
}
.wd-back-btn{
  position:absolute;
  left:8px;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  background:transparent;
  color:var(--wd-ink);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.wd-header-title{
  margin:0;
  font-size:16px;
  color:var(--wd-ink);
}
.wd-info-btn{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  width:20px;
  height:20px;
  border-radius:50%;
  border:none;
  background:var(--wd-red);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

/* CONTAINER */
.wd-container{
  width:100%;
  max-width:600px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
}

/* BANNER with balance on top of it */
.wd-banner{
  position:relative;
  width:100%;
  aspect-ratio:2.2 / 1;
  background:linear-gradient(135deg,#F0F0F0,#E2E3E5);
  overflow:hidden;
  margin-bottom:22px;
}
.wd-banner-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.wd-balance-overlay{
  position:absolute;
  top:16px;
  left:14px;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.wd-balance-value{
  font-size:20px;
  line-height:1.2;
  color:#ffffff;
}
.wd-balance-label{
  font-size:12px;
  line-height:1.2;
  color:#ffffff;
}

/* SECTIONS */
.wd-section{ padding:0 14px; }

/* ACCOUNT ROW: icon, text, chevron, line under */
.wd-select-row{
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 0 14px;
  border:0;
  border-bottom:1px solid var(--wd-line);
  background:transparent;
  cursor:pointer;
  font-family:inherit;
  -webkit-tap-highlight-color:transparent;
}
.wd-card-ic{ flex:0 0 auto; }
.wd-select-text{
  flex:1;
  text-align:left;
  font-size:14px;
  color:var(--wd-ink);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.wd-select-chevron{ flex:0 0 auto; color:var(--wd-ink); }

/* AMOUNT */
.wd-amount-section{ margin-top:18px; }
.wd-section-title{
  margin:0 0 10px 4px;
  font-size:14px;
  color:var(--wd-ink);
}
.wd-amount-row{
  display:flex;
  align-items:center;
  gap:14px;
  padding:0 0 12px 12px;
  border-bottom:1px solid var(--wd-line);
}
.wd-amount-row:focus-within{ border-bottom-color:var(--wd-red); }
.wd-currency{
  font-size:14px;
  color:var(--wd-ink);
}
.wd-input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  font-family:inherit;
  font-size:13px;
  color:var(--wd-ink);
}
.wd-input::placeholder{ color:var(--wd-ink); opacity:.85; }
.wd-input::-webkit-inner-spin-button,
.wd-input::-webkit-outer-spin-button{ -webkit-appearance:none; }

/* RECEIVED + TAX */
.wd-meta-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 14px;
  margin-top:16px;
  font-size:13px;
  color:var(--wd-ink);
}
.wd-min-note{
  padding:0 14px;
  margin-top:6px;
  text-align:right;
  font-size:11.5px;
  color:var(--wd-red);
}

/* CONFIRM BUTTON */
.wd-action{
  display:flex;
  justify-content:center;
  padding:0 14px;
  margin:30px 0 28px;
}
.wd-confirm-btn{
  width:62%;
  min-width:210px;
  height:44px;
  border:none;
  border-radius:999px;
  background:var(--wd-red);
  color:#FFFFFF;
  font-family:inherit;
  font-size:14px;
  cursor:pointer;
  transition:transform .1s ease;
  -webkit-tap-highlight-color:transparent;
}
.wd-confirm-btn:active{ transform:scale(.98); }
.wd-confirm-btn:disabled{
  background:#DADCDF;
  color:#9A9EA3;
  cursor:not-allowed;
}

/* INSTRUCTIONS: numbered grey notes */
.wd-ins-title{
  margin:0 0 14px;
  padding:0 16px;
  font-size:14px;
  color:var(--wd-ink);
}
.wd-instructions-block{
  padding:0 24px;
  display:flex;
  flex-direction:column;
  gap:12px;
  counter-reset:wdnote;
}
.wd-note{
  margin:0;
  font-size:12.5px;
  line-height:1.5;
  color:var(--wd-muted);
  counter-increment:wdnote;
}
.wd-note::before{ content:counter(wdnote) ". "; }

@media (max-width:370px){
  .wd-header-bar{ height:50px; }
  .wd-balance-value{ font-size:18px; }
  .wd-confirm-btn{ height:42px; }
}


/* =========================================================
   RECORDS — white / ash / red
   Scoped to #recordsPage so it can't clash with the bank page,
   which also uses the .bank-page class.
   Change --red to match the exact red on the redtech website.
   ========================================================= */

#recordsPage {
  --red: #E11D2E;
  --ink: #1A1A1A;
  --ink-faint: #9A9EA3;
  --line: #E8E9EB;
  --ash: #F1F1F2;
  --in: #2E9E4F;        /* Success */
  --out: #E11D48;       /* Failed */
  --pending: #D9A100;   /* Pending */

  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  z-index: 500;
  background: #FFFFFF;
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  box-sizing: border-box;
}
#recordsPage * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ── HEADER (white) ── */
#recordsPage .records-hero {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}

#recordsPage .records-hero-top {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  height: 46px;
}

#recordsPage .records-back-btn {
  width: 44px;
  height: 46px;
  border: none;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#recordsPage .records-back-btn:active { opacity: .6; }

#recordsPage .records-hero-title {
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
#recordsPage .records-hero-spacer { width: 44px; }

/* ── TABS: white bar, red underline on the active tab ── */
#recordsPage .records-tab-bar {
  display: flex;
  width: 100%;
  background: #FFFFFF;
}

#recordsPage .records-tab-btn {
  flex: 1;
  position: relative;
  padding: 11px 4px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color .15s;
}
#recordsPage .records-tab-btn::after {
  content: '';
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .2s ease;
}
#recordsPage .records-tab-btn.active {
  color: var(--red);
  font-weight: 500;
}
#recordsPage .records-tab-btn.active::after { transform: scaleX(1); }

/* ── CONTENT ── */
#recordsPage .records-content-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 100px;
}

/* ── ROWS: stacked lines, thin divider between rows ── */
#recordsPage #recordsContainer {
  display: flex;
  flex-direction: column;
}

#recordsPage .record-card {
  width: 100%;
  padding: 13px 14px 11px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 7px;
  animation: recRowIn .25s ease both;
}
@keyframes recRowIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* line 1: order number */
#recordsPage .record-ref {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

/* line 2: type + amount */
#recordsPage .record-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
#recordsPage .record-title {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink);
}
#recordsPage .record-amount {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
}

/* line 3: amount received (grey) */
#recordsPage .record-received {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-faint);
}

/* last line: date on the left, status word on the right */
#recordsPage .record-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}
#recordsPage .record-date {
  font-size: 11.5px;
  color: var(--ink-faint);
}
#recordsPage .record-status {
  font-size: 11.5px;
  font-weight: 400;
}
#recordsPage .record-status.status-approved { color: var(--in); }
#recordsPage .record-status.status-pending  { color: var(--pending); }
#recordsPage .record-status.status-failed   { color: var(--out); }

/* failed rows: no outline, border, stroke or strike-through anywhere */
#recordsPage .record-card.is-failed,
#recordsPage .record-card.is-failed * {
  outline: 0;
  box-shadow: none;
  text-decoration: none;
}

#recordsPage .records-empty-text {
  text-align: center;
  color: var(--ink-faint);
  font-size: 12px;
  margin: 18px 0 0;
}

@media (max-width: 380px) {
  #recordsPage .record-card { padding: 12px 12px 10px; }
  #recordsPage .records-tab-btn { font-size: 12px; }
}

/* ================= 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;
}

/* ================= 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;
}

}




.investment-page {
  --mp-ink: #111111;
  --mp-red: #D9262C;          /* change to your exact RedTech red */
  --mp-bg: #F0F0F0;

  position: relative;
  background: var(--mp-bg);
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--mp-ink);
}
.investment-page * { box-sizing: border-box; font-weight: 400; }

/* ── HEADER ── */
.mp-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 56px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mp-back {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mp-header-title {
  font-size: 16px;
  color: var(--mp-ink);
}

/* ── WRAP ── */
.mp-wrap {
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 0 100px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── HERO: banner with floating pills ── */
.mp-hero {
  position: relative;
  z-index: 1;
  margin-bottom: 11px;
}
.mp-banner {
  width: 100%;
  aspect-ratio: 2.4 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #2A2A2A, #070707);
}
.mp-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-stats {
  position: absolute;
  left: 0;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mp-stat {
  width: 150px;
  height: 42px;
  background: #FFFFFF;
  border-radius: 0 21px 21px 0;   /* always half the height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.mp-stat-val {
  font-size: 14px;
  line-height: 1.15;
  color: var(--mp-ink);
}
.mp-stat-label {
  font-size: 12px;
  line-height: 1.15;
  color: var(--mp-ink);
}

/* ── CARD LIST ── */
#investmentCardsList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-card {
  position: relative;
  z-index: 2;                 /* sits over the second pill's lower edge */
  background: #FFFFFF;
  border-radius: 6px;
  padding: 30px 19px 30px;
  animation: mpIn .25s ease both;
}
@keyframes mpIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mp-card-body {
  min-width: 0;
  padding-right: 100px;
}
.mp-card-title {
  margin: 0 0 15px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--mp-ink);
}
.mp-card-price {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--mp-red);
}

.mp-card-img {
  position: absolute;
  right: 40px;
  top: 66px;
  width: 42px;
  display: flex;
  justify-content: center;
}
.mp-card-img img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  display: block;
}

.mp-row {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--mp-ink);
}
.mp-row:last-child { margin-bottom: 0; }
.mp-val { color: var(--mp-red); }

/* completed products */
.mp-card.is-completed { opacity: .72; }
.mp-done-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--mp-red);
  font-size: 11px;
  color: var(--mp-red);
}

/* ── EMPTY STATE ── */
.mp-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
}
.mp-empty-text {
  margin: 0;
  font-size: 13px;
  color: #6B6B6B;
}

/* smaller phones */
@media (max-width: 370px) {
  .mp-header { height: 52px; }
  .mp-stats { top: 60px; }
.mp-stat { width: 136px; height: 38px; border-radius: 0 19px 19px 0; }
 
  .mp-card { padding: 24px 16px 24px; }
  .mp-card-price { top: 24px; right: 30px; }
  .mp-card-img { right: 30px; top: 58px; }
  .mp-card-body { padding-right: 84px; }
  .mp-row { font-size: 12.5px; }
}

.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; }
}



.password-page {
  --pw-neon:#22c55e;
  --pw-neon-dark:#16a34a;
  --pw-ink:#111111;
  --pw-ink-muted:#6B6B6B;
  --pw-line:#ECECEC;
  --pw-panel:#ffffff;
  --pw-bg:#F5F6F7;

  background: var(--pw-bg);
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  width: 100%;
  box-sizing: border-box;
}
.password-page * { box-sizing: border-box; }

/* ===================== HEADER ===================== */
.pw-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  background: var(--pw-panel);
  border-bottom: 1px solid var(--pw-line);
  border-radius: 0 0 20px 20px;
}

.pw-back-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #F1F5F3;
  color: var(--pw-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
}
.pw-back-btn:active { background: #E4EAE7; }

.pw-topbar-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--pw-ink);
}

/* ===================== CONTAINER ===================== */
.pw-container {
  max-width: 460px;
  margin: 0 auto;
  padding: 18px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===================== FORM CARD ===================== */
.pw-card {
  background: var(--pw-panel);
  border: 1px solid var(--pw-line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.pw-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pw-field-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pw-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pw-ink);
}

.pw-bullet {
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--pw-neon);
  display: inline-block;
  flex-shrink: 0;
}

.pw-field-group {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--pw-line);
  border-radius: 10px;
  background: var(--pw-bg);
}

.pw-lock-icon {
  position: absolute;
  left: 14px;
  font-size: 12px;
  color: var(--pw-neon-dark);
}

.pw-field-group input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--pw-ink);
  width: 100%;
  font-family: inherit;
  padding: 14px 40px 14px 38px;
}

.pw-field-group input::placeholder {
  color: #9CA3AF;
}

.pw-field-group:focus-within {
  border-color: var(--pw-neon);
  background: #ffffff;
}

.pw-eye-icon {
  position: absolute;
  right: 14px;
  cursor: pointer;
  color: var(--pw-ink-muted);
  font-size: 13px;
}
.pw-eye-icon:hover { color: var(--pw-ink); }

/* ===================== PASSWORD STRENGTH ===================== */
.pw-strength-row {
  margin-top: -2px;
}

.pw-strength-bar {
  display: flex;
  gap: 5px;
}

.pw-strength-seg {
  flex: 1;
  height: 4px;
  border-radius: 3px;
  background: var(--pw-line);
  transition: background .2s ease;
}

.pw-strength-seg.weak   { background: #EF4444; }
.pw-strength-seg.medium { background: #F59E0B; }
.pw-strength-seg.strong { background: var(--pw-neon); }

/* ===================== SUBMIT BUTTON — black → green gradient ===================== */
.pw-submit-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #0a0a0a 0%, #111111 45%, var(--pw-neon-dark) 100%);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  margin-top: 4px;
  box-shadow: 0 6px 16px rgba(34,197,94,.18);
}

.pw-submit-btn:active { filter: brightness(1.1); }
.pw-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* ===================== SECURITY TIPS CARD ===================== */
.pw-tips-card {
  background: var(--pw-panel);
  border: 1px solid var(--pw-line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.pw-tips-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--pw-ink);
}

.pw-tips-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pw-tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--pw-ink-muted);
}

.pw-tip-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--pw-neon);
  flex-shrink: 0;
  margin-top: 1px;
}

.pw-tips-list li strong {
  color: var(--pw-ink);
  font-weight: 800;
}






/* =========================================================
   ABOUT US — white header, ash page, white card, red accent
   Change --ab-red to match the exact red on the redtech website.
   ========================================================= */
.about-page {
  --ab-red: #E11D2E;
  --ab-ink: #1A1A1A;
  --ab-text: #2B2B2B;
  --ab-line: #E4E4E6;
  --ab-ash: #F1F1F2;

  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  z-index: 500;
  background: var(--ab-ash);
  color: var(--ab-ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  box-sizing: border-box;
}
.about-page * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ── HEADER ── */
.about-page .ab-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  height: 46px;
  background: #FFFFFF;
}
.about-page .ab-back-btn {
  width: 44px;
  height: 46px;
  border: none;
  background: transparent;
  color: var(--ab-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
}
.about-page .ab-back-btn:active { opacity: .6; }
.about-page .ab-topbar-title {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ab-ink);
}
.about-page .ab-topbar-spacer { width: 44px; }

/* ── WHITE CARD ── */
.about-page .ab-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 4px calc(40px + env(safe-area-inset-bottom, 0px));
}

.about-page .ab-card {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 14px 12px 12px;
}

.about-page .ab-intro {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ab-text);
}

/* section headings: plain, small */
.about-page .ab-section-title {
  margin: 10px 0 4px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ab-ink);
}
.about-page .ab-section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 11px;
  margin-right: 7px;
  border-radius: 2px;
  background: var(--ab-red);
  vertical-align: -1px;
}

/* lines of text, no bullets, like the reference */
.about-page .ab-list {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
}
.about-page .ab-list li {
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ab-text);
}
.about-page .ab-list b {
  font-weight: 500;
  color: var(--ab-ink);
}

.about-page .ab-compat-hidden { display: none; }



@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600&family=Inter:wght@400;500;600&display=swap');

/* ── these two blocks are unchanged from your old file ── */
.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);
}

#pfWithdrawActionBtn .pf-action-icon { color: #30d158 !important; }


/* ── PRODUCT PAGE ──
   Colours live on .ppx-page so they never leak into other pages.
   Change --red to match the exact red on the redtech website. */
.ppx-page,
.ppx-page * {
  box-sizing: border-box;
}

.ppx-page {
  --red: #E11D2E;
  --ink: #1A1A1A;
  --muted: #6B6B6B;
  --page-bg: #F1F1F2;
  --card: #FFFFFF;
  --charcoal: #2B2B2B;

  background: var(--page-bg);
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding-bottom: 100px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
}

/* ── HEADER: logo + text on one line ── */
.ppx-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 12px 12px;
  background: #FFFFFF;
}

.ppx-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.ppx-header-text {
  display: flex;
  flex-direction: row;        /* was: column */
  align-items: center;
  gap: 6px;                   /* space between the two words/lines */
  white-space: nowrap;        /* never wrap to a second line */
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .2px;
  color: var(--ink);
}

/* ── BANNER + FLOATING PILL ── */
.ppx-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 2.4 / 1;
  background: linear-gradient(135deg, #2A2A2A 0%, #070707 100%);
  overflow: hidden;
}

.ppx-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ppx-banner-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  max-width: 400px;
  bottom: 12%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #FFFFFF;
  border-radius: 999px;
  padding: 6px 0;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .16);
}

.ppx-pill-num {
  display: block;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.ppx-pill-label {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--muted);
}

/* ── LIST ── */
.ppx-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 12px 4px 0;
}

/* ── CARD ── */
.ppx-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: 8px;
  padding: 14px 10px 14px 12px;
}

/* every picture gets the same box and fills it completely */
.ppx-item-pic {
  position: relative;
  flex: 0 0 96px;
  width: 96px;
  height: 110px;
  border-radius: 6px;
  overflow: hidden;
  background: #EEEEEF;
  isolation: isolate;
}

.ppx-item-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Locked / unavailable card: the picture turns charcoal black like the button */
.ppx-item-locked .ppx-item-pic img {
  filter: grayscale(1) brightness(.55);
}
.ppx-item-locked .ppx-item-pic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(43, 43, 43, .8);
  z-index: 2;
  pointer-events: none;
}

.ppx-item-body {
  flex: 1;
  min-width: 0;
}

.ppx-item-title {
  margin: 0 0 8px;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.ppx-item-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.ppx-item-lines {
  min-width: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
}

.ppx-item-lines b {
  font-weight: 500;
}

/* ── BUY BUTTON ── */
.ppx-buy-btn {
  flex-shrink: 0;
  min-width: 70px;
  background: var(--red);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.ppx-buy-btn:active { opacity: .85; }

/* Locked / unavailable: charcoal black */
.ppx-buy-btn-unavailable,
.ppx-buy-btn-unavailable:disabled {
  background: var(--charcoal) !important;
  color: rgba(255, 255, 255, .85) !important;
  cursor: not-allowed !important;
}

/* Sold out: soft grey */
.ppx-buy-btn-sold,
.ppx-buy-btn-sold:disabled {
  background: #D9DADC !important;
  color: #8E9093 !important;
  cursor: not-allowed !important;
}

/* Admin-disabled product: whole card blurred and non-clickable */
.ppx-item-disabled {
  filter: blur(1.5px);
  opacity: .55;
  pointer-events: none;
}

/* ── LOADING / ERROR ── */
.ppx-loader,
.ppx-error {
  display: flex;
  justify-content: center;
  padding: 50px 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.ppx-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid #E0E1E2;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: ppx-spin .7s linear infinite;
}

@keyframes ppx-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 360px) {
  .ppx-item-pic { flex-basis: 76px; width: 76px; height: 96px; }
  .ppx-item-title { font-size: 15px; }
  .ppx-item-lines { font-size: 12px; }
}





/* 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);
}








.brand-redirect-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--brand-white, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
}

#pageLoader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#pageLoader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Small network-style pinwheel spinner */
.network-spinner {
  position: relative;
  width: 28px;
  height: 28px;
}

.network-spinner span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 7px;
  margin-left: -1px;
  background: #1a73e8;
  border-radius: 1px;
  transform-origin: 1px 14px;
  animation: spokeFade 1s linear infinite;
}

.network-spinner span:nth-child(1) { transform: rotate(0deg);   animation-delay: -0.875s; }
.network-spinner span:nth-child(2) { transform: rotate(45deg);  animation-delay: -0.75s; }
.network-spinner span:nth-child(3) { transform: rotate(90deg);  animation-delay: -0.625s; }
.network-spinner span:nth-child(4) { transform: rotate(135deg); animation-delay: -0.5s; }
.network-spinner span:nth-child(5) { transform: rotate(180deg); animation-delay: -0.375s; }
.network-spinner span:nth-child(6) { transform: rotate(225deg); animation-delay: -0.25s; }
.network-spinner span:nth-child(7) { transform: rotate(270deg); animation-delay: -0.125s; }
.network-spinner span:nth-child(8) { transform: rotate(315deg); animation-delay: 0s; }

@keyframes spokeFade {
  0%   { opacity: 1; }
  100% { opacity: 0.15; }
}

/* 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; }
}





/* =========================================================================
   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; }
}