/* ================= GENERAL RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}




@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root{
  --auth-white:#ffffff;
  --auth-black:#0A0A0A;
  --auth-neon:#39FF6A;          /* neon green — accents, links, focus glow */
  --auth-neon-soft:rgba(57,255,106,.18);
  --auth-line:rgba(255,255,255,.35);
}

/* ===================== SHELL / BACKGROUND ===================== */
.auth-shell{
  display:none;
  position:fixed;
  inset:0;
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Inter',sans-serif;
  overflow-y:auto;
  overflow-x:hidden;
  z-index:9999;
  background:var(--auth-black);
}
.auth-shell.active{
  display:flex;
  flex-direction:column;
  align-items:center;
}
.auth-shell *{ box-sizing:border-box; }

/* Full-bleed photo behind the form.
   Swap the url() below for your own image — same filename works on
   both mobile and desktop, the layout below handles the rest. */
.auth-bg{
  position:fixed;
  inset:0;
  background-size:cover;
  background-position:center top;
  background-repeat:no-repeat;
  z-index:0;
}
.auth-bg--login{
  background-image:url('for.jpg');
}
.auth-bg--signup{
  background-image:url('for.jpg');
}

/* Dark + neon gradient wash so white text/fields stay readable on any photo */
.auth-overlay{
  position:fixed;
  inset:0;
  z-index:1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.15) 38%, rgba(0,0,0,.78) 68%, rgba(0,0,0,.94) 100%),
    radial-gradient(120% 60% at 50% 100%, var(--auth-neon-soft) 0%, transparent 55%);
}
.auth-overlay--signup{
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.35) 30%, rgba(0,0,0,.88) 66%, rgba(0,0,0,.97) 100%),
    radial-gradient(120% 60% at 50% 100%, var(--auth-neon-soft) 0%, transparent 55%);
}

/* ===================== FORM COLUMN ===================== */
.auth-inner{
  position:relative;
  z-index:2;
  width:100%;
  max-width:430px;
  margin:0 auto;
  min-height:100%;
  padding:0 24px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.auth-heading{
  margin:0 0 26px;
  font-family:'Poppins',sans-serif;
  font-size:32px;
  font-weight:800;
  color:var(--auth-white);
  text-shadow:0 2px 14px rgba(0,0,0,.55);
  letter-spacing:.2px;
}

/* ===================== FIELDS — frosted glass over the photo ===================== */
.auth-field-group{ margin-bottom:14px; }

.phone-row{
  display:flex;
  align-items:stretch;
}
.phone-code{
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  background:rgba(10,10,10,.65);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  color:var(--auth-white);
  font-size:14px;
  font-weight:600;
  border-radius:14px 0 0 14px;
  border:1.5px solid var(--auth-line);
  border-right:none;
}
.phone-row .auth-field-box{
  flex:1;
  min-width:0;
  border-radius:0 14px 14px 0;
}

.auth-field-box{
  display:flex;
  align-items:center;
  background:rgba(255,255,255,.10);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border:1.5px solid var(--auth-line);
  border-radius:14px;
  padding:14px 16px;
  transition:.15s;
}
.auth-field-box:focus-within{
  border-color:var(--auth-neon);
  box-shadow:0 0 0 3px var(--auth-neon-soft);
}
.auth-field-box input{
  border:none;
  outline:none;
  width:100%;
  min-width:0;
  font-size:14px;
  background:transparent;
  color:var(--auth-white);
  font-family:inherit;
}
.auth-field-box input::placeholder{ color:rgba(255,255,255,.65); }

/* ===================== SUBMIT BUTTON ===================== */
.auth-submit-btn{
  position:relative;
  overflow:hidden;
  width:100%;
  padding:16px;
  border:none;
  border-radius:999px;
  background:var(--auth-white);
  color:var(--auth-black);
  font-weight:700;
  cursor:pointer;
  font-size:15px;
  font-family:inherit;
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:transform .1s, box-shadow .15s;
  box-shadow:0 0 0 0 var(--auth-neon-soft);
}
.auth-submit-btn:hover{ box-shadow:0 0 0 6px var(--auth-neon-soft); }
.auth-submit-btn:active{ transform:scale(.98); }
.auth-submit-btn:disabled{ pointer-events:none; opacity:.6; }

.auth-submit-btn .btn-content,
.auth-submit-btn .btn-spinner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.auth-submit-btn .btn-spinner{ display:none; color:var(--auth-black); }
.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); } }

/* ===================== SWITCH LINK ===================== */
.auth-switch{
  text-align:right;
  margin-top:18px;
  font-size:13.5px;
}
.auth-switch-link{
  background:none;
  border:none;
  color:var(--auth-neon);
  font-weight:600;
  cursor:pointer;
  font-size:13.5px;
  font-family:inherit;
  padding:0;
  text-decoration:underline;
  text-underline-offset:3px;
}
.auth-switch-link:hover{ opacity:.85; }

/* ===================== RESPONSIVE ===================== */
/* Mobile (default above) already matches the reference layout 1:1.
   Desktop / tablet: keep the photo full-bleed, just give the form
   column more breathing room and a slightly larger heading. */
@media (min-width:700px){
  .auth-inner{
    max-width:460px;
    padding:0;
    align-items:center;
  }
  .auth-heading{ font-size:38px; }
  .phone-row, .auth-field-group{ width:100%; }
}

@media (max-width:380px){
  .auth-inner{ padding:0 18px; }
  .auth-field-box{ padding:12px 14px; }
  .auth-heading{ font-size:28px; }
}



:root {
  --ink: #111111;
  --ink-muted: rgba(17, 17, 17, 0.56);
  --white: #FFFFFF;
  --line: #ECECEC;
  --neon: #39FF6A;
  --neon-soft: rgba(57, 255, 106, .20);
}

/* ── DASHBOARD BODY — no side padding, everything edge to edge ── */
.dashboard {
  width: 100%;
  max-width: 430px;
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  background: #ffffff;
  color: var(--ink);
}

/* ── HERO — no header bar, this image is the very top of the page.
   overflow:hidden means the ::after gradient and .mx-hero-overlay
   text can never visually spill past this box's own edge. ── */
.mx-hero {
  position: relative;
  width: 100%;
  min-height: 260px;
  overflow: hidden;
  margin-bottom: 0; /* nothing pulling the next section up */
}

.mx-hero-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* Gradient now fully fades out well before the bottom edge (55% instead
   of 45%), so there's a clean solid-image strip right at the seam —
   makes the boundary between hero and the panel below read as sharp,
   not a blended fade that can look like the panel is floating on it. */
.mx-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 55%);
}

.mx-hero-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.mx-hero-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.mx-hero-sub {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
}

.mx-hero-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--neon);
  color: #06210F;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: filter .2s, transform .1s;
}

.mx-hero-btn:hover { filter: brightness(1.05); }
.mx-hero-btn:active { transform: scale(.96); }

/* ── ACTION ROW — sits BELOW the hero in normal document flow.
   position/margin/z-index locked explicitly here on purpose: this is
   what guarantees it can never end up floating over the banner image,
   even if something else in the stylesheet tries to override it. ── */
.mx-action-panel {
  position: static;
  width: 100%;
  margin: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 -6px 10px -8px rgba(0, 0, 0, 0.18); /* small shadow reads as "this row sits in front of / below the image", not on top of it */
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 18px 10px;
  box-sizing: border-box;
  z-index: 1; /* deliberately LOWER than the hero's own overlay (z-index:2), confirming this row is a separate section after it, not stacked on top */
}

.mx-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex: 1;
  -webkit-tap-highlight-color: transparent;
}

.mx-action-card:active { opacity: 0.65; }

.mx-action-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F4F4F4;
  color: var(--ink);
  font-size: 17px;
  transition: box-shadow .15s;
}

.mx-action-card:active .mx-action-icon-wrap {
  box-shadow: 0 0 0 4px var(--neon-soft);
}

.mx-action-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  font-family: inherit;
}

/* ── TASK CENTER BANNER ── */
.mx-task-banner {
  position: relative;
  width: 100%;
  height: 130px;
  margin-top: 18px;
  overflow: hidden;
  cursor: pointer;
}

.mx-task-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mx-task-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.15) 60%, rgba(0,0,0,0) 100%);
}

.mx-task-overlay {
  position: absolute;
  left: 18px;
  top: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.mx-task-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
}

.mx-task-go-btn {
  border: none;
  border-radius: 999px;
  padding: 7px 22px;
  background: var(--neon);
  color: #06210F;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: filter .2s, transform .1s;
}

.mx-task-go-btn:hover { filter: brightness(1.05); }
.mx-task-go-btn:active { transform: scale(.96); }

/* ── LIVE TICKER — bell + auto-scrolling activity messages ── */
.mx-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px;
  background: var(--white);
  overflow: hidden;
}

.mx-ticker-icon {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--neon);
}

.mx-ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.mx-ticker-track {
  display: flex;
  width: max-content;
  animation: mx-ticker-scroll 16s linear infinite;
}

.mx-ticker-item {
  flex-shrink: 0;
  padding-right: 40px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

@keyframes mx-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── STAT GRID — 1 tall card (Balance) + 2 stacked short cards (Cumulative / Withdrawal) ── */
.mx-stats-grid {
  display: flex;
  width: 100%;
  gap: 3px;
  background: var(--white);
  padding-bottom: 90px;
}

.mx-stats-grid-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mx-stat-card {
  position: relative;
  overflow: hidden;
}

.mx-stat-card--tall {
  flex: 1;
  height: 220px;
}

.mx-stat-card--short {
  height: 108.5px;
}

.mx-stat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mx-stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.62) 0%, rgba(0,0,0,0) 55%);
}

.mx-stat-overlay {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.mx-stat-value {
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
}

.mx-stat-label {
  color: rgba(255,255,255,.85);
  font-size: 11px;
  font-weight: 600;
  margin-top: 1px;
}

@media (max-width: 380px) {
  .mx-hero { min-height: 220px; }
  .mx-hero-img { height: 220px; }
  .mx-hero-title { font-size: 16px; }
  .mx-action-icon-wrap { width: 40px; height: 40px; font-size: 15px; }
  .mx-action-text { font-size: 12px; }
  .mx-stat-card--tall { height: 190px; }
  .mx-stat-card--short { height: 93.5px; }
}


/* =========================================================
   REDEEM GIFT — white header, ash body, white cards,
   small gradient button
   ========================================================= */
:root{
  --gc-neon:#00E676;
  --gc-ink:#111111;
  --gc-muted:#6B6B6B;
  --gc-faint:#9A9A9A;
  --gc-line:#E6E6E6;
  --gc-bg:#EFEFEF;
}

#giftCodePage{
  width:100%;
  max-width:430px;
  margin:0 auto;
  min-height:100vh;
  background:var(--gc-bg);
  box-sizing:border-box;
  font-family:'Inter',sans-serif;
  color:var(--gc-ink);
}
#giftCodePage *{ box-sizing:border-box; }

/* HEADER — white bar, black text/icon */
.gift-page-header{
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  padding:16px;
  background:#ffffff;
  border-bottom:1px solid var(--gc-line);
}
.gift-back-btn{
  position:absolute;
  left:16px;
  width:28px;
  height:28px;
  border:none;
  background:none;
  color:var(--gc-ink);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.gift-back-btn:active{ opacity:.7; }

.gift-header-title{
  font-size:17px;
  font-weight:600;
  color:var(--gc-ink);
}

.gift-content{
  padding:20px 16px 30px;
  width:100%;
}

/* TELEGRAM ROW — white card */
.gift-telegram-row{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 20px;
  padding:14px 16px;
  border-radius:12px;
  background:#ffffff;
  text-decoration:none;
  color:var(--gc-ink);
  box-shadow:0 2px 6px rgba(0,0,0,.04);
}
.gift-telegram-row:active{ transform:scale(.99); }
.gift-telegram-icon{
  width:32px;
  height:32px;
  flex:0 0 32px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#27A9E1;
  color:#fff;
}
.gift-telegram-label{
  flex:1;
  font-size:14px;
  font-weight:500;
  color:var(--gc-ink);
}
.gift-telegram-arrow{
  color:var(--gc-ink);
  flex-shrink:0;
}

/* GIFT CODE INPUT — white box, ash page bg */
.gift-input-wrapper{
  margin:0 0 22px;
}
#giftCodeInput{
  width:100%;
  padding:16px 16px;
  border-radius:12px;
  border:none;
  background:#ffffff;
  color:var(--gc-ink);
  font-family:inherit;
  font-size:14px;
  font-weight:400;
  outline:none;
  box-shadow:0 2px 6px rgba(0,0,0,.04);
}
#giftCodeInput::placeholder{
  color:var(--gc-faint);
  font-weight:400;
}
#giftCodeInput:focus{
  box-shadow:0 0 0 3px rgba(0,230,118,.18);
}

/* CONFIRM BUTTON — small, centered, black-to-neon-green gradient */
.gift-receive-btn-row{
  display:flex;
  justify-content:center;
}
.gift-receive-btn{
  width:fit-content;
  min-width:170px;
  padding:12px 30px;
  border:none;
  border-radius:999px;
  background:linear-gradient(135deg, var(--gc-ink) 0%, var(--gc-neon) 100%);
  color:#ffffff;
  font-family:inherit;
  font-size:13.5px;
  font-weight:500;
  cursor:pointer;
  transition:.15s;
}
.gift-receive-btn:active{ transform:scale(.97); filter:brightness(1.08); }
.gift-receive-btn:disabled{
  background:#D5D5D5;
  color:#ffffff;
  cursor:not-allowed;
}

/* CAPTION TEXT below the button */
.gift-caption-text{
  margin:14px 0 0;
  text-align:center;
  font-size:12.5px;
  font-weight:400;
  color:var(--gc-ink);
}

@media (max-width:380px){
  .gift-content{ padding:18px 14px 26px; }
}
.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 */
}



:root {
  --bottom-nav-bg: #FFFFFF;
  --nav-inactive: #B9B9B9;
  --nav-active: #111111;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  background: var(--bottom-nav-bg);
  border-top: 1px solid #EDEDED;
  border-radius: 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 9999;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-pill-container {
  height: 58px;
  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%;
  color: var(--nav-inactive);
  gap: 4px;
  -webkit-tap-highlight-color: transparent;
}

.nav-item svg {
  color: var(--nav-inactive);
  transition: color 0.2s;
}

.nav-item .nav-label-text {
  font-size: 11px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: var(--nav-inactive);
  transition: color 0.2s;
}

.nav-item.active svg {
  color: var(--nav-active);
}

.nav-item.active .nav-label-text {
  color: var(--nav-active);
  font-weight: 700;
}

.nav-item:active {
  opacity: 0.7;
}

.nav-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

/* 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%); }
}


/* =========================================================
   PROFILE — no header, banner overlay, 2-col stats, action
   row, task banner, locked 4-col grid, plain logout row.
   White · Black · Neon Green
   ========================================================= */

#profilePage{
  --ink:#111111;
  --muted:#7C7C7C;
  --line:#F0F0F0;
  --page-bg:#FFFFFF;
  --neon:#00E676;
  --neon-dark:#00C765;

  position:fixed;
  inset:0;
  width:100%;
  height:100vh;
  display:flex;
  flex-direction:column;
  overflow-y:auto;
  overflow-x:hidden;
  background:var(--page-bg);
  color:var(--ink);
  font-family:'Inter',sans-serif;
  font-weight:400; /* nothing bold anywhere by default */
  z-index:500;
  box-sizing:border-box;
}
#profilePage *{ box-sizing:border-box; }

/* ── BANNER — phone + Lv1 pill overlaid on image ── */
#profilePage .pf-banner-top{
  position:relative;
  width:100%;
  height:150px;
  overflow:hidden;
  flex:0 0 auto;
}
#profilePage .pf-banner-top-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
#profilePage .pf-banner-top-overlay{
  position:absolute;
  left:18px;
  bottom:18px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
#profilePage .pf-info-phone{
  color:#111111;
  font-size:16px;
  font-weight:500;
  text-shadow:0 1px 6px rgba(255,255,255,.6);
}
#profilePage .pf-info-phone::before{ content:"+234 "; }

#profilePage .pf-lv-pill{
  display:inline-block;
  width:fit-content;
  background:var(--neon);
  color:#053018;
  font-size:12px;
  font-weight:500;
  padding:4px 14px;
  border-radius:999px;
}

/* ── BALANCE STATS ── */
#profilePage .pf-stats-row{
  display:flex;
  padding:20px 16px 16px;
  background:#fff;
}
#profilePage .pf-stat-col{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:4px;
}
#profilePage .pf-stat-value{
  font-size:20px;
  font-weight:500;
  color:var(--ink);
}
#profilePage .pf-stat-label{
  font-size:12px;
  font-weight:400;
  color:var(--muted);
}

/* ── ACTION ROW ── */
#profilePage .pf-action-row{
  display:flex;
  background:#F7F7F7;
  border-radius:14px;
  margin:0 16px 16px;
  overflow:hidden;
}
#profilePage .pf-action-item{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  padding:16px 6px;
  border:none;
  background:none;
  color:var(--ink);
  cursor:pointer;
  font-family:inherit;
}
#profilePage .pf-action-icon{
  width:34px;
  height:34px;
  border-radius:50%;
  background:#EDEDED;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--ink);
}
#profilePage .pf-action-item span{
  font-size:11.5px;
  font-weight:400;
  color:var(--ink);
}
#profilePage .pf-action-item:active{ opacity:.6; }

/* ── TASK CENTER BANNER ── */
#profilePage .pf-task-banner{
  position:relative;
  margin:0 16px 18px;
  border-radius:14px;
  overflow:hidden;
  height:130px;
  cursor:pointer;
}
#profilePage .pf-task-banner-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
#profilePage .pf-task-banner-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 70%);
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:0 18px;
  gap:6px;
}
#profilePage .pf-task-title{
  color:#fff;
  font-size:17px;
  font-weight:500;
}
#profilePage .pf-task-sub{
  color:rgba(255,255,255,.85);
  font-size:11.5px;
  font-weight:400;
  max-width:190px;
}
#profilePage .pf-task-go-btn{
  width:fit-content;
  margin-top:8px;
  background:var(--neon);
  color:#053018;
  border:none;
  border-radius:999px;
  padding:7px 20px;
  font-size:12.5px;
  font-weight:500;
  font-family:inherit;
  cursor:pointer;
}
#profilePage .pf-task-go-btn:active{ background:var(--neon-dark); }

/* ── HIDDEN COMPATIBILITY ELEMENTS ── */
#profilePage .pf-compat-hidden{ display:none; }

/* ── SCROLL CONTAINER ── */
#profilePage .profile-scroll-container{
  width:100%;
  max-width:430px;
  margin:0 auto;
  padding:0 16px calc(90px + env(safe-area-inset-bottom,0px));
  flex:1;
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* ── 4-COLUMN GRID — locked to 4 columns on every screen size,
   mobile and desktop alike, no collapsing via media query ── */
#profilePage .pf-grid-card{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px 8px;
  padding:6px 2px 4px;
}
#profilePage .pf-grid-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  cursor:pointer;
  text-align:center;
}
#profilePage .pf-grid-icon{
  width:44px;
  height:44px;
  border-radius:50%;
  background:#F7F7F7;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--ink);
}
#profilePage .pf-grid-item span{
  font-size:11px;
  font-weight:400;
  color:var(--ink);
  line-height:1.3;
}
#profilePage .pf-grid-item:active{ opacity:.6; }

/* ── LOG OUT — plain row, not a solid bar ── */
#profilePage .pf-logout-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 4px;
  border-top:1px solid var(--line);
  cursor:pointer;
  color:var(--ink);
  font-size:13.5px;
  font-weight:400;
}
#profilePage .pf-logout-row svg{ color:#C7C7C7; }
#profilePage .pf-logout-row:active{ opacity:.6; }

@media(max-width:360px){
  #profilePage .pf-banner-top{ height:130px; }
  #profilePage .pf-stat-value{ font-size:18px; }
  #profilePage .pf-grid-icon{ width:38px; height:38px; }
}





: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;
}




:root {
  --neon-a: #39FF88;
  --neon-b: #00C46A;
  --ink: #0B0F0D;
  --ink-muted: rgba(11, 15, 13, 0.55);
  --ink-faint: rgba(11, 15, 13, 0.34);
  --page-bg: #F3F4F3;
  --field-bg: #E9EBEA;
  --card-bg: #FFFFFF;
  --line: #E2E4E2;
}

.bank-page {
  background: var(--page-bg);
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  box-sizing: border-box;
}

/* ── FLAT HEADER ── */
.bank-flat-header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.bank-flat-back {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 9px;
  background: var(--field-bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  flex-shrink: 0;
}

.bank-flat-header h2 {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  pointer-events: none;
}

/* ── FORM VIEW ── */
.bank-form-body {
  max-width: 430px;
  margin: 0 auto;
  padding: 18px 16px 36px;
  box-sizing: border-box;
}

/* ── FLAG ROW — Finland flag (Nordic cross), CSS-only, no image asset ── */
.bank-flag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.bank-flag {
  display: inline-block;
  width: 34px;
  height: 24px;
  border-radius: 3px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Finland: white field, blue Nordic cross offset toward the hoist side */
.bank-flag--fi::before {
  /* vertical bar of the cross */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 11px;
  width: 6px;
  background: #002F6C;
}

.bank-flag--fi::after {
  /* horizontal bar of the cross */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  height: 6px;
  background: #002F6C;
}

.bank-flag-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.bank-ash-box {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-sizing: border-box;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(11, 15, 13, 0.04);
}

.bank-field { margin-bottom: 14px; }
.bank-field:last-child { margin-bottom: 0; }

.bank-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 7px;
}

/* small, perfect rectangle fields */
.bank-field select,
.bank-field input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field-bg);
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  appearance: none;
}

.bank-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230B0F0D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.bank-field input::placeholder { color: var(--ink-faint); }

.bank-field select:focus,
.bank-field input:focus {
  border-color: var(--neon-b);
  box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.2);
}

.bank-field select:disabled,
.bank-field input:disabled {
  color: var(--ink);
  opacity: 1;
  cursor: not-allowed;
  background: linear-gradient(0deg, rgba(57,255,136,0.06), rgba(57,255,136,0.06)), var(--field-bg);
  border-color: rgba(57,255,136,0.35);
}

.bank-submit-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 0; /* was 999px (pill) — now square edges */
  background: linear-gradient(115deg, #000000 0%, #0B3B24 32%, var(--neon-b) 70%, var(--neon-a) 100%);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 18px rgba(0, 196, 106, 0.32);
  transition: transform .1s ease, box-shadow .15s ease;
}
.bank-submit-btn:active {
  transform: scale(.98);
  box-shadow: 0 2px 10px rgba(0, 196, 106, 0.32);
}


.bank-locked-note {
  margin: 12px 4px 0;
  font-size: 11px;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 6px;
}
.bank-locked-note i {
  background: linear-gradient(135deg, var(--neon-a), var(--neon-b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}



/* =========================================================
   RECHARGE — WHITE / BLACK / NEON GREEN
   ========================================================= */

#rechargePage{
  --ink:#111111;
  --muted:rgba(17,17,17,.55);
  --faint:rgba(17,17,17,.35);
  --line:#E2E2E2;
  --panel:#F4F4F4;
  --neon:#39FF6A;
  --neon-soft:rgba(57,255,106,.20);

  position:fixed;
  inset:0;
  width:100%;
  height:100vh;
  overflow-y:auto;
  overflow-x:hidden;
  background:#F7F7F7;
  color:var(--ink);
  z-index:500;
  font-family:inherit;
  box-sizing:border-box;
  -webkit-overflow-scrolling:touch;
}

#rechargePage *{box-sizing:border-box}

/* ── PLAIN HEADER BAR ── */
#rechargePage .recharge-header-bar{
  position:sticky;
  top:0;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:52px;
  padding:0 14px;
  background:#ffffff;
  border-bottom:1px solid var(--line);
}

#rechargePage .recharge-back-btn-v2{
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  background:transparent;
  color:var(--ink);
  font-size:15px;
  cursor:pointer;
}

#rechargePage .recharge-banner-title{
  margin:0;
  color:var(--ink);
  font-size:15px;
  font-weight:700;
}

#rechargePage .recharge-history-btn{
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  background:transparent;
  color:var(--ink);
  font-size:14px;
  cursor:pointer;
}


/* ── CONTAINER ── */
#rechargePage .recharge-page-container{
  width:100%;
  max-width:430px;
  margin:auto;
  padding:14px 14px calc(100px + env(safe-area-inset-bottom,0px));
  display:flex;
  flex-direction:column;
}


/* ── AMOUNT BANNER — the form's input lives on top of this image ── */
#rechargePage .rech-amount-banner{
  position:relative;
  width:100%;
  height:130px;
  border-radius:14px;
  overflow:hidden;
  background:var(--ink);
}

#rechargePage .rech-banner-bg-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

#rechargePage .rech-amount-banner::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(120deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.25) 100%);
}

#rechargePage .rech-banner-overlay{
  position:relative;
  z-index:2;
  height:100%;
  padding:18px 18px 0;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}

#rechargePage .rech-banner-label{
  font-size:16px;
  font-weight:700;
  color:#ffffff;
  margin-bottom:18px;
}

#rechargePage .rech-banner-input-row{
  display:flex;
  align-items:center;
  gap:8px;
  padding-bottom:8px;
  border-bottom:1.5px solid rgba(255,255,255,.55);
  max-width:75%;
}

#rechargePage .rech-banner-currency{
  color:#ffffff;
  font-size:16px;
  font-weight:700;
}

#rechargePage #customAmount{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:#ffffff;
  font-size:14px;
  font-weight:600;
}

#rechargePage #customAmount::placeholder{ color:rgba(255,255,255,.65); }

#rechargePage #customAmount::-webkit-inner-spin-button,
#rechargePage #customAmount::-webkit-outer-spin-button{
  -webkit-appearance:none;
}


/* ── DIVIDER LABELS — plain centered muted text, like "Quickly select amount" ── */
#rechargePage .rech-divider-label{
  text-align:center;
  color:var(--muted);
  font-size:12.5px;
  font-weight:500;
  margin:18px 0 10px;
}


/* ── CARDS ── */
#rechargePage .rech-card{
  padding:14px;
  border-radius:14px;
  background:#ffffff;
}


/* ── QUICK AMOUNTS — grid, wraps to 2 rows ── */
#rechargePage .quick-amount-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:8px;
}

#rechargePage .amount-option{
  height:40px;
  padding:0 4px;
  border:1.5px solid var(--line);
  border-radius:8px;
  background:var(--panel);
  color:var(--ink);
  font-size:12.5px;
  font-weight:600;
  cursor:pointer;
  transition:.15s ease;
}

#rechargePage .amount-option:hover{ border-color:var(--ink); }

#rechargePage .amount-option.active,
#rechargePage .amount-option.selected{
  border-color:transparent;
  background:linear-gradient(90deg, var(--ink) 0%, #123420 100%);
  color:#ffffff;
}


/* ── PAYMENT CHANNELS — rows with icon, name, checkmark ── */
#rechargePage .channel-select-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

#rechargePage .channel-card{
  position:relative;
  width:100%;
  min-height:52px;
  padding:0 14px;
  display:flex;
  align-items:center;
  gap:12px;
  border:1.5px solid var(--line);
  border-radius:10px;
  background:var(--panel);
  cursor:pointer;
  transition:.15s ease;
}

#rechargePage .channel-card-icon{
  flex-shrink:0;
  width:30px;
  height:30px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(17,17,17,.06);
  color:var(--ink);
  font-size:13px;
}

#rechargePage .channel-card-info{
  flex:1;
  min-width:0;
}

#rechargePage .channel-card-name{
  color:var(--ink);
  font-size:13.5px;
  font-weight:600;
}

#rechargePage .channel-card-check{
  flex-shrink:0;
  width:20px;
  height:20px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#ffffff;
  font-size:10px;
  background:transparent;
  opacity:0;
  transition:.15s ease;
}

/* ── SELECTED — black-to-neon gradient, matching the app's confirm buttons ── */
#rechargePage .channel-card.selected{
  border-color:transparent;
  background:linear-gradient(90deg, var(--ink) 0%, #123420 100%);
}

#rechargePage .channel-card.selected .channel-card-icon{
  background:rgba(255,255,255,.12);
  color:var(--neon);
}

#rechargePage .channel-card.selected .channel-card-name{
  color:#ffffff;
}

#rechargePage .channel-card.selected .channel-card-check{
  opacity:1;
  background:var(--neon);
  color:#06210F;
}


/* ── CONFIRM BUTTON — small pill, black-to-neon gradient ── */
#rechargePage .deposit-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:fit-content;
  min-width:130px;
  height:38px;
  margin:18px auto 0;
  padding:0 26px;
  border:0;
  border-radius:999px;
  background:linear-gradient(90deg, var(--ink) 0%, #123420 60%, var(--neon) 130%);
  color:#ffffff;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

#rechargePage .deposit-btn:hover{ filter:brightness(1.1); }
#rechargePage .deposit-btn:active{ transform:scale(.98); }

#rechargePage .deposit-btn:disabled{
  background:#D5D5D5;
  color:#8F8F8F;
  cursor:not-allowed;
}


/* ── PENDING-RECHARGE LINK ── */
#rechargePage .rech-pending-link{
  display:block;
  width:100%;
  margin:14px 0 0;
  padding:0;
  border:none;
  background:none;
  text-align:center;
  color:var(--muted);
  font-size:12px;
  font-family:inherit;
  text-decoration:underline;
  cursor:pointer;
}


/* ── INSTRUCTIONS — flush on the page background, no card box ── */
#rechargePage .rech-info-box{
  margin:22px 2px 0;
}

#rechargePage .rech-instruction-row{
  display:flex;
  gap:6px;
  margin-bottom:14px;
}

#rechargePage .rech-instruction-row:last-child{ margin-bottom:0; }

#rechargePage .rech-instruction-row span{
  flex-shrink:0;
  color:var(--ink);
  font-size:12px;
  font-weight:600;
}

#rechargePage .rech-instruction-row p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.55;
}


/* ── HIDDEN COMPATIBILITY ── */
#rechargePage #manualTransferCard,
#rechargePage #rechargeRulesBox{
  display:none!important;
}


/* ── SCROLLBAR ── */
#rechargePage::-webkit-scrollbar{ width:3px }
#rechargePage::-webkit-scrollbar-thumb{
  background:rgba(17,17,17,.25);
  border-radius:99px;
}


/* ── SMALL PHONES ── */
@media(max-width:360px){
  #rechargePage .recharge-page-container{ padding-left:11px; padding-right:11px; }
  #rechargePage .amount-option{ font-size:11px; height:36px; }
  #rechargePage .rech-amount-banner{ height:116px; }
}



/* =========================================================
   PAYMENT LOADER — small, dim yellow / black / white
   ========================================================= */

.gle-payment-loader-popup{
  width:min(260px, calc(100vw - 60px)) !important;
  padding:0 !important;
  border-radius:20px !important;
  overflow:hidden !important;
  background:#ffffff !important;
  border:1px solid #ECECEC !important;
  box-shadow:0 20px 50px rgba(17,17,17,.22) !important;
}

.gle-payment-loader{
  padding:26px 20px 20px;
  text-align:center;
  color:#111111;
}

.gle-loader-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-bottom:18px;
  color:rgba(17,17,17,.4);
  font-size:8.5px;
  font-weight:700;
  letter-spacing:1px;
}

.gle-loader-brand-dot{
  width:4px;
  height:4px;
  border-radius:50%;
  background:#D9A900;
}

.gle-loader-orbit{
  width:62px;
  height:62px;
  margin:0 auto 16px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

.gle-loader-orbit::before{
  content:"";
  position:absolute;
  inset:3px;
  border-radius:50%;
  border:1px solid #F2E7BF;
}

.gle-loader-orbit::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  border:2px solid transparent;
  border-top-color:#D9A900;
  border-right-color:#D9A900;
  animation:recharge-loader-spin 1s linear infinite;
}

.gle-loader-core{
  width:38px;
  height:38px;
  border-radius:50%;
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#111111;
}

.gle-loader-core-icon{
  color:#D9A900;
  font-size:13px;
}

.gle-loader-title{
  margin:0 0 5px;
  color:#111111;
  font-size:14px;
  font-weight:800;
}

.gle-loader-subtitle{
  max-width:210px;
  margin:0 auto;
  color:rgba(17,17,17,.55);
  font-size:10.5px;
  line-height:1.5;
}

.gle-loader-dots{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  margin-top:14px;
}

.gle-loader-dots span{
  width:5px;
  height:5px;
  border-radius:50%;
  background:#D9A900;
  animation:recharge-loader-dot 1.2s ease-in-out infinite;
}

.gle-loader-dots span:nth-child(2){ animation-delay:.15s; }
.gle-loader-dots span:nth-child(3){ animation-delay:.3s; }

.gle-loader-security{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  margin-top:16px;
  padding-top:12px;
  border-top:1px solid #F1F1F1;
  color:rgba(17,17,17,.4);
  font-size:9px;
}

.gle-loader-security i{ color:#D9A900; 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(-2px); }
}





: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);
}


:root {
  --ink: #111111;
  --ink-soft: #2A2A2A;
  --white: #FFFFFF;
  --neon: #39FF6A;
  --neon-soft: rgba(57, 255, 106, .25);
}

.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999998;
  box-sizing: border-box;
  padding: 20px;
}

/* ── CARD — small footprint, perfectly centered ── */
.mx-unique-modal {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  box-sizing: border-box;
  animation: mx-pop-in 0.25s ease-out;
}

.mx-modal-inner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.28);
}

@keyframes mx-pop-in {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* ── SLIM BANNER — swap the background-image, "NOTIFY" sits on top ── */
.mx-banner {
  position: relative;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('mod.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
}

.mx-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55));
}

.mx-banner-text {
  position: relative;
  z-index: 1;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}

/* ── LOGO BADGE — overlaps the banner's bottom edge, centered ── */
.mx-logo-badge {
  position: relative;
  width: 52px;
  height: 52px;
  margin: -26px auto 0;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--white);
  box-shadow: 0 4px 14px rgba(17, 17, 17, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.mx-logo-text {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--ink);
}

/* ── BODY ── */
.mx-modal-body {
  padding: 12px 20px 20px;
}

/* Only this list scrolls — keeps the card itself small/fixed */
.mx-notice-list {
  max-height: 190px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 16px;
  padding-right: 4px;
}

.mx-notice-item {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.mx-notice-item:last-child {
  margin-bottom: 0;
}

/* ── TELEGRAM BUTTON — neon green pill ── */
.mx-telegram-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--neon);
  color: #06210F;
  font-weight: 700;
  font-size: 10px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 12px;
  transition: filter .2s, transform .15s;
}

.mx-telegram-btn svg { flex-shrink: 0; width: 13px; height: 13px; }

.mx-telegram-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.mx-telegram-btn:hover { filter: brightness(1.05); }
.mx-telegram-btn:active { transform: scale(0.97); }

/* ── OK BUTTON — neon-green-to-black gradient pill ── */
.mx-action-btn {
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, filter 0.2s;
  font-family: inherit;
  border: none;
  color: var(--white);
}

.mx-ok-row {
  display: flex;
  justify-content: center;
}

.mx-action-btn--ok {
  background: linear-gradient(90deg, var(--neon), var(--ink) 92%);
}

.mx-action-btn:hover { filter: brightness(1.1); }
.mx-action-btn:active { transform: scale(0.97); }

@media (max-width: 380px) {
  .mx-banner-text { font-size: 26px; letter-spacing: 2px; }
}

#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;
  }
}



:root {
  --ink: #111111;
  --ink-muted: rgba(17, 17, 17, 0.55);
  --white: #FFFFFF;
  --line: #EFEFEF;
  --neon: #39FF6A;
  --neon-soft: rgba(57, 255, 106, .25);
}

.invite-page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 999;
  display: none;
  flex-direction: column;
  box-sizing: border-box;
  color: var(--white);
  padding-bottom: 40px;

  /* 🔧 BACKGROUND IMAGE — replace the url() with your own image path */
  background-image: url('for.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.referral-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 0 32px 0;
  box-sizing: border-box;
}

/* BANNER — stays as its own image, sits above the frosted content */
.invite-banner-photo {
  width: 100%;
  height: 190px;
  overflow: hidden;
}
.invite-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CODE / LINK CARD — frosted glass, green-to-black tint, edge to edge */
.invite-code-card {
  margin: 14px 0 14px;
  background: linear-gradient(135deg, rgba(57,255,106,.35) 0%, rgba(10,10,10,.55) 140%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(255,255,255,.15);
  border-radius: 0;
  padding: 18px 16px 6px;
}

.invite-code-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.invite-code-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.invite-code-value {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.invite-code-link {
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  padding: 0;
}

.invite-code-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
}

.invite-copy-btn {
  flex-shrink: 0;
  border: none;
  background: rgba(10,10,10,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #39FF6A;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(57,255,106,.25);
  transition: box-shadow .15s, transform .1s;
}
.invite-copy-btn:hover { box-shadow: 0 0 0 5px rgba(57,255,106,.25); }
.invite-copy-btn:active { transform: scale(.96); }

/* MY TEAM BUTTON — frosted gradient pill */
.invite-myteam-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(57,255,106,.55) 0%, rgba(10,10,10,.6) 100%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.15);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 0;
  cursor: pointer;
  transition: filter .15s, transform .1s;
}
.invite-myteam-btn:hover { filter: brightness(1.1); }
.invite-myteam-btn:active { transform: scale(.98); }

/* COMMISSION TABLE — frosted glass, edge to edge */
.invite-table {
  margin: 0 0 14px;
  background: rgba(10,10,10,.45);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  overflow: hidden;
}

.invite-table-head,
.invite-table-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: center;
  padding: 14px 16px;
}

.invite-table-head span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  text-align: center;
}
.invite-table-head span:first-child { text-align: left; }

.invite-table-row {
  border-top: 1px solid rgba(255,255,255,.1);
}
.invite-table-row span {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
}
.invite-table-row span:first-child { text-align: left; }

/* STATS — two frosted glass boxes, edge to edge */
.invite-stats-row {
  display: flex;
  gap: 2px;
  margin: 0 0 16px;
}

.invite-stats-box {
  flex: 1;
  background: rgba(10,10,10,.45);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 0;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.invite-stats-num {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.invite-stats-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
}

/* RULE — frosted glass, edge to edge */
.invite-rule-card {
  margin: 0;
  padding: 16px;
  background: rgba(10,10,10,.45);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 0;
}

.invite-rule-card p {
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,.75);
  margin: 0 0 10px;
}
.invite-rule-card p:last-child { margin-bottom: 0; }

.invite-rule-card strong {
  color: #ffffff;
  font-weight: 700;
}

/* =========================================================
   TEAM PAGE — plain white, matching reference exactly
   ========================================================= */

:root {
  --team-ink: #111111;
  --team-muted: #9A9A9A;
  --team-line: #ECECEC;
  --team-bg: #FAFAFA;
}

#earningsPage {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--team-bg);
  color: var(--team-ink);
  font-family: 'Inter', sans-serif;
  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: 700;
  color: var(--team-ink);
}
.back-btn-white {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--team-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s ease;
}
.back-btn-white:active { transform: translateY(-50%) scale(.92); }

/* CONTAINER */
.team-page-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 0 130px;
  box-sizing: border-box;
}

/* LEVEL TABS — top figure is total deposit, label below is member count */
.team-level-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--team-line);
  background: #ffffff;
}
.team-tab-btn {
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: var(--team-muted);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  position: relative;
  transition: color .15s ease;
}
.team-tab-btn strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--team-ink);
}
.team-tab-btn span {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--team-muted);
}
.team-tab-btn.active span { color: var(--team-ink); }
.team-tab-btn.active::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 2px;
  background: var(--team-ink);
}
.team-tab-btn:active { opacity: .7; }

/* TEAM LIST */
.team-list-rows {
  display: flex;
  flex-direction: column;
  padding: 0 15px;
  background: #ffffff;
}

/* MEMBER ROW — flat, hairline divider, no card box/badge/avatar */
.team-list-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--team-line);
}
.team-list-row:last-child { border-bottom: none; }

.team-list-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.team-list-number {
  font-size: 15px;
  font-weight: 700;
  color: var(--team-ink);
}

.team-list-amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--team-ink);
  flex-shrink: 0;
}

.team-row-time {
  font-size: 12px;
  color: var(--team-muted);
  margin-top: 4px;
}

/* EMPTY STATE — open carton box + soft shadow, "No more data" */
.team-list-nodata {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 20px 100px;
  text-align: center;
}

.team-box-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}

.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: 13.5px;
  font-weight: 400;
  color: #B0B0B0;
}

/* LOADING / ERROR STATES */
.team-list-empty-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 22px;
  background: #ffffff;
  border: 1px solid var(--team-line);
  border-radius: 18px;
  margin: 0 15px;
}
.team-list-empty-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F2F2F2;
  color: var(--team-ink);
  font-size: 20px;
}
.team-error-state .team-list-empty-icon {
  background: #FDEBEC;
  color: #E11D48;
}
.team-list-empty-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--team-ink);
  margin: 0 0 6px;
}
.team-list-empty-sub {
  font-size: 11.5px;
  color: var(--team-muted);
  line-height: 1.55;
  max-width: 250px;
  margin: 0;
}
.team-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 46px 0;
  color: var(--team-muted);
  font-size: 12px;
  font-weight: 600;
}
.team-loading-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F2F2F2;
  color: var(--team-ink);
}



/* ============ WITHDRAWAL — tight ash/white layout, gradient button ============ */
:root{
  --wd-ink:#111111;
  --wd-muted:#6B6B6B;
  --wd-faint:#9A9A9A;
  --wd-line:#E9E9E9;
  --wd-ash:#F3F3F3;
  --wd-neon-a:#39FF88;
  --wd-neon-b:#00C46A;
  --wd-amber:#D97706;
}

.withdraw-page{
  position:relative;
  min-height:100vh;
  width:100%;
  background:#ffffff;
  color:var(--wd-ink);
  font-family:'Inter',sans-serif;
  overflow-x:hidden;
  box-sizing:border-box;
  padding-bottom:28px;
}
.withdraw-page *{ box-sizing:border-box; }

/* HEADER BAR — small, flat */
.wd-header-bar{
  position:sticky;
  top:0;
  z-index:5;
  display:flex;
  align-items:center;
  gap:10px;
  height:50px;
  padding:0 14px;
  background:#ffffff;
  border-bottom:1px solid var(--wd-line);
}
.wd-back-btn{
  flex-shrink:0;
  width:26px;
  height:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  background:transparent;
  color:var(--wd-ink);
  cursor:pointer;
}
.wd-header-title{
  flex:1;
  margin:0;
  font-size:15px;
  font-weight:700;
  color:var(--wd-ink);
  text-align:left;
}
.wd-info-btn{
  flex-shrink:0;
  width:24px;
  height:24px;
  border-radius:50%;
  border:none;
  background:linear-gradient(135deg, #000 0%, var(--wd-neon-b) 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

/* CONTAINER */
.wd-container{
  width:100%;
  max-width:480px;
  margin:0 auto;
  padding:0;
  display:flex;
  flex-direction:column;
}

/* BALANCE BANNER — small, ash */
.wd-balance-banner{
  position:relative;
  width:100%;
  padding:14px 16px;
  background:var(--wd-ash);
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
}
.wd-balance-overlay{ display:flex; flex-direction:column; }
.wd-balance-value{
  font-size:20px;
  font-weight:800;
  color:var(--wd-ink);
}
.wd-balance-label{
  font-size:11.5px;
  font-weight:500;
  color:var(--wd-muted);
  margin-top:2px;
}

.wd-brand-logo{
  flex-shrink:0;
  width:32px;
  height:32px;
  border-radius:50%;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.wd-brand-logo-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* SECTIONS */
.wd-section{
  padding:0 16px;
  margin-bottom:14px;
}
.wd-section-title-plain{
  margin:0 0 8px;
  font-size:13px;
  font-weight:700;
  color:var(--wd-ink);
}
.wd-section-title{
  margin:0 0 8px;
  font-size:13px;
  font-weight:700;
  color:var(--wd-ink);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.wd-section-title::after{
  content:"Tax: " attr(data-tax) "%";
  font-size:12px;
  font-weight:700;
  color:var(--wd-ink);
}

/* WITHDRAWAL ACCOUNT ROW — small, ash, no longer a "channel picker" */
.wd-select-row{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 13px;
  border:1px solid var(--wd-line);
  border-radius:8px;
  background:var(--wd-ash);
  cursor:pointer;
  font-family:inherit;
}
.wd-select-text{
  flex:1;
  text-align:left;
  font-size:13px;
  font-weight:500;
  color:var(--wd-ink);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.wd-select-chevron{
  flex:0 0 auto;
  color:var(--wd-faint);
}

/* AMOUNT ROW — small, ash */
.wd-amount-row{
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 13px;
  border:1px solid var(--wd-line);
  border-radius:8px;
  background:var(--wd-ash);
}
.wd-currency{
  color:var(--wd-ink);
  font-size:14px;
  font-weight:600;
}
.wd-input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  font-family:inherit;
  font-size:13.5px;
  font-weight:500;
  color:var(--wd-ink);
}
.wd-input::placeholder{ color:var(--wd-faint); }
.wd-input::-webkit-inner-spin-button,
.wd-input::-webkit-outer-spin-button{ -webkit-appearance:none; }

/* META ROW */
.wd-meta-row{
  padding:0 16px;
  font-size:12.5px;
  color:var(--wd-ink);
  margin-bottom:4px;
}
.wd-meta-row strong{ font-weight:700; }

/* MINIMUM NOTE */
.wd-min-note{
  display:block;
  text-align:right;
  padding:0 16px;
  font-size:12px;
  font-weight:600;
  color:var(--wd-amber);
  margin-bottom:16px;
}

/* CONFIRM — black-to-green gradient, small/tight */
.wd-action{
  padding:0 16px;
  margin-bottom:22px;
}
.wd-confirm-btn{
  width:100%;
  height:46px;
  border:none;
  border-radius:8px;
  background:linear-gradient(115deg, #000000 0%, #0B3B24 30%, var(--wd-neon-b) 70%, var(--wd-neon-a) 100%);
  color:#ffffff;
  font-family:inherit;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(0,196,106,0.28);
  transition:transform .1s ease, box-shadow .15s ease;
}
.wd-confirm-btn:active{ transform:scale(.98); }
.wd-confirm-btn:disabled{
  background:#D8D8D8;
  color:#9A9A9A;
  box-shadow:none;
  cursor:not-allowed;
}

/* INSTRUCTIONS — small text, tight spacing */
.wd-instructions-block{
  padding:0 16px;
}
.wd-instructions-title{
  display:none;
}
.wd-instructions{
  margin:0;
  padding-left:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  color:var(--wd-muted);
  font-size:11.5px;
  line-height:1.5;
}
.wd-instructions li{ padding-left:2px; }
.wd-instructions-footer{
  display:none;
}


:root {
  --ink: #111111;
  --ink-muted: rgba(17, 17, 17, 0.55);
  --ink-faint: rgba(17, 17, 17, 0.4);
  --line: #ECECEC;

  --in: #16A34A;
  --out: #E11D48;
  --pending: #D9A900;

  --neon: #39FF6A;
}

.bank-page {
  position: relative;
  background: #ffffff;
  min-height: 100vh;
  width: 100%;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ── HEADER — plain, no blur/dot texture ── */
.records-hero {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  padding: 14px 16px 0;
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
}

.records-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
}

.records-back-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.records-hero-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  text-align: center;
}

/* ── TABS — full-width gradient bar, edge-to-edge of the page,
   breaking out of .records-hero's side padding ── */
.records-tab-bar {
  display: flex;
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(90deg, var(--ink) 0%, #123420 55%, var(--neon) 130%);
}

.records-tab-btn {
  flex: 1;
  border: none;
  background: none;
  padding: 14px 4px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
  cursor: pointer;
  position: relative;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}

.records-tab-btn.active {
  color: #ffffff;
  font-weight: 800;
  border-bottom-color: #06210F;
}

/* ── CONTENT ── */
.records-content-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 4px 16px 100px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* ── LEDGER LIST — plain rows, no card background ── */
#recordsContainer {
  display: flex;
  flex-direction: column;
}

.record-card {
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.record-card:last-child {
  border-bottom: none;
}

.record-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* type label — PLAIN TEXT ONLY. No background, no border, no
   box-shadow, no filter/blur of any kind — just the text color
   itself carries the status. */
.record-type-label {
  font-size: 14px;
  font-weight: 600;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: inline;
}

.record-type-label.status-pending  { color: var(--pending); }
.record-type-label.status-approved { color: var(--in); }
.record-type-label.status-failed   { color: var(--out); }

.record-date {
  font-size: 12px;
  color: var(--ink-faint);
}

/* order/reference number — kept, shown small and muted */
.record-ref {
  font-size: 11px;
  color: var(--ink-faint);
}

.record-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.record-type-amount {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* amount received (withdrawals only) — kept, muted, right-aligned */
.record-received {
  font-size: 11.5px;
  color: var(--ink-faint);
  white-space: nowrap;
}

.records-empty-text {
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
  margin-top: 40px;
}

@media (max-width: 380px) {
  .record-card { padding: 14px 0; }
  .records-tab-btn { font-size: 12.5px; padding: 12px 2px; }
}

/* ================= 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;
}

}





:root {
  --fs-bg: #f4f5f7;
  --fs-card-bg: #ffffff;
  --fs-green: #00c853;
  --fs-green-soft: #e8fbef;
  --fs-black: #111827;
  --fs-ash: #eef0f3;
  --fs-ash-border: #e5e7eb;
  --fs-gray: #6b7280;
}

.investment-page {
  position: relative;
  background: var(--fs-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', sans-serif;
  color: var(--fs-black);
}

/* Header */
.investment-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  z-index: 1000;
  border-bottom: 1px solid var(--fs-ash-border);
  box-sizing: border-box;
}

.investment-header-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.investment-logo-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fs-green-soft);
  color: var(--fs-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.investment-header-center h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--fs-black);
  letter-spacing: 0.2px;
}

.investment-back-btn {
  position: absolute;
  left: 12px;
  background: transparent;
  border: none;
  color: var(--fs-black);
  cursor: pointer;
  font-size: 15px;
}

.card-wrapper {
  position: relative;
  flex: 1;
  padding: calc(48px + 14px) 16px 100px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  overflow-x: hidden;
}

/* TABS */
.inv-tab-row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.inv-tab-btn {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--fs-ash-border);
  border-radius: 20px;
  padding: 9px 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fs-gray);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Inter', sans-serif;
}

.inv-tab-btn.active {
  background: var(--fs-black);
  border-color: var(--fs-black);
  color: #ffffff;
}

/* Empty State */
.inv-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--fs-ash-border);
  margin-top: 4px;
  gap: 10px;
}

.inv-empty-icon {
  font-size: 28px;
  color: var(--fs-gray);
}

.inv-empty-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--fs-gray);
}

/* Product Card */
.fs-product-card {
  background: var(--fs-card-bg);
  border-radius: 16px;
  border: 1px solid var(--fs-ash-border);
  padding: 16px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fs-card-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.fs-card-id-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fs-card-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--fs-green-soft);
  color: var(--fs-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.fs-plan-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--fs-black);
}

.fs-cycle-text {
  font-size: 11.5px;
  color: var(--fs-gray);
  font-weight: 500;
  margin-top: 2px;
}

.fs-status-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.fs-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fs-status-badge.status-active .fs-status-dot { background: var(--fs-green); }
.fs-status-badge.status-active { color: var(--fs-green); }

.fs-status-badge.status-completed .fs-status-dot { background: var(--fs-gray); }
.fs-status-badge.status-completed { color: var(--fs-gray); }

.fs-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.fs-metric-box {
  background: var(--fs-ash);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.fs-metric-label {
  font-size: 10.5px;
  color: var(--fs-gray);
  font-weight: 600;
  margin-bottom: 4px;
}

.fs-metric-val {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--fs-black);
}

.fs-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2px;
  border-top: 1px solid var(--fs-ash-border);
  padding-top: 12px;
}

.fs-date-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--fs-gray);
  font-weight: 500;
}

.fs-date-group i {
  color: var(--fs-gray);
  font-size: 11px;
}

.fs-countdown-row {
  font-size: 12px;
  color: var(--fs-black);
  font-weight: 700;
}

.fs-countdown-row.completed-text {
  color: var(--fs-gray);
  font-weight: 600;
}




.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-page {
  --ab-neon: #22c55e;
  --ab-neon-dark: #16a34a;
  --ab-ink: #111111;
  --ab-ink-muted: #6B6B6B;
  --ab-line: #ECECEC;
  --ab-panel: #ffffff;
  --ab-bg: #F5F6F7;

  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  z-index: 500;
  background: var(--ab-bg);
  color: var(--ab-ink);
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}
.about-page * { box-sizing: border-box; }

/* ── HEADER ── */
.ab-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
  background: var(--ab-panel);
  border-bottom: 1px solid var(--ab-line);
}
.ab-back-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #F1F5F3;
  color: var(--ab-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
}
.ab-topbar-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ab-ink);
}

/* ── CONTAINER ── */
.ab-container {
  max-width: 460px;
  margin: 0 auto;
  padding: 16px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── HERO ── */
.ab-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ab-hero-tile {
  height: 130px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ab-line);
  background: #e9ebec;
}
.ab-hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── CARD ── */
.ab-card {
  background: var(--ab-panel);
  border: 1px solid var(--ab-line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.ab-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--ab-neon-dark);
}
.ab-bullet {
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--ab-neon);
  display: inline-block;
}

.ab-heading {
  margin: 8px 0 4px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.4px;
  background: linear-gradient(90deg, #0a0a0a, var(--ab-neon-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ab-lede {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ab-ink-muted);
  line-height: 1.5;
}

.ab-divider {
  height: 1px;
  background: var(--ab-line);
  margin: 4px 0 14px;
}

.ab-body {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.65;
  color: #374151;
}
.ab-body:last-of-type { margin-bottom: 16px; }

.ab-loc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--ab-bg);
  border-radius: 12px;
}
.ab-loc-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0a0a0a, var(--ab-neon-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.ab-loc-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--ab-ink-muted);
}
.ab-loc-value {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ab-ink);
}

/* ── LIVE DASHBOARD ── */
.ab-dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ab-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ab-neon-dark);
}
.ab-live-dot span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ab-neon);
  animation: abPulse 1.4s ease-in-out infinite;
}
@keyframes abPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}

.ab-dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ab-dash-stat {
  background: var(--ab-bg);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ab-dash-num {
  font-size: 15px;
  font-weight: 900;
  color: var(--ab-ink);
  font-variant-numeric: tabular-nums;
}
.ab-dash-lbl {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--ab-ink-muted);
  text-transform: uppercase;
  letter-spacing: .3px;
}


/* ── FLOATING LIQUID-GLASS ALERTS ── */
.ab-alert-stack {
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  pointer-events: none;
}

.ab-glass-toast {
  position: relative;
  width: 100%;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(22px) saturate(200%);
  -webkit-backdrop-filter: blur(22px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 10px 30px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -1px 6px rgba(255,255,255,.25);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-14px) scale(.94);
  transition: opacity .3s cubic-bezier(.34,1.56,.64,1), transform .3s cubic-bezier(.34,1.56,.64,1);
}
.ab-glass-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* diagonal glass sheen */
.ab-glass-toast::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -20%;
  width: 60%;
  height: 220%;
  background: linear-gradient(120deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 60%);
  transform: rotate(20deg);
  pointer-events: none;
}

.ab-glass-ico {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  color: #fff;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.5), 0 3px 8px rgba(0,0,0,.18);
}
.ab-glass-text {
  position: relative;
  z-index: 1;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ab-ink);
  line-height: 1.35;
}
.ab-glass-text span {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(31,41,55,.75);
  margin-top: 1px;
}

/* alert color variants — more of them, richer gradients */
.ab-glass-toast.v-green  .ab-glass-ico { background: linear-gradient(135deg,#16a34a,#4ade80); }
.ab-glass-toast.v-black  .ab-glass-ico { background: linear-gradient(135deg,#0a0a0a,#4b5563); }
.ab-glass-toast.v-amber  .ab-glass-ico { background: linear-gradient(135deg,#d97706,#fbbf24); }
.ab-glass-toast.v-blue   .ab-glass-ico { background: linear-gradient(135deg,#1d4ed8,#60a5fa); }
.ab-glass-toast.v-purple .ab-glass-ico { background: linear-gradient(135deg,#7e22ce,#c084fc); }
.ab-glass-toast.v-pink   .ab-glass-ico { background: linear-gradient(135deg,#db2777,#f472b6); }
.ab-glass-toast.v-teal   .ab-glass-ico { background: linear-gradient(135deg,#0f766e,#2dd4bf); }
.ab-glass-toast.v-red    .ab-glass-ico { background: linear-gradient(135deg,#b91c1c,#f87171); }
@media (max-width: 380px) {
  .ab-hero-tile { height: 105px; }
  .ab-heading { font-size: 21px; }
}



.ppx-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3.5px solid rgba(128, 128, 128, .25);
  border-top-color: #30d158;
  animation: ppxSpin .8s linear infinite;
}
@keyframes ppxSpin { to { transform: rotate(360deg); } }


.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; }

:root {
  --ink: #0A0A0A;
  --ink-muted: #6B6B6B;
  --white: #FFFFFF;
  --page-bg: #F0F0F0;
  --neon: #39FF6A;
  --neon-soft: rgba(57, 255, 106, .18);
}

.ppx-page,
.ppx-page * {
  box-sizing: border-box;
}

.ppx-page {
  background: var(--page-bg);
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding-bottom: 90px;
}

/* ── HEADER — page title left, your brand badge on the right ── */
.ppx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  background: var(--page-bg);
}

.ppx-header-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}

.ppx-brand-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  border: 1.5px solid var(--white);
  box-shadow: 0 0 0 3px var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ppx-brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ── HERO BANNER — landscape rectangle, stats sit right on top of it ── */
.ppx-hero {
  position: relative;
  margin: 0 6px 18px;
  border-radius: 16px;
  overflow: hidden;
}

.ppx-hero-img {
  width: 100%;
  aspect-ratio: 3.4 / 1;
  height: auto;
  max-height: 115px;
  object-fit: cover;
  display: block;
  background: var(--ink);
}

.ppx-stats {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.ppx-stat--left  { text-align: left; }
.ppx-stat--right { text-align: right; }

.ppx-stat-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

.ppx-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
  margin-top: 1px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

/* ── LIST — no side padding, cards run edge-to-edge ── */
.ppx-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 0;
}

/* ── CARD — flatter/wider, touches screen edges, no rounded sides ── */
.ppx-item {
  width: 100%;
  background: var(--white);
  border-radius: 0;
  padding: 12px 16px;
  box-shadow: 0 2px 10px rgba(17, 17, 17, .06);
}

.ppx-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  text-align: center;
}

.ppx-item-media {
  width: calc(100% + 32px);
  margin: 0 -16px 8px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ppx-item-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.ppx-item-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ppx-item-price {
  font-size: 17px;
  font-weight: 800;
  color: #0A1F44;
}

/* ── BUY BUTTON — black pill with neon-green glow ── */
.ppx-buy-btn {
  flex-shrink: 0;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 0 0 0 var(--neon-soft);
  transition: box-shadow .15s, transform .1s;
}

.ppx-buy-btn:hover  { box-shadow: 0 0 0 5px var(--neon-soft); }
.ppx-buy-btn:active { transform: scale(.97); }

.ppx-buy-btn:disabled {
  background: #D5D5D5;
  color: #8F8F8F;
  cursor: not-allowed;
  box-shadow: none;
}

.ppx-item-divider {
  height: 1px;
  background: #ECECEC;
  margin-bottom: 8px;
}

.ppx-item-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ppx-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
}

.ppx-item-row strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.ppx-loader,
.ppx-error {
  text-align: center;
  padding: 30px 16px;
  color: var(--ink-muted);
  font-size: 14px;
}

@media (max-width: 380px) {
  .ppx-header-title { font-size: 22px; }
  .ppx-item-media { height: 70px; }
  .ppx-item-row, .ppx-item-row strong { font-size: 11px; }
  .ppx-buy-btn { padding: 7px 18px; font-size: 11.5px; }
}


/* Admin-disabled product: whole card blurred, dimmed, non-interactive
   except still readable at a glance */
.ppx-item-disabled {
  filter: blur(1.5px);
  opacity: 0.55;
  position: relative;
  pointer-events: none; /* card itself becomes non-clickable */
}

.ppx-item-disabled::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: inherit;
}

/* Buy button in its "unavailable" state — ash grey, no hover effect */
.ppx-buy-btn-unavailable {
  background: #9ca3af !important;
  color: #f3f4f6 !important;
  cursor: not-allowed !important;
  opacity: 1 !important; /* card blur already dims it; button itself stays legible */
}
.ppx-buy-btn-unavailable:hover {
  background: #9ca3af !important;
}

/* 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; }
}