/* ================= GENERAL RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}




:root {
  --brand-blue: #0032A0;
  --brand-blue-bright: #3E7BFF;
  --brand-blue-deep: #001F66;

  --page-bg: #ffffff;
  --line: #E4EAF6;

  --ink: #0B0F19;
  --ink-muted: rgba(11, 15, 25, 0.55);
  --ink-faint: rgba(11, 15, 25, 0.34);

  --weak: #E11D48;
  --medium: #F59E0B;
  --strong: #16A34A;
}

.honda-auth-container {
  display: none;
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  background: var(--page-bg);
  overflow-y: auto;
  z-index: 9999;
}

.honda-auth-container.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-page-inner {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   HERO BANNER — white + Finland blue gradient
   ============================================================ */
.auth-hero-banner {
  position: relative;
  width: 100%;
  padding: 18px 20px 70px;
  box-sizing: border-box;
  background: linear-gradient(150deg, var(--brand-blue-bright) 0%, var(--brand-blue) 55%, var(--brand-blue-deep) 100%);
  overflow: hidden;
}

.auth-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(circle at 30% 10%, black 0%, transparent 70%);
  mask-image: radial-gradient(circle at 30% 10%, black 0%, transparent 70%);
}

.auth-hero-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.auth-hero-back,
.auth-hero-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.auth-hero-back:active,
.auth-hero-icon-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.24);
}

.auth-hero-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-hero-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-hero-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.auth-hero-badge i {
  font-size: 21px;
  color: #ffffff;
}

.auth-hero-center h1 {
  font-size: 25px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.auth-hero-center p {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

/* ============================================================
   FORM CARD — white, overlapping the banner with a big curved
   top edge, matching the screenshot's "rising card" look
   ============================================================ */
.auth-card {
  position: relative;
  z-index: 3;
  flex: 1;
  width: 100%;
  margin-top: -46px;
  padding: 30px 22px 32px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -14px 40px rgba(0, 50, 160, 0.10);
}

.auth-card-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 22px 0;
  letter-spacing: -0.2px;
}

/* ===== INPUTS ===== */
.fieldmark-input-group {
  margin-bottom: 16px;
}

.fieldmark-input-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 7px;
}

.optional-tag {
  opacity: 0.6;
  font-weight: 400;
}

.fieldmark-field-box {
  display: flex;
  align-items: center;
  background: #F7FAFF;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.fieldmark-field-box:focus-within {
  border-color: var(--brand-blue-bright);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(62, 123, 255, 0.14);
}

.fieldmark-field-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
}

.fieldmark-field-box input::placeholder {
  color: var(--ink-faint);
}

.field-icon {
  color: var(--brand-blue-bright);
  font-size: 13px;
  flex-shrink: 0;
}

.eye-icon {
  cursor: pointer;
  color: var(--ink-faint);
  font-size: 15px;
  flex-shrink: 0;
}

.eye-icon:hover {
  color: var(--brand-blue-bright);
}

/* ===== PASSWORD STRENGTH METER ===== */
.pw-strength-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 0 2px;
}

.pw-strength-track {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.pw-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--weak);
  transition: width 0.25s ease, background 0.25s ease;
}

.pw-strength-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
  min-width: 52px;
  text-align: right;
}

/* ===== CAPTCHA ===== */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

#captchaCanvas {
  border-radius: 12px;
  border: 1.5px dashed #A9C2EE;
  background: #F7FAFF;
  flex: 1;
  min-width: 0;
}

.captcha-refresh-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--brand-blue-bright), var(--brand-blue));
  border: none;
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px -6px rgba(0, 50, 160, 0.4);
  transition: transform 0.5s ease, filter 0.2s ease;
}

.captcha-refresh-btn:hover { filter: brightness(1.08); }
.captcha-refresh-btn:active { transform: rotate(180deg) scale(0.92); }

/* ===== BUTTON ===== */
.fieldmark-btn-submit {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--brand-blue-bright) 0%, var(--brand-blue) 100%);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 12px 24px -8px rgba(0, 50, 160, 0.48);
  transition: transform 0.1s, box-shadow 0.2s, filter 0.2s;
}

.fieldmark-btn-submit .btn-content,
.fieldmark-btn-submit .btn-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.fieldmark-btn-submit .btn-spinner { display: none; }

.fieldmark-btn-submit.is-loading .btn-content { display: none; }
.fieldmark-btn-submit.is-loading .btn-spinner { display: flex; }
.fieldmark-btn-submit.is-loading {
  cursor: not-allowed;
  filter: brightness(0.96);
}

.fieldmark-btn-submit:disabled { pointer-events: none; }

.fieldmark-btn-submit:hover {
  filter: brightness(1.05);
}

.fieldmark-btn-submit:active {
  transform: scale(0.98);
}

/* ===== SWITCH LINK ===== */
.fieldmark-switch-action {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-muted);
}

.fieldmark-link-btn {
  background: none;
  border: none;
  color: var(--brand-blue);
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  padding: 0;
}

.fieldmark-link-btn:hover {
  text-decoration: underline;
}

/* ===== TRUST NOTE ===== */
.auth-trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
  font-size: 11.5px;
  color: var(--ink-faint);
}

.auth-trust-note i {
  color: var(--brand-blue-bright);
  font-size: 12px;
}

/* ===== LEGAL NOTE ===== */
.auth-legal-note {
  margin-top: 16px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-faint);
  text-align: center;
}

.auth-legal-note a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 700;
}

.auth-legal-note a:hover {
  text-decoration: underline;
}

/* ===== MOBILE ===== */
@media (max-width: 380px) {
  .auth-hero-banner { padding: 16px 18px 60px; }
  .auth-hero-center h1 { font-size: 22px; }
  .auth-card { padding: 26px 18px 28px; border-radius: 32px 32px 0 0; margin-top: -38px; }
  .fieldmark-field-box { padding: 12px 14px; }
}


:root {
  --brand-blue: #0032A0;
  --brand-blue-bright: #3E7BFF;
  --ink: #0B0F19;
  --ink-muted: rgba(11, 15, 25, 0.56);
  --line: #E4EAF6;
  --danger: #E11D48;
}

/* ── DASHBOARD BODY ── */
.dashboard {
  width: 100%;
  max-width: 430px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  margin: 0 auto;
  padding: 90px 0 24px 0;
  box-sizing: border-box;

  background:
    radial-gradient(circle at 12% 8%, rgba(62, 123, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 92% 80%, rgba(0, 50, 160, 0.06) 0%, transparent 50%),
    #ffffff;
  background-attachment: fixed;
  color: var(--ink);
}


/* ── HEADER ── */
.dashboard-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(0, 50, 160, 0.06);
  box-sizing: border-box;
  overflow: hidden;
}

/* faint Finland-blue dot texture across the header — the "dot" accent */
.dashboard-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(var(--brand-blue-bright) 1px, transparent 1px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(90deg, black, transparent 65%);
  mask-image: linear-gradient(90deg, black, transparent 65%);
}

.header-top-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  max-width: 430px;
  margin: 0 auto;
  box-sizing: border-box;
  height: 68px; /* was 52px — taller header */
}

.header-brand-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* live status dot beside the wordmark — a single, deliberate "dot of blaze Finland blue" */
.header-brand-wrap::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-blue-bright);
  box-shadow: 0 0 0 3px rgba(62, 123, 255, 0.18);
  animation: brandPulse 2.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes brandPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(62, 123, 255, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(62, 123, 255, 0.06); }
}

.header-brand-name {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
}

.header-icons-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon-btn {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--brand-blue);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 50, 160, 0.08);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.header-icon-btn:hover {
  border-color: var(--brand-blue-bright);
}

.header-icon-btn:active {
  transform: scale(0.92);
  background: rgba(62, 123, 255, 0.08);
}

/* ── BELL BADGE — red count, blinks every few seconds, not constantly ── */
.header-icon-btn[data-count]::after {
  content: attr(data-count);
  position: absolute;
  top: -4px;
  right: -4px;

  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;

  background: var(--danger);
  color: #ffffff;
  border: 1.5px solid #ffffff;

  font-size: 9px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  line-height: 15px;
  text-align: center;

  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.4);
  animation: badgeBlink 4s ease-in-out infinite;
}

@keyframes badgeBlink {
  0%, 82%, 100% { opacity: 1;   transform: scale(1); }
  88%           { opacity: 0.25; transform: scale(0.85); }
  94%           { opacity: 1;   transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .header-brand-wrap::before,
  .header-icon-btn[data-count]::after {
    animation: none;
  }
}




/* ── ACTION GRID — white cards, each icon its own 3D color ── */
:root {
  --brand-blue: #0032A0;
  --line: #E6ECF8;
  --ink: #0B0F19;
  --ink-muted: rgba(11, 15, 25, 0.55);

  --c-green:  #16A34A;
  --c-green-dk: #0E7A37;
  --c-red:    #E11D48;
  --c-red-dk: #AE1338;
  --c-yellow: #F59E0B;
  --c-yellow-dk: #C1740A;
  --c-blue:   #3E7BFF;
  --c-blue-dk: #0032A0;
}

.main-container {
  width: 100%;
  box-sizing: border-box;
  padding: 0 12px 14px;
  background: #ffffff;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff 0%, #FBFCFF 100%);
  border-radius: 20px;
  padding: 20px 8px 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 14px 26px -14px rgba(0, 50, 160, 0.20),
    0 2px 6px rgba(11, 15, 25, 0.04);
  border: 1px solid var(--line);
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.action-card:hover {
  transform: translateY(-2px);
}

.action-card:active {
  transform: translateY(1px) scale(0.96);
}

/* ── 3D ICON BADGE ──
   built from: a dark "floor" shadow shape behind, a glossy gradient
   puck on top, an inner top-highlight, and a soft colored glow.
   The mismatch between ::before (the floor, offset down+blurred)
   and the puck itself is what reads as extruded / pressable. */
.mx-circle-badge {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(160deg, var(--puck-light) 0%, var(--puck-dark) 100%);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.55),
    inset 0 -6px 8px rgba(0, 0, 0, 0.18),
    0 10px 16px -6px var(--puck-glow),
    0 3px 0 var(--puck-edge);

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* glossy highlight cap on the upper half of the puck */
.mx-circle-badge::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  right: 6px;
  height: 44%;
  border-radius: 12px 12px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.action-card:active .mx-circle-badge {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.4),
    inset 0 -3px 5px rgba(0, 0, 0, 0.2),
    0 4px 8px -4px var(--puck-glow),
    0 1px 0 var(--puck-edge);
}

.action-icon {
  position: relative;
  z-index: 1;
  font-size: 18px;
  color: #ffffff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.action-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── per-card colors ── */
#mainRechargeTrigger .mx-circle-badge {
  --puck-light: #34D072;
  --puck-dark: var(--c-green);
  --puck-edge: var(--c-green-dk);
  --puck-glow: rgba(22, 163, 74, 0.42);
}

#withdrawBtn .mx-circle-badge {
  --puck-light: #F0466F;
  --puck-dark: var(--c-red);
  --puck-edge: var(--c-red-dk);
  --puck-glow: rgba(225, 29, 72, 0.42);
}

#offerCodeTrigger .mx-circle-badge {
  --puck-light: #FBBF3C;
  --puck-dark: var(--c-yellow);
  --puck-edge: var(--c-yellow-dk);
  --puck-glow: rgba(245, 158, 11, 0.42);
}

#refCard .mx-circle-badge {
  --puck-light: var(--c-blue);
  --puck-dark: var(--c-blue-dk);
  --puck-edge: #001F66;
  --puck-glow: rgba(0, 50, 160, 0.42);
}

@media (max-width: 380px) {
  .action-card { padding: 16px 6px 12px; gap: 10px; }
  .mx-circle-badge { width: 42px; height: 42px; border-radius: 14px; }
  .action-icon { font-size: 16px; }
}

/* Add this to your parent container if it isn't centered already */
.parent-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 12px;
  box-sizing: border-box;
}

.gle-slim-card {
  border-radius: 18px;
  width: calc(100% - 24px);
  margin: 0 auto 16px auto; /* Perfectly centers the card with 12px gaps on both the left and right edges */
  box-sizing: border-box;
  overflow: hidden;
  display: block;
}

.gle-slim-card img {
  width: 100%;
  height: auto;
  display: block;
}



:root {
  --brand-blue: #0032A0;
  --brand-blue-bright: #3E7BFF;
  --line: #E4EAF6;
  --ink: #0B0F19;
  --ink-muted: rgba(11, 15, 25, 0.56);

  --dot-a: #3E7BFF;
  --dot-b: #F59E0B;
  --dot-c: #7C3AED;
  --dot-d: #E11D48;
}

#giftCodePage {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: #ffffff;
  box-sizing: border-box;
  display: block;
  position: relative;
}

/* faint dot texture, same language as the dashboard header */
#giftCodePage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 260px;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(var(--brand-blue-bright) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, black, transparent 70%);
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 70%);
}


/* ── HEADER ── */
.gift-page-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  z-index: 1;
}

.gift-back-btn {
  position: absolute;
  left: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--brand-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 50, 160, 0.08);
  transition: border-color 0.2s, transform 0.15s;
}

.gift-back-btn:hover { border-color: var(--brand-blue-bright); }
.gift-back-btn:active { transform: scale(0.92); }

.gift-page-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.2px;
}

.gift-header-spacer {
  position: absolute;
  right: 16px;
  width: 34px;
  height: 34px;
}

.gift-content {
  position: relative;
  z-index: 1;
  padding: 22px 16px 40px;
  width: 100%;
  box-sizing: border-box;
}


/* =========================================================
   ENVELOPE BANNER — the signature moment
========================================================= */

.gift-envelope {
  position: relative;
  margin: 10px 0 42px;
}

/* the triangular "flap" folded down over the body */
.gift-envelope-flap {
  height: 64px;
  background: linear-gradient(150deg, var(--brand-blue-bright) 0%, var(--brand-blue) 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  box-shadow: 0 6px 16px rgba(0, 50, 160, 0.18);
}

.gift-envelope-body {
  background: linear-gradient(160deg, var(--brand-blue) 0%, #001F66 100%);
  border-radius: 0 0 20px 20px;
  padding: 22px 22px 26px;
  margin-top: -1px;
  box-shadow: 0 16px 34px -10px rgba(0, 50, 160, 0.38);
  position: relative;
  overflow: hidden;
}

/* confetti dots scattered on the body, tier colors reused as decoration */
.gift-envelope-body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(3px 3px at 18% 30%, var(--dot-b) 98%, transparent),
    radial-gradient(3px 3px at 82% 22%, var(--dot-c) 98%, transparent),
    radial-gradient(2.5px 2.5px at 70% 68%, var(--dot-d) 98%, transparent),
    radial-gradient(2.5px 2.5px at 30% 78%, #ffffff 98%, transparent),
    radial-gradient(2px 2px at 90% 55%, #ffffff 98%, transparent);
  opacity: 0.85;
}

.gift-banner-text {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  margin: 8px 0 0;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  text-align: center;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

/* wax-seal medallion, pinned over the fold seam */
.gift-seal {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);

  width: 56px;
  height: 56px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(160deg, #FBBF3C 0%, #F59E0B 100%);
  border: 3px solid #ffffff;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.5),
    inset 0 -5px 8px rgba(0, 0, 0, 0.16),
    0 10px 20px -6px rgba(245, 158, 11, 0.5);

  z-index: 2;
}

.gift-seal i {
  font-size: 21px;
  color: #ffffff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}


/* =========================================================
   FORM
========================================================= */

.gift-label {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
}

.gift-input-wrapper {
  position: relative;
  margin-bottom: 22px;
}

#giftCodeInput {
  width: 100%;
  padding: 17px 46px 17px 18px;
  border-radius: 14px;
  border: 1.5px dashed #A9C2EE;
  background: #F7FAFF;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

#giftCodeInput::placeholder {
  color: #9FB1D6;
  letter-spacing: 1.5px;
  font-weight: 600;
}

#giftCodeInput:focus {
  border-color: var(--brand-blue-bright);
  border-style: solid;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(62, 123, 255, 0.14);
}

.gift-input-icon {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  color: var(--brand-blue-bright);
  font-size: 15px;
  pointer-events: none;
}


/* ── CLAIM BUTTON — glossy, same finish as the dashboard CTA ── */
.gift-receive-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 17px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--brand-blue-bright) 0%, var(--brand-blue) 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 12px 22px -8px rgba(0, 50, 160, 0.48);
  transition: filter 0.2s, transform 0.1s, box-shadow 0.2s;
}

.gift-receive-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
}

.gift-receive-btn i {
  font-size: 13px;
  transition: transform 0.2s;
}

.gift-receive-btn:hover {
  filter: brightness(1.06);
}

.gift-receive-btn:hover i {
  transform: translateX(3px);
}

.gift-receive-btn:active {
  transform: scale(0.98);
}

.gift-receive-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.gift-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin: 16px 0 0;
  font-size: 11.5px;
  color: var(--ink-muted);
  font-family: 'Inter', sans-serif;
}

.gift-hint i {
  color: var(--brand-blue-bright);
  font-size: 11px;
}

@media (max-width: 380px) {
  .gift-content { padding: 18px 14px 34px; }
  .gift-envelope-body { padding: 20px 18px 24px; }
  .gift-seal { width: 50px; height: 50px; top: 38px; }
  .gift-seal i { font-size: 19px; }
  #giftCodeInput { font-size: 13.5px; padding: 15px 42px 15px 16px; }
}


.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 */
}



.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 16px;
  right: 16px;
  width: auto;
  max-width: 410px;
  margin: 0 auto;
  background: #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 122, 255, 0.15);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 53, 128, 0.08);
  z-index: 9999;
}

.nav-pill-container {
  height: 60px;
  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: #007aff;
  gap: 3px;
  transition: transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-item svg {
  color: #007aff;
  transition: color 0.2s, transform 0.2s;
}

.nav-item .nav-label-text {
  font-size: 11px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: #007aff;
  transition: color 0.2s;
}

/* ── ACTIVE STATE ── */
.nav-item.active svg {
  color: #0051d5;
  transform: translateY(-1px);
}

.nav-item.active .nav-label-text {
  color: #0051d5;
  font-weight: 700;
}

.nav-item:active {
  transform: scale(0.90);
}

.nav-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

/* Default state */
#bottomNav {
    display: none; 
}

/* Visibility state */
.nav-visible {
    display: flex !important;
}



.live-ticker-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 12px 0 18px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.live-ticker-marquee {
  overflow: hidden;
  width: 100%;
  position: relative;
  white-space: nowrap;
}

.live-ticker-track {
  display: flex;
  width: max-content;
  gap: 16px;
  align-items: center;
  will-change: transform;
  animation: horizontalTicker 20s linear infinite;
}

.live-ticker-marquee:hover .live-ticker-track {
  animation-play-state: paused;
}

.live-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #1e293b;
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.live-user-avatar-sm {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #fff;
}

.live-phone-sm {
  font-family: monospace;
  font-weight: 600;
  color: #334155;
}

.live-action-text-sm {
  font-weight: 700;
}

@keyframes horizontalTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* =========================================================
   FORDBRIDGE PROFILE
   WHITE PAGE + FINLAND-BLUE HERO
   ========================================================= */

#profilePage{
  --blue:#0A4CFF;
  --blue2:#3E7BFF;
  --blue-deep:#0032A0;
  --bg:#F5F7FB;
  --line:#EEF1F7;
  --ink:#101423;
  --muted:#8A93A6;
  --danger:#E5484D;

  position:fixed;
  inset:0;
  width:100%;
  height:100vh;
  overflow-y:auto;
  overflow-x:hidden;
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter',sans-serif;
  z-index:500;
  box-sizing:border-box;
}

#profilePage *{ box-sizing:border-box; }

/* =========================================================
   HERO — Finland blue banner (replaces the old dark header)
   ========================================================= */

#profilePage .pf-header{
  position:relative;
  padding:18px 16px 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), transparent 40%),
    linear-gradient(160deg, #2E6BFF 0%, #0A4CFF 45%, #0032A0 100%);
  border-radius:0 0 28px 28px;
  overflow:hidden;
}

#profilePage .pf-header::after{
  content:"";
  position:absolute;
  width:220px;
  height:220px;
  right:-70px;
  top:-90px;
  border-radius:50%;
  background:rgba(255,255,255,.10);
  pointer-events:none;
}

#profilePage .pf-header-top{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

#profilePage .pf-logo-wrap{
  width:36px;
  height:36px;
  padding:2px;
  border-radius:11px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.35);
}

#profilePage .pf-header-logo{
  width:100%;
  height:100%;
  display:block;
  border-radius:9px;
  object-fit:cover;
}

#profilePage .pf-logout-icon{
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.30);
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

#profilePage .pf-identity-row{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  gap:12px;
  margin:16px 0 18px;
}

#profilePage .pf-avatar-circle{
  width:46px;
  height:46px;
  border-radius:50%;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:17px;
  flex-shrink:0;
}

#profilePage .pf-identity-text{
  display:flex;
  flex-direction:column;
  gap:2px;
}

#profilePage .pf-identity-text strong{
  color:#fff;
  font-size:15px;
  font-weight:700;
}

#profilePage .pf-identity-text span{
  color:rgba(255,255,255,.72);
  font-size:11.5px;
}

/* =========================================================
   BALANCE PANEL — sits directly on the blue, no card shadow
   ========================================================= */

#profilePage .pf-balance-card{
  position:relative;
  z-index:2;
  padding:16px 16px 0;
}

#profilePage .pf-balance-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
}

#profilePage .pf-balance-label{
  margin-bottom:6px;
  color:rgba(255,255,255,.68);
  font-size:10px;
  font-weight:700;
  letter-spacing:1.2px;
}

#profilePage .pf-balance-amount{
  font-size:32px;
  line-height:1.05;
  font-weight:800;
  letter-spacing:-1px;
  color:#fff;
}

#profilePage .pf-wallet-orb{
  width:46px;
  height:46px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:17px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.30);
}

#profilePage .pf-balance-divider{
  height:1px;
  margin:16px 0 12px;
  background:rgba(255,255,255,.20);
}

#profilePage .pf-balance-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

#profilePage .pf-recharge-balance{
  display:flex;
  flex-direction:column;
  gap:4px;
}

#profilePage .pf-recharge-balance > span{
  color:rgba(255,255,255,.68);
  font-size:10px;
}

#profilePage .pf-recharge-balance strong{
  font-size:19px;
  font-weight:900;
  color:#fff;
}

#profilePage .pf-recharge-balance strong span{
  font-size:inherit;
  font-weight:inherit;
  color:inherit;
}

#profilePage .pf-balance-chip{
  display:flex;
  align-items:center;
  gap:5px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.28);
  color:#fff;
  font-size:10px;
  font-weight:600;
}

#profilePage .pf-invest-strip{
  position:relative;
  z-index:3;
  margin:16px -16px 0;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  cursor:pointer;
}

#profilePage .pf-invest-strip div:first-child{
  display:flex;
  flex-direction:column;
  gap:3px;
}

#profilePage .pf-invest-strip strong{
  color:#fff;
  font-size:12px;
  font-weight:650;
}

#profilePage .pf-invest-strip span{
  color:rgba(255,255,255,.68);
  font-size:10px;
}

#profilePage .pf-arrow-btn{
  width:30px;
  height:30px;
  border-radius:9px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  color:var(--blue);
  font-size:11px;
}

/* =========================================================
   SCROLL CONTAINER
   ========================================================= */

#profilePage .profile-scroll-container{
  width:100%;
  max-width:430px;
  margin:auto;
  padding:0 14px calc(105px + env(safe-area-inset-bottom,0px));
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* =========================================================
   QUICK ACTIONS — floating white cards, overlap the banner
   ========================================================= */

#profilePage .pf-action-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:-26px;
  position:relative;
  z-index:5;
}

#profilePage .pf-action-card{
  min-width:0;
  padding:13px;
  display:flex;
  align-items:center;
  gap:10px;
  border-radius:16px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  text-align:left;
  box-shadow:0 10px 24px rgba(16,20,35,.08);
  cursor:pointer;
  transition:transform .15s ease;
}

#profilePage .pf-action-card:active{ transform:scale(.97); }

#profilePage .pf-action-icon{
  width:36px;
  height:36px;
  flex:0 0 36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:11px;
  background:rgba(10,76,255,.08);
  color:var(--blue);
  font-size:13px;
}

#profilePage .pf-action-text{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

#profilePage .pf-action-text strong{ font-size:12px; font-weight:650; }
#profilePage .pf-action-text span{ color:var(--muted); font-size:9px; }

#profilePage .pf-action-arrow{
  margin-left:auto;
  color:#CBD2E0;
  font-size:9px;
}

/* =========================================================
   MENU — same items, plain white list
   ========================================================= */

#profilePage .pf-menu-card{
  overflow:hidden;
  border-radius:18px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 10px 24px rgba(16,20,35,.05);
}

#profilePage .pf-menu-heading{
  padding:16px 16px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

#profilePage .pf-menu-kicker{
  color:var(--blue);
  font-size:9px;
  font-weight:700;
  letter-spacing:1.2px;
}

#profilePage .pf-menu-heading h3{
  margin:3px 0 0;
  font-size:15px;
  font-weight:700;
  color:var(--ink);
}

#profilePage .pf-menu-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--blue);
}

#profilePage .pf-list-item{
  min-height:58px;
  padding:10px 16px;
  display:flex;
  align-items:center;
  gap:12px;
  border-top:1px solid var(--line);
  cursor:pointer;
  transition:background .15s ease;
}

#profilePage .pf-list-item:active{ background:#F5F8FF; }

#profilePage .pf-list-icon{
  width:36px;
  height:36px;
  flex:0 0 36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:11px;
  color:var(--blue);
  background:rgba(10,76,255,.08);
  font-size:13px;
}

#profilePage .pf-list-content{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:2px;
}

#profilePage .pf-list-content strong{
  color:var(--ink);
  font-size:12.5px;
  font-weight:600;
}

#profilePage .pf-list-content span{
  color:var(--muted);
  font-size:9.5px;
}

#profilePage .pf-list-chevron{
  color:#CBD2E0;
  font-size:10px;
}

#profilePage .pf-telegram-icon{
  color:#27A9E1;
  background:rgba(39,169,225,.10);
}

#profilePage .pf-icon-danger{
  color:var(--danger);
  background:rgba(229,72,77,.10);
}

#profilePage .pf-logout-item .pf-list-content strong{
  color:var(--danger);
}

/* FOOTER */

#profilePage .pf-footer{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:6px 0 4px;
  color:#B9C1D1;
  font-size:8px;
  font-weight:600;
  letter-spacing:.8px;
}

#profilePage .pf-footer span span{ color:var(--blue); }

#profilePage .pf-footer-line{
  width:25px;
  height:1px;
  background:var(--line);
}

/* SMALL SCREENS */

@media(max-width:360px){
  #profilePage .pf-balance-amount{ font-size:28px; }
  #profilePage .pf-action-card{ padding:11px; }
  #profilePage .pf-action-text span{ display:none; }
}



@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --bank-bg:          #ffffff;
  --bank-bg-soft:     #F7F9FF;
  --bank-card:        #ffffff;
  --bank-border:      #E9EEFB;
  --bank-border-hi:   #CFDCFB;

  --bank-blue-deep:   #0032A0;
  --bank-blue:        #0A4CFF;
  --bank-blue-bright: #3E7BFF;
  --bank-blue-glow:   rgba(10, 76, 255, 0.24);

  --bank-ink:         #101423;
  --bank-mid:         #6B7488;
  --bank-low:         #A7AFC2;

  --bank-success:     #16A34A;
  --bank-success-bg:  #E7F7EC;
}

.bank-page {
  background:
    radial-gradient(circle, rgba(10,76,255,0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--bank-bg);
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--bank-ink);
}

/* ===================== HERO — diagonal blaze cut ===================== */
.bank-hero {
  position: relative;
  padding: 20px 20px 64px;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--bank-bg);
}

/* The "blaze" — a bold diagonal blue band swept across the hero */
.bank-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, var(--bank-blue) 0%, var(--bank-blue-bright) 55%, var(--bank-blue) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%);
}

/* A thinner streak layered on top for depth/motion */
.bank-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.16) 42%, transparent 54%);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%);
}

.bank-back-btn {
  position: absolute;
  top: 20px;
  left: 16px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  z-index: 2;
  transition: background 0.15s ease;
}
.bank-back-btn:hover { background: rgba(255,255,255,0.28); }
.bank-back-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.bank-hero-icon {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--bank-border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto 16px;
  box-shadow: 0 12px 28px rgba(10, 76, 255, 0.28);
}

.bank-hero-icon i {
  font-size: 21px;
  color: var(--bank-blue);
}

.bank-hero h2 {
  position: relative;
  z-index: 2;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: 0.2px;
}

.bank-hero-sub {
  position: relative;
  z-index: 2;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

/* ===================== CONTAINER ===================== */
.bankdisp-container {
  max-width: 430px;
  margin: -34px auto 0;
  padding: 0 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

/* ===================== INFO BANNER ===================== */
.bank-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bank-card);
  border: 1px dashed var(--bank-border-hi);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(16,20,35,.05);
}

.bank-info-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(10, 76, 255, 0.08);
  color: var(--bank-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}

.bank-info-banner p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--bank-mid);
  padding-top: 4px;
}

/* ===================== CHANNEL SWITCH — two connector ports ===================== */
.bank-channel-switch {
  position: relative;
  display: flex;
  background: var(--bank-bg-soft);
  border: 1px solid var(--bank-border);
  border-radius: 18px;
  padding: 6px;
}

/* the "plug" that slides to whichever port is active */
.bank-tab-indicator {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  border-radius: 13px;
  background: linear-gradient(180deg, var(--bank-blue-bright) 0%, var(--bank-blue) 100%);
  box-shadow: 0 6px 16px var(--bank-blue-glow);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bank-channel-switch.on-backup .bank-tab-indicator {
  transform: translateX(100%);
}

.bank-tab-btn {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 12px 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bank-mid);
  cursor: pointer;
  transition: color 0.2s ease;
}

.bank-tab-btn.active { color: #ffffff; }
.bank-tab-btn:focus-visible { outline: 2px solid var(--bank-blue); outline-offset: 2px; }

/* ===================== ACCOUNT CARD — faceplate accent ===================== */
.bankdisp-card {
  position: relative;
  background: var(--bank-card);
  border: 1px solid var(--bank-border);
  border-radius: 16px;
  padding: 18px 20px 18px 22px;
  box-shadow: 0 12px 28px rgba(16, 20, 35, 0.06);
  animation: bankCardIn 0.25s ease;
  overflow: hidden;
}

/* left accent bar, like a port faceplate */
.bankdisp-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--bank-blue-bright), var(--bank-blue));
}

@keyframes bankCardIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bankdisp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.bankdisp-channel-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bankdisp-channel-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(10, 76, 255, 0.08);
  color: var(--bank-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.bankdisp-channel-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--bank-ink);
}

.bankdisp-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 12px 5px 9px;
  border-radius: 999px;
  background: #F1F3F9;
  color: var(--bank-mid);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.bankdisp-status-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bank-low);
  flex-shrink: 0;
}

.bankdisp-status-pill.linked {
  background: var(--bank-success-bg);
  color: var(--bank-success);
}
.bankdisp-status-pill.linked::before {
  background: var(--bank-success);
  box-shadow: 0 0 6px rgba(22,163,74,0.5);
  animation: bankPulse 1.8s ease-in-out infinite;
}

@keyframes bankPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.bankdisp-empty {
  font-size: 13px;
  color: var(--bank-low);
  margin: 0 0 10px 0;
}

.bankdisp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--bank-border);
}
.bankdisp-row:last-child { border-bottom: none; }

.bankdisp-label {
  color: var(--bank-mid);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.bankdisp-value {
  color: var(--bank-ink);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
}

.bankdisp-hint {
  font-size: 11.5px;
  color: var(--bank-low);
  text-align: center;
  line-height: 1.6;
  padding: 4px 10px 0;
}

.bank-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--bank-blue-bright) 0%, var(--bank-blue) 100%);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 20px var(--bank-blue-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bank-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px var(--bank-blue-glow);
}
.bank-action-btn:active { transform: translateY(0); }
.bank-action-btn:focus-visible { outline: 2px solid var(--bank-blue); outline-offset: 2px; }

/* ===================== INLINE FORM ===================== */
.inline-bank-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--bank-border);
}

.mybank-modal-form {
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.mybank-modal-form label {
  font-size: 10.5px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-weight: 600 !important;
  color: var(--bank-mid) !important;
  margin-bottom: 6px !important;
  display: block !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.bank-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bank-input-icon {
  position: absolute;
  left: 14px;
  font-size: 13px;
  color: var(--bank-blue);
  pointer-events: none;
}

.mybank-modal-form select,
.mybank-modal-form input {
  width: 100% !important;
  padding: 12px 14px 12px 40px !important;
  border: 1px solid var(--bank-border) !important;
  border-radius: 12px !important;
  font-size: 13.5px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  background-color: var(--bank-bg-soft) !important;
  color: var(--bank-ink) !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: all 0.2s ease-in-out !important;
  appearance: none;
}

.mybank-modal-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230A4CFF' 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") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
}

.mybank-modal-form input::placeholder { color: var(--bank-low) !important; }

.mybank-modal-form select:focus,
.mybank-modal-form input:focus {
  border-color: var(--bank-blue) !important;
  box-shadow: 0 0 0 3px rgba(10, 76, 255, 0.14) !important;
}

.inline-form-actions {
  display: flex !important;
  gap: 10px !important;
  margin-top: 4px !important;
}

.ft-swal-confirm,
.ft-swal-cancel {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 12px 16px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  border: none !important;
  transition: all 0.15s ease !important;
  text-align: center;
}

.ft-swal-confirm {
  background: linear-gradient(135deg, var(--bank-blue-bright) 0%, var(--bank-blue) 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 0 var(--bank-blue-deep), 0 8px 18px var(--bank-blue-glow) !important;
}
.ft-swal-confirm:active {
  box-shadow: 0 1px 0 var(--bank-blue-deep), 0 2px 6px rgba(10,76,255,0.2) !important;
  transform: translateY(3px) !important;
}

.ft-swal-cancel {
  background: var(--bank-bg-soft) !important;
  color: var(--bank-mid) !important;
  border: 1px solid var(--bank-border) !important;
  box-shadow: 0 4px 0 #E2E7F5, 0 8px 12px rgba(16,20,35,0.05) !important;
}
.ft-swal-cancel:active {
  box-shadow: 0 1px 0 #E2E7F5, 0 2px 4px rgba(16,20,35,0.05) !important;
  transform: translateY(3px) !important;
}

@media (prefers-reduced-motion: reduce) {
  .bankdisp-status-pill.linked::before,
  .bankdisp-card { animation: none; }
}


/* =========================================================
   RECHARGE — WHITE + FINLAND BLUE
   ========================================================= */

#rechargePage{
  --blue:#3E7BFF;
  --blue2:#0032A0;
  --blue-deep:#001F66;
  --bg:#ffffff;
  --card:#ffffff;
  --line:#E4EAF6;
  --ink:#0B0F19;
  --muted:rgba(11,15,25,.55);
  --faint:rgba(11,15,25,.34);

  position:fixed;
  inset:0;
  width:100%;
  height:100vh;
  overflow-y:auto;
  overflow-x:hidden;
  background:var(--bg);
  color:var(--ink);
  z-index:500;
  font-family:inherit;
  box-sizing:border-box;
  -webkit-overflow-scrolling:touch;
}

#rechargePage *{box-sizing:border-box}

/* faint dot field behind the header, same identity as the rest of the app */
#rechargePage:before{
  content:"";
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:280px;
  pointer-events:none;
  opacity:.45;
  background-image:radial-gradient(var(--blue) 1px,transparent 1px);
  background-size:16px 16px;
  -webkit-mask-image:linear-gradient(180deg,black,transparent 85%);
  mask-image:linear-gradient(180deg,black,transparent 85%);
  z-index:0;
}


/* HEADER */
#rechargePage .recharge-header-fixed{
  position:fixed;
  inset:0 0 auto;
  height:62px;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.92);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 4px 16px rgba(0,50,160,.05);
}

#rechargePage .recharge-header-fixed h2{
  margin:0;
  font-size:16px;
  font-weight:800;
  letter-spacing:-.2px;
  color:var(--ink);
}

#rechargePage .recharge-back-btn-v2{
  position:absolute;
  left:15px;
  width:35px;
  height:35px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:50%;
  background:#ffffff;
  color:var(--blue2);
  cursor:pointer;
  box-shadow:0 2px 8px rgba(0,50,160,.08);
  transition:border-color .2s, transform .15s;
}
#rechargePage .recharge-back-btn-v2:hover{ border-color:var(--blue); }
#rechargePage .recharge-back-btn-v2:active{ transform:scale(.92); }

#rechargePage .recharge-history-btn{
  position:absolute;
  right:15px;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#F7FAFF;
  color:var(--blue2);
  font-size:9px;
  font-weight:800;
  letter-spacing:.5px;
  cursor:pointer;
}


/* CONTAINER */
#rechargePage .recharge-page-container{
  position:relative;
  z-index:1;
  width:100%;
  max-width:430px;
  margin:auto;
  padding:78px 14px calc(120px + env(safe-area-inset-bottom,0px));
  display:flex;
  flex-direction:column;
  gap:14px;
}


/* BALANCE HERO — Finland-blue ticket-style banner */
#rechargePage .rech-balance-card{
  position:relative;
  overflow:hidden;
  padding:20px;
  border-radius:20px;
  background:linear-gradient(150deg,var(--blue) 0%,var(--blue2) 60%,var(--blue-deep) 100%);
  box-shadow:0 16px 34px -10px rgba(0,50,160,.40);
}

/* security-print dot texture on the hero itself */
#rechargePage .rech-balance-card:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.14;
  background-image:radial-gradient(#ffffff 1px,transparent 1px);
  background-size:10px 10px;
}

#rechargePage .rech-balance-card:after{
  content:"";
  position:absolute;
  top:0;
  left:20px;
  right:20px;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent);
}

#rechargePage .rech-balance-top{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:14px;
}

#rechargePage .rech-balance-icon{
  width:50px;
  height:50px;
  flex:0 0 50px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:15px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.3);
  color:#ffffff;
  font-size:18px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3);
}

#rechargePage .rech-balance-label{
  margin-bottom:5px;
  color:rgba(255,255,255,.72);
  font-size:9px;
  font-weight:800;
  letter-spacing:.8px;
  text-transform:uppercase;
}

#rechargePage .rech-balance-value{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:25px;
  font-weight:700;
  letter-spacing:-.3px;
  color:#ffffff;
}

#rechargePage .rech-balance-status{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:15px;
  color:rgba(255,255,255,.78);
  font-size:10.5px;
  font-weight:600;
}

#rechargePage .status-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#ffffff;
  box-shadow:0 0 0 3px rgba(255,255,255,.25);
  animation:rechStatusPulse 2.4s ease-in-out infinite;
}

@keyframes rechStatusPulse{
  0%,100%{ box-shadow:0 0 0 3px rgba(255,255,255,.25); }
  50%{ box-shadow:0 0 0 6px rgba(255,255,255,.08); }
}


/* CARDS */
#rechargePage .rech-card{
  position:relative;
  overflow:hidden;
  padding:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%,#FBFCFF 100%);
  box-shadow:0 10px 26px -14px rgba(0,50,160,.18);
}

#rechargePage .rech-card-heading{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
}

#rechargePage .rech-eyebrow{
  display:block;
  margin-bottom:4px;
  color:var(--blue);
  font-size:8.5px;
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase;
}

#rechargePage .rech-card-heading h3{
  margin:0;
  color:var(--ink);
  font-size:14.5px;
  font-weight:750;
}

#rechargePage .rech-heading-icon{
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:11px;
  background:linear-gradient(160deg,var(--blue),var(--blue2));
  color:#ffffff;
  font-size:13px;
  box-shadow:0 6px 14px -4px rgba(0,50,160,.4);
}


/* AMOUNT */
#rechargePage .main-amount-input{
  height:64px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 16px;
  border:1.5px dashed #A9C2EE;
  border-radius:15px;
  background:#F7FAFF;
  transition:border-color .2s, box-shadow .2s, background .2s;
}

#rechargePage .main-amount-input:focus-within{
  border-color:var(--blue);
  border-style:solid;
  background:#ffffff;
  box-shadow:0 0 0 3px rgba(62,123,255,.14);
}

#rechargePage .main-amount-currency{
  color:var(--blue2);
  font-size:21px;
  font-weight:800;
}

#rechargePage #customAmount{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--ink);
  font:700 22px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  letter-spacing:.5px;
}

#rechargePage #customAmount::placeholder{
  color:var(--faint);
}

#rechargePage #customAmount::-webkit-inner-spin-button,
#rechargePage #customAmount::-webkit-outer-spin-button{
  -webkit-appearance:none;
}


/* QUICK AMOUNTS */
#rechargePage .quick-select-title{
  margin:16px 0 9px;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
}

#rechargePage .quick-amount-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
}

#rechargePage .amount-option{
  height:42px;
  padding:0 3px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#ffffff;
  color:var(--muted);
  font:700 10.5px inherit;
  cursor:pointer;
  transition:.15s ease;
}

#rechargePage .amount-option:hover{
  border-color:var(--blue);
}

#rechargePage .amount-option.active,
#rechargePage .amount-option.selected{
  border-color:transparent;
  background:linear-gradient(135deg,var(--blue),var(--blue2));
  color:#ffffff;
  box-shadow:0 8px 18px -6px rgba(0,50,160,.45);
}

#rechargePage .rech-minimum-note{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:12px;
  color:var(--faint);
  font-size:10.5px;
}

#rechargePage .rech-minimum-note i{
  color:var(--blue);
}


/* PAYMENT CHANNELS — with TOGGLE SWITCH */
#rechargePage .channel-select-list{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

#rechargePage .channel-card{
  position:relative;
  min-width:0;
  padding:14px 15px;
  display:flex;
  align-items:center;
  gap:13px;
  border:1.5px solid var(--line);
  border-radius:16px;
  background:#ffffff;
  cursor:pointer;
  transition:.18s ease;
}

#rechargePage .channel-card:hover{
  border-color:#B9CDF2;
}

#rechargePage .channel-card.selected{
  border-color:var(--blue);
  background:linear-gradient(180deg,#F3F7FF 0%,#ffffff 100%);
  box-shadow:0 10px 24px -14px rgba(0,50,160,.3);
}

#rechargePage .channel-card-icon{
  flex-shrink:0;
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:13px;
  background:linear-gradient(160deg,#EAF1FF,#DCE8FF);
  color:var(--blue2);
  font-size:15px;
  transition:background .2s, color .2s, box-shadow .2s;
}

#rechargePage .channel-card.selected .channel-card-icon{
  background:linear-gradient(160deg,var(--blue),var(--blue2));
  color:#ffffff;
  box-shadow:0 6px 14px -4px rgba(0,50,160,.45);
}

#rechargePage .channel-card-info{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}

#rechargePage .channel-card-name{
  color:var(--ink);
  font-size:13px;
  font-weight:750;
}

#rechargePage .channel-card-sub{
  color:var(--faint);
  font-size:10.5px;
  line-height:1.3;
}

/* the toggle switch itself, replacing the old radio circle */
#rechargePage .channel-card-radio{
  position:relative;
  flex-shrink:0;
  width:44px;
  height:26px;
  border-radius:999px;
  background:#E4EAF6;
  border:1px solid var(--line);
  transition:background .2s ease, border-color .2s ease;
}

#rechargePage .channel-card-radio i{
  display:none;
}

#rechargePage .channel-card-radio:before{
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#ffffff;
  box-shadow:0 2px 6px rgba(0,0,0,.18);
  transition:transform .22s cubic-bezier(.4,0,.2,1);
}

#rechargePage .channel-card.selected .channel-card-radio{
  background:linear-gradient(135deg,var(--blue),var(--blue2));
  border-color:transparent;
}

#rechargePage .channel-card.selected .channel-card-radio:before{
  transform:translateX(18px);
}


/* INFO */
#rechargePage .rech-info-box{
  display:flex;
  gap:12px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#F7FAFF;
}

#rechargePage .rech-info-icon{
  flex:0 0 34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:11px;
  background:linear-gradient(160deg,var(--blue),var(--blue2));
  color:#ffffff;
  font-size:14px;
  box-shadow:0 6px 14px -4px rgba(0,50,160,.4);
}

#rechargePage .rech-info-title{
  margin-bottom:9px;
  color:var(--ink);
  font-size:12.5px;
  font-weight:750;
}

#rechargePage .rech-instruction-row{
  display:flex;
  gap:9px;
  margin-bottom:7px;
}

#rechargePage .rech-instruction-row:last-child{
  margin-bottom:0;
}

#rechargePage .rech-instruction-row span{
  flex:0 0 18px;
  height:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
  background:#DCE8FF;
  color:var(--blue2);
  font-size:9px;
  font-weight:800;
}

#rechargePage .rech-instruction-row p{
  margin:0;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.5;
}


/* CONFIRM BUTTON */
#rechargePage .deposit-btn{
  position:relative;
  overflow:hidden;
  width:100%;
  min-height:55px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:0 18px;
  border:0;
  border-radius:14px;
  background:linear-gradient(160deg,var(--blue) 0%,var(--blue2) 100%);
  color:#ffffff;
  font:800 13.5px inherit;
  cursor:pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 12px 26px -8px rgba(0,50,160,.48);
  transition:.18s ease;
}

#rechargePage .deposit-btn:after{
  content:"";
  position:absolute;
  top:0;
  left:-60%;
  width:40%;
  height:100%;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.35),transparent);
  transform:skewX(-20deg);
}

#rechargePage .deposit-btn:hover{
  filter:brightness(1.05);
}

#rechargePage .deposit-btn:active{
  transform:scale(.975);
}

#rechargePage .deposit-btn:disabled{
  opacity:.5;
  cursor:not-allowed;
}

#rechargePage .deposit-btn-icon{
  width:21px;
  height:21px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(255,255,255,.22);
  font-size:9px;
}

#rechargePage .deposit-arrow{
  margin-left:3px;
  font-size:11px;
}


/* SUPPORT */
#rechargePage .rech-support-line{
  padding:0 8px 5px;
  text-align:center;
  color:var(--faint);
  font-size:10.5px;
}

#rechargePage .rech-support-link{
  color:var(--blue2);
  font-weight:700;
  text-decoration:none;
}


/* HIDDEN COMPATIBILITY */
#rechargePage #manualTransferCard,
#rechargePage #rechargeRulesBox{
  display:none!important;
}


/* SCROLLBAR */
#rechargePage::-webkit-scrollbar{width:3px}
#rechargePage::-webkit-scrollbar-thumb{
  background:rgba(62,123,255,.3);
  border-radius:99px;
}


/* SMALL PHONES */
@media(max-width:360px){
  #rechargePage .recharge-page-container{
    padding-left:11px;
    padding-right:11px;
  }
  #rechargePage .rech-card{ padding:15px; }
  #rechargePage .quick-amount-grid{ gap:6px; }
  #rechargePage .amount-option{ font-size:9.5px; }
  #rechargePage .channel-card{ padding:12px 13px; gap:11px; }
}


/* =========================================================
   MANUAL DEPOSIT PAGE — same Finland-blue/white identity
   ========================================================= */

#manualDepositPage{
  --blue:#3E7BFF;
  --blue2:#0032A0;
  --blue-deep:#001F66;
  --bg:#ffffff;
  --line:#E4EAF6;
  --ink:#0B0F19;
  --muted:rgba(11,15,25,.55);
  --faint:rgba(11,15,25,.34);

  position:fixed;
  inset:0;
  width:100%;
  height:100vh;
  overflow-y:auto;
  overflow-x:hidden;
  background:var(--bg);
  color:var(--ink);
  z-index:600;
  font-family:inherit;
  box-sizing:border-box;
  -webkit-overflow-scrolling:touch;
}

#manualDepositPage *{box-sizing:border-box}

#manualDepositPage .mdp-header-fixed{
  position:fixed;
  inset:0 0 auto;
  height:62px;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.92);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 4px 16px rgba(0,50,160,.05);
}

#manualDepositPage .mdp-header-fixed h2{
  margin:0;
  font-size:16px;
  font-weight:800;
  letter-spacing:-.2px;
  color:var(--ink);
}

#manualDepositPage .mdp-back-btn{
  position:absolute;
  left:15px;
  width:35px;
  height:35px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:50%;
  background:#ffffff;
  color:var(--blue2);
  cursor:pointer;
  box-shadow:0 2px 8px rgba(0,50,160,.08);
  transition:border-color .2s, transform .15s;
}
#manualDepositPage .mdp-back-btn:hover{ border-color:var(--blue); }
#manualDepositPage .mdp-back-btn:active{ transform:scale(.92); }

#manualDepositPage .mdp-container{
  position:relative;
  z-index:1;
  width:100%;
  max-width:430px;
  margin:auto;
  padding:78px 14px 60px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* AMOUNT HERO */
#manualDepositPage .mdp-amount-hero{
  position:relative;
  overflow:hidden;
  padding:22px 20px;
  border-radius:20px;
  text-align:center;
  background:linear-gradient(150deg,var(--blue) 0%,var(--blue2) 60%,var(--blue-deep) 100%);
  box-shadow:0 16px 34px -10px rgba(0,50,160,.40);
}

#manualDepositPage .mdp-amount-hero:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.14;
  background-image:radial-gradient(#ffffff 1px,transparent 1px);
  background-size:10px 10px;
}

#manualDepositPage .mdp-amount-label{
  position:relative;
  z-index:1;
  color:rgba(255,255,255,.72);
  font-size:9px;
  font-weight:800;
  letter-spacing:.8px;
  text-transform:uppercase;
  margin-bottom:8px;
}

#manualDepositPage .mdp-amount-value{
  position:relative;
  z-index:1;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:34px;
  font-weight:800;
  letter-spacing:-.5px;
  color:#ffffff;
}

#manualDepositPage .mdp-amount-note{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin-top:12px;
  color:rgba(255,255,255,.8);
  font-size:10.5px;
  font-weight:600;
}

/* CARDS — reuse the same rech-card visual language */
#manualDepositPage .mdp-card{
  position:relative;
  overflow:hidden;
  padding:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%,#FBFCFF 100%);
  box-shadow:0 10px 26px -14px rgba(0,50,160,.18);
}

#manualDepositPage .mdp-card-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
}

#manualDepositPage .mdp-eyebrow{
  display:block;
  margin-bottom:4px;
  color:var(--blue);
  font-size:8.5px;
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase;
}

#manualDepositPage .mdp-card-heading h3{
  margin:0;
  color:var(--ink);
  font-size:14.5px;
  font-weight:750;
}

#manualDepositPage .mdp-heading-icon{
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:11px;
  background:linear-gradient(160deg,var(--blue),var(--blue2));
  color:#ffffff;
  font-size:13px;
  box-shadow:0 6px 14px -4px rgba(0,50,160,.4);
}

#manualDepositPage .mdp-bank-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:11px 0;
  border-bottom:1px solid var(--line);
}

#manualDepositPage .mdp-bank-row:last-of-type{
  border-bottom:none;
}

#manualDepositPage .mdp-bank-label{
  color:var(--muted);
  font-size:11.5px;
  font-weight:600;
}

#manualDepositPage .mdp-bank-value{
  color:var(--ink);
  font-size:13px;
  font-weight:750;
}

#manualDepositPage .mdp-acc-highlight{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:8px;
  padding:14px;
  border-radius:14px;
  background:#F7FAFF;
  border:1.5px dashed #A9C2EE;
}

#manualDepositPage .mdp-acc-number{
  margin-top:4px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:19px;
  font-weight:800;
  letter-spacing:1px;
  color:var(--blue2);
}

#manualDepositPage .mdp-copy-btn{
  flex-shrink:0;
  display:flex;
  align-items:center;
  gap:6px;
  padding:9px 14px;
  border:none;
  border-radius:10px;
  background:linear-gradient(135deg,var(--blue),var(--blue2));
  color:#ffffff;
  font-size:11.5px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 8px 18px -6px rgba(0,50,160,.45);
}

#manualDepositPage .mdp-field-label{
  display:block;
  margin-bottom:7px;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
}

#manualDepositPage .mdp-input-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 14px;
  height:50px;
  border:1.5px solid var(--line);
  border-radius:13px;
  background:#F7FAFF;
  transition:border-color .2s, box-shadow .2s, background .2s;
}

#manualDepositPage .mdp-input-wrap:focus-within{
  border-color:var(--blue);
  background:#ffffff;
  box-shadow:0 0 0 3px rgba(62,123,255,.14);
}

#manualDepositPage .mdp-input-wrap i{
  color:var(--blue2);
  font-size:13px;
}

#manualDepositPage .mdp-input-wrap input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:var(--ink);
  font:600 13.5px inherit;
}

#manualDepositPage .mdp-upload-dropzone{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  height:64px;
  border:1.5px dashed #A9C2EE;
  border-radius:13px;
  background:#F7FAFF;
  color:var(--blue2);
  font-size:12.5px;
  font-weight:700;
  cursor:pointer;
  transition:border-color .2s, background .2s;
}

#manualDepositPage .mdp-upload-dropzone:hover{
  border-color:var(--blue);
  background:#ffffff;
}

#manualDepositPage .mdp-upload-dropzone i{
  font-size:18px;
}

/* INFO BOX */
#manualDepositPage .mdp-info-box{
  display:flex;
  gap:12px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#F7FAFF;
}

#manualDepositPage .mdp-info-icon{
  flex:0 0 34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:11px;
  background:linear-gradient(160deg,var(--blue),var(--blue2));
  color:#ffffff;
  font-size:14px;
  box-shadow:0 6px 14px -4px rgba(0,50,160,.4);
}

#manualDepositPage .mdp-info-title{
  margin-bottom:9px;
  color:var(--ink);
  font-size:12.5px;
  font-weight:750;
}

#manualDepositPage .mdp-instruction-row{
  display:flex;
  gap:9px;
  margin-bottom:7px;
}

#manualDepositPage .mdp-instruction-row:last-child{
  margin-bottom:0;
}

#manualDepositPage .mdp-instruction-row span{
  flex:0 0 18px;
  height:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
  background:#DCE8FF;
  color:var(--blue2);
  font-size:9px;
  font-weight:800;
}

#manualDepositPage .mdp-instruction-row p{
  margin:0;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.5;
}

/* SUBMIT BUTTON */
#manualDepositPage .mdp-submit-btn{
  position:relative;
  overflow:hidden;
  width:100%;
  min-height:55px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:0 18px;
  border:0;
  border-radius:14px;
  background:linear-gradient(160deg,var(--blue) 0%,var(--blue2) 100%);
  color:#ffffff;
  font:800 13.5px inherit;
  cursor:pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 12px 26px -8px rgba(0,50,160,.48);
  transition:.18s ease;
}

#manualDepositPage .mdp-submit-btn:active{
  transform:scale(.975);
}

#manualDepositPage .mdp-submit-btn:disabled{
  opacity:.6;
  cursor:not-allowed;
}

#manualDepositPage .mdp-submit-icon{
  width:21px;
  height:21px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(255,255,255,.22);
  font-size:9px;
}

@media(max-width:360px){
  #manualDepositPage .mdp-container{
    padding-left:11px;
    padding-right:11px;
  }
  #manualDepositPage .mdp-card{ padding:15px; }
  #manualDepositPage .mdp-acc-number{ font-size:16px; }
}


/* =========================================================
   PAYMENT LOADER — premium fintech, white + Finland blue
   ========================================================= */

.gle-payment-loader-popup{
  border-radius:26px !important;
  padding:0 !important;
  box-shadow:0 30px 70px rgba(0,50,160,.25) !important;
}

.gle-payment-loader{
  position:relative;
  width:100%;
  padding:34px 26px 28px;
  display:flex;
  flex-direction:column;
  align-items:center;
  font-family:'Inter',sans-serif;
  overflow:hidden;
}

/* dot texture, tying it to the rest of the app */
.gle-payment-loader:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.5;
  background-image:radial-gradient(#3E7BFF 1px,transparent 1px);
  background-size:16px 16px;
  -webkit-mask-image:radial-gradient(circle at 50% 0%,black,transparent 65%);
  mask-image:radial-gradient(circle at 50% 0%,black,transparent 65%);
}

.gle-loader-brand{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:10px;
  font-weight:800;
  letter-spacing:1.6px;
  color:#0032A0;
  margin-bottom:26px;
}

.gle-loader-brand-dot{
  width:5px;
  height:5px;
  border-radius:50%;
  background:#3E7BFF;
}

/* orbiting ring animation around the lock */
.gle-loader-orbit{
  position:relative;
  z-index:1;
  width:96px;
  height:96px;
  margin-bottom:22px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.gle-loader-orbit:before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  border:3px solid #EAF1FF;
}

.gle-loader-orbit:after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  border:3px solid transparent;
  border-top-color:#3E7BFF;
  border-right-color:#3E7BFF;
  animation:gleOrbitSpin 1.1s linear infinite;
}

.gle-loader-core{
  position:relative;
  width:58px;
  height:58px;
  border-radius:50%;
  background:linear-gradient(160deg,#3E7BFF 0%,#0032A0 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,.45),
    inset 0 -6px 8px rgba(0,0,0,.16),
    0 12px 26px -8px rgba(0,50,160,.5);
}

.gle-loader-core-icon{
  position:relative;
  z-index:1;
  color:#ffffff;
  font-size:20px;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.2));
  animation:gleLockPulse 1.6s ease-in-out infinite;
}

@keyframes gleOrbitSpin{
  to{ transform:rotate(360deg); }
}

@keyframes gleLockPulse{
  0%,100%{ transform:scale(1); }
  50%{ transform:scale(1.12); }
}

.gle-loader-title{
  position:relative;
  z-index:1;
  margin:0 0 8px;
  font-size:16px;
  font-weight:800;
  color:#0B0F19;
  text-align:center;
  letter-spacing:-.2px;
}

.gle-loader-subtitle{
  position:relative;
  z-index:1;
  margin:0 0 20px;
  font-size:12.5px;
  line-height:1.55;
  color:rgba(11,15,25,.55);
  text-align:center;
  max-width:260px;
}

.gle-loader-dots{
  position:relative;
  z-index:1;
  display:flex;
  gap:7px;
  margin-bottom:22px;
}

.gle-loader-dots span{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#3E7BFF;
  opacity:.25;
  animation:gleDotBlink 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; }

@keyframes gleDotBlink{
  0%,100%{ opacity:.25; transform:scale(1); }
  50%{ opacity:1; transform:scale(1.25); }
}

.gle-loader-security{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:7px;
  padding:8px 16px;
  border-radius:999px;
  border:1.5px dashed #A9C2EE;
  background:#F7FAFF;
  color:#0032A0;
  font-size:10.5px;
  font-weight:700;
}

.gle-loader-security i{
  font-size:11px;
}
  
  /* ============================================================
   RECHARGE PAYMENT LOADER
   SAME BLACK + FINLAND BLUE THEME
   ============================================================ */

.gle-payment-loader-popup {

  width:
    min(350px, calc(100vw - 40px))
    !important;

  padding: 0 !important;

  border-radius: 24px !important;

  overflow: hidden !important;

  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(62, 123, 255, .16) 0%,
      transparent 50%
    ),
    linear-gradient(
      160deg,
      #0A1020 0%,
      #04060C 100%
    ) !important;

  border:
    1.5px solid
    rgba(62, 123, 255, .22) !important;

  box-shadow:
    0 24px 60px rgba(0, 0, 0, .6),
    0 0 40px rgba(62, 123, 255, .08) !important;

}


.gle-payment-loader {

  padding: 30px 22px 24px;

  text-align: center;

  color: #ffffff;

}


/* brand */

.gle-loader-brand {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 7px;

  margin-bottom: 22px;

  color:
    rgba(214, 226, 245, .45);

  font-size: 9px;

  line-height: 1;

  font-weight: 600;

  letter-spacing: 1px;

}


.gle-loader-brand-dot {

  width: 5px;
  height: 5px;

  border-radius: 50%;

  background:
    #3E7BFF;

  box-shadow:
    0 0 0 4px
    rgba(62, 123, 255, .08);

}


/* ============================================================
   LOADER ORBIT
   ============================================================ */

.gle-loader-orbit {

  width: 84px;
  height: 84px;

  margin:
    0 auto 20px;

  position: relative;

  display: flex;

  align-items: center;
  justify-content: center;

}


.gle-loader-orbit::before {

  content: "";

  position: absolute;

  inset: 5px;

  border-radius: 50%;

  border:
    1px solid
    rgba(62, 123, 255, .18);

}


.gle-loader-orbit::after {

  content: "";

  position: absolute;

  inset: 0;

  border-radius: 50%;

  border:
    2px solid
    rgba(62, 123, 255, .08);

  border-top-color:
    #3E7BFF;

  border-right-color:
    #0032A0;

  animation:
    recharge-loader-spin
    1.1s
    linear
    infinite;

}


/* ============================================================
   CORE
   ============================================================ */

.gle-loader-core {

  width: 50px;
  height: 50px;

  border-radius: 50%;

  position: relative;

  z-index: 2;

  display: flex;

  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      145deg,
      #101a2c,
      #05080f
    );

  border:
    1px solid
    rgba(62, 123, 255, .24);

  box-shadow:
    0 10px 25px rgba(0, 0, 0, .35),
    inset 0 0 18px
    rgba(62, 123, 255, .07);

}


.gle-loader-core-icon {

  color:
    #ffffff;

  font-size: 15px;

}


/* ============================================================
   LOADER TEXT
   ============================================================ */

.gle-loader-title {

  margin:
    0 0 7px;

  color: #ffffff;

  font-size: 17px;

  line-height: 1.25;

  font-weight: 650;

}


.gle-loader-subtitle {

  max-width: 250px;

  margin: 0 auto;

  color:
    rgba(214, 226, 245, .55);

  font-size: 11px;

  line-height: 1.55;

}


/* ============================================================
   DOTS
   ============================================================ */

.gle-loader-dots {

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 5px;

  margin-top: 17px;

}


.gle-loader-dots span {

  width: 5px;
  height: 5px;

  border-radius: 50%;

  background:
    #3E7BFF;

  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: .30s;

}


/* ============================================================
   SECURITY
   ============================================================ */

.gle-loader-security {

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 6px;

  margin-top: 22px;

  padding-top: 13px;

  border-top:
    1px solid
    rgba(255, 255, 255, .07);

  color:
    rgba(214, 226, 245, .35);

  font-size: 9px;

}


.gle-loader-security i {

  color:
    #3E7BFF;

  font-size: 9px;

}


/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes recharge-loader-spin {

  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }

}


@keyframes recharge-loader-dot {

  0%,
  70%,
  100% {

    opacity: .28;

    transform:
      translateY(0);

  }

  35% {

    opacity: 1;

    transform:
      translateY(-3px);

  }

}


:root {
  --brand-blue: #0032A0;
  --brand-blue-bright: #3E7BFF;

  --page-bg: #ffffff;
  --line: #E4EAF6;

  --ink: #0B0F19;
  --ink-muted: rgba(11, 15, 25, 0.56);
}

.popup-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: 999998;
  box-sizing: border-box;
  padding: 20px;
}

/* ── CENTERED SQUARE-ISH CARD, WHITE + FINLAND BLUE ── */
.mx-unique-modal {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 24px;
  box-sizing: border-box;
  padding: 24px 20px 18px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow:
    0 24px 60px rgba(0, 50, 160, 0.20),
    0 0 0 1px rgba(0, 50, 160, 0.03);
  animation: mx-pop-in 0.25s ease-out;
}

/* faint dot texture in the top corner, same identity as the rest of the app */
.mx-unique-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(var(--brand-blue-bright) 1px, transparent 1px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, black, transparent 70%);
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 70%);
}

@keyframes mx-pop-in {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.mx-close-x-btn {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--brand-blue);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 50, 160, 0.08);
  transition: border-color 0.2s, transform 0.15s;
}

.mx-close-x-btn:hover { border-color: var(--brand-blue-bright); }
.mx-close-x-btn:active { transform: scale(0.92); }

.mx-logo-wrap {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  background: linear-gradient(160deg, var(--brand-blue-bright), var(--brand-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.4),
    inset 0 -6px 8px rgba(0, 0, 0, 0.14),
    0 10px 22px -6px rgba(0, 50, 160, 0.45);
}

.mx-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.mx-welcome-title {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  margin: 0 0 14px;
  letter-spacing: -0.2px;
}

/* ── BULLET LIST AS A 2x2 GRID (keeps the modal from stretching tall) ── */
.mx-bullet-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.mx-bullet-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mx-bullet-row--last {
  border: 1px solid var(--line);
}

.mx-bullet-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue-bright);
  font-size: 15px;
}

.mx-bullet-icon--check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--brand-blue-bright), var(--brand-blue));
  color: #ffffff;
  font-size: 11px;
  box-shadow: 0 4px 10px -3px rgba(0, 50, 160, 0.5);
}

.mx-bullet-text {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ink-muted);
  margin: 0;
}

.mx-bullet-text strong {
  color: var(--ink);
  font-weight: 700;
}

/* ── BUTTONS ── */
.mx-action-btn {
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  margin-top: 8px;
  font-family: inherit;
}

.mx-action-btn--primary {
  position: relative;
  overflow: hidden;
  border: none;
  color: #ffffff;
  background: linear-gradient(160deg, var(--brand-blue-bright), var(--brand-blue));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 10px 22px -6px rgba(0, 50, 160, 0.45);
}

.mx-action-btn--primary:hover {
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 12px 26px -6px rgba(62, 123, 255, 0.5);
}

.mx-action-btn--secondary {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: #ffffff;
}

.mx-action-btn--secondary:hover {
  border-color: var(--brand-blue-bright);
  background: #F7FAFF;
}

.mx-btn-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  color: #ffffff;
}

.mx-btn-icon--dark {
  background: rgba(0, 50, 160, 0.10);
  color: var(--brand-blue);
}

.mx-action-btn:active { transform: scale(0.97); }

@media (max-width: 380px) {
  .mx-unique-modal { padding: 20px 16px 16px; }
  .mx-welcome-title { font-size: 17px; }
}

#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(3, 87, 238, 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: #eff6ff; color: #0357EE; }

.ft-alert-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}

.ft-alert-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: #64748b;
  margin: 0 0 20px;
}

/* 🔧 NEW — review details block (used by ftConfirm's `html` option) */
.ft-alert-html {
  text-align: left;
  font-size: 13.5px;
  line-height: 1.7;
  color: #14151A;
  margin: -10px 0 20px;
}

/* 🔧 NEW — 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: #0357EE;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
}

/* 🔧 NEW — neutral cancel styling, sits next to the blue confirm button */
.ft-alert-btn-cancel {
  background: #f1f5f9;
  color: #14151A;
}

.ft-alert-btn:active { transform: scale(0.98); }


.referral-promo-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid #e7edfb;
  box-shadow: 0 8px 24px rgba(3, 87, 238, 0.08);
  max-width: 500px;
  
  /* 🌟 CHANGE THIS LINE: Adds negative top margin to shift it up, and pushes the bottom up */
  margin: -20px auto 35px auto; 
  
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.referral-promo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(3, 87, 238, 0.16);
}

.referral-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.referral-text-col { flex: 1; }

.referral-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #0357EE;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.referral-headline {
  font-size: 21px;
  font-weight: 800;
  color: #0b1220;
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.referral-subtext {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.referral-icon-badge {
  width: 42px;
  height: 42px;
  background: #eaf0fe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #0357EE;
  flex-shrink: 0;
  border: 1px solid #d7e3fb;
}

.referral-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.referral-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 30px;
  white-space: nowrap;
}

.referral-pill.green {
  background: #e8f8ef;
  color: #16a34a;
  border: 1px solid #c8ede0;
}

.referral-pill.amber {
  background: #fff6e6;
  color: #b45309;
  border: 1px solid #fbe3b0;
}

.referral-cta-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 13px;
  background: #0357EE;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(3, 87, 238, 0.25);
  transition: background 0.2s, transform 0.15s;
}

.referral-cta-btn:hover {
  background: #0241b8;
}

.referral-cta-btn:active {
  transform: scale(0.97);
}

@media (max-width: 380px) {
  .referral-headline { font-size: 19px; }
  .referral-icon-badge { width: 38px; height: 38px; border-radius: 10px; font-size: 15px; }
}


/* DAILY LOADER OVERLAY */
.daily-loader{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.55);
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  z-index:9999;
}

/* 3D SPINNER */
.spinner-3d{
  width:60px;
  height:60px;
  border:6px solid rgba(255,255,255,0.2);
  border-top:6px solid #00c2ff;
  border-radius:50%;
  animation:spin3d 1s linear infinite;
  margin-bottom:15px;
}

@keyframes spin3d{
  0%{transform:rotate(0deg);}
  100%{transform:rotate(360deg);}
}

.daily-loader p{
  color:white;
  font-weight:600;
  font-size:16px;
}


/* ===== PRODUCT PAGE ===== */
.product-page {
  width: 100%;
  padding: 20px;
  padding-bottom: 80px;
  padding-top: 65px; /* space for fixed header */
  background: #ffffff; /* white background */
  min-height: 100vh;
  color: #ffffff;      /* white text */
  display: none;       /* show when active */
}

/* ===== FIXED HEADER ===== */
.product-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1e40ff; /* blue header */
  padding: 12px 0;
  z-index: 1000;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;      /* white text */
  box-shadow: 0 3px 8px rgba(30, 64, 255, 0.2); /* subtle blue shadow */
}

.product-header i {
  margin-right: 8px;
  color: #ffffff; /* white icon */
}

/* ===== PREMIUM PRODUCT CARD - REDESIGNED ===== */
.premium-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  margin-top: -12px;
  margin-bottom: 16px;
  border: 1px solid #ede9f6;
  box-shadow: 0 4px 18px rgba(75, 0, 130, 0.07);
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  overflow: hidden;
}

/* ── TOP STRIP ── */
.inv-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #4b0082, #9d4edd);
}

.inv-vip-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.inv-vip-badge i {
  color: #e9d5ff;
  font-size: 14px;
}

.inv-days-pill {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.3);
}

/* ── BODY: IMAGE + STATS GRID ── */
.inv-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.inv-product-img {
  width: 85px;
  height: 85px;
  min-width: 85px;
  border-radius: 12px;
  background: #f5f0ff;
  border: 1px solid #ede9f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.inv-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.inv-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
}

.inv-stat-box {
  background: #faf7ff;
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid #ede9f6;
}

.inv-stat-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
}

.inv-stat-label i {
  color: #9d4edd;
  font-size: 9px;
}

.inv-stat-val {
  font-size: 13px;
  font-weight: 700;
  color: #9d4edd;
}

.inv-stat-val.dark {
  color: #0f172a;
}

.inv-stat-val.green {
  color: #16a34a;
}

/* ── FOOTER: DATE + PROGRESS BAR ── */
.inv-card-footer {
  padding: 0 16px 14px 16px;
  border-top: 1px solid #f3eeff;
  padding-top: 12px;
}

.inv-date-range {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #7c3aed;
  font-weight: 600;
  margin-bottom: 8px;
}

.inv-date-range i {
  color: #9d4edd;
}

.inv-progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: #ede9f6;
  border-radius: 99px;
  overflow: hidden;
}

.inv-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4b0082, #9d4edd);
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* ── COUNTDOWN ROW ── */
.inv-countdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #faf7ff;
  border-top: 1px solid #f3eeff;
}

.inv-next-label {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.inv-countdown-timer {
  font-family: monospace;
  font-weight: 700;
  color: #4b0082;
  font-size: 13px;
  letter-spacing: 1px;
}

/* ── MOBILE ── */
@media (max-width: 480px) {
  .inv-product-img {
    width: 72px;
    height: 72px;
    min-width: 72px;
  }
  .inv-stat-val {
    font-size: 12px;
  }
}





/* =========================================================
   INVITE / SHARE PAGE
   WHITE + FINLAND BLUE — "BOARDING PASS" DESIGN
========================================================= */

:root {
  --blue-deep: #0032A0;
  --blue-bright: #3E7BFF;
  --blue-pale: #EAF1FF;
  --line: #D6E3F7;

  --ink: #0B0F19;
  --ink-muted: rgba(11, 15, 25, 0.60);
  --ink-faint: rgba(11, 15, 25, 0.34);
}


/* =========================================================
   PAGE
========================================================= */

.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;

  background: #ffffff;
  color: var(--ink);

  font-family: 'Inter', sans-serif;

  padding-bottom: 40px;
}

/* Faint Nordic-cross watermark — nods to "Finland blue", sits behind everything */
.invite-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  width: 1px;
  height: 340px;
  background: var(--blue-pale);
  pointer-events: none;
  z-index: 0;
}

.invite-page::after {
  content: "";
  position: absolute;
  top: 96px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--blue-pale);
  pointer-events: none;
  z-index: 0;
}


/* =========================================================
   HEADER
========================================================= */

.invite-header-fixed-v2 {
  position: sticky;
  top: 0;

  width: 100%;
  min-height: 68px;

  padding: 12px max(16px, calc((100% - 760px) / 2));

  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: #ffffff;
  border-bottom: 1px solid var(--line);

  z-index: 20;
}

.invite-header-fixed-v2::after {
  content: none;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.invite-back-btn-v2 {
  position: relative;
  z-index: 2;

  width: 40px;
  height: 40px;
  border-radius: 12px;

  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  font-size: 14px;

  transition: border-color 0.2s ease, transform 0.15s ease;
}

.invite-back-btn-v2:hover {
  border-color: var(--blue-bright);
}

.invite-back-btn-v2:active {
  transform: scale(0.94);
}


/* =========================================================
   HEADER TITLE
========================================================= */

.invite-header-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  z-index: 2;

  display: flex;
  align-items: center;
  gap: 9px;

  white-space: nowrap;
}

.invite-header-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* Header mark — solid Finland-blue tile, reads like a stamp */
.invite-header-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--blue-deep);
  color: #ffffff;
  font-size: 13px;
}

.invite-header-spacer {
  width: 40px;
  height: 40px;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.referral-container {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 760px;
  margin: 0 auto;

  padding: 18px 18px 45px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  gap: 18px;
}


/* =========================================================
   TOP IMAGE + BADGE
========================================================= */

.invite-image-card {
  width: 100%;
  height: 205px;

  border-radius: 18px;
  overflow: hidden;
  position: relative;

  border: 1px solid var(--line);
  background: var(--blue-pale);
}

/* Corner tag, like a wax stamp on the hero */
.invite-image-card::after {
  content: "SHARE & EARN";
  position: absolute;
  top: 14px;
  left: 14px;

  padding: 6px 12px;
  border-radius: 999px;

  background: var(--blue-deep);
  color: #ffffff;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;

  box-shadow: 0 6px 16px rgba(0, 50, 160, 0.28);
}

.invite-top-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


/* =========================================================
   TICKET / BOARDING-PASS CARD
========================================================= */

.invite-tools-card {
  position: relative;

  width: 100%;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;

  padding: 0;
  box-sizing: border-box;

  border-radius: 18px;
  background: #ffffff;
  border: 1.5px solid var(--blue-deep);

  box-shadow: 0 14px 34px rgba(0, 50, 160, 0.12);
}

/* Punch-hole notches at the tear line, top + bottom */
.invite-tools-card::before,
.invite-tools-card::after {
  content: "";
  position: absolute;
  left: 42.5%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--blue-deep);
  z-index: 2;
}

.invite-tools-card::before {
  top: 0;
  transform: translate(-50%, -50%);
}

.invite-tools-card::after {
  bottom: 0;
  transform: translate(-50%, 50%);
}


/* =========================================================
   INDIVIDUAL CODE / LINK STUB
========================================================= */

.invite-tool-box {
  min-width: 0;
  padding: 20px 16px;
  box-sizing: border-box;

  background: transparent;
  border: none;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Dashed tear line between the two stubs */
.invite-tool-box:first-child {
  border-right: 1.5px dashed var(--line);
}


/* =========================================================
   LABEL
========================================================= */

.invite-tool-label {
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}


/* =========================================================
   INVITE CODE — set like a boarding-pass serial
========================================================= */

.invite-code-display {
  width: 100%;
  min-height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 14px;
  box-sizing: border-box;
}

.invite-code-display span {
  color: var(--blue-deep);

  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;

  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}


/* =========================================================
   INVITE LINK
========================================================= */

.invite-link-display {
  width: 100%;
  min-height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 14px;
  box-sizing: border-box;
}

.invite-link-input {
  width: 100%;
  min-width: 0;

  border: none;
  outline: none;
  background: transparent;

  color: var(--ink);
  text-align: center;

  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;

  padding: 0;
  box-sizing: border-box;

  overflow: hidden;
  text-overflow: ellipsis;
}

.invite-link-input::placeholder {
  color: var(--ink-faint);
}


/* =========================================================
   COPY BUTTONS
========================================================= */

.invite-copy-main-btn {
  width: 100%;
  min-height: 42px;

  border: none;
  border-radius: 10px;

  background: var(--blue-deep);
  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  box-shadow: 0 8px 18px rgba(0, 50, 160, 0.24);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.invite-copy-main-btn:hover {
  background: var(--blue-bright);
  box-shadow: 0 10px 22px rgba(62, 123, 255, 0.30);
}

.invite-copy-main-btn:active {
  transform: scale(0.97);
}

.invite-copy-main-btn i {
  font-size: 12px;
}


/* =========================================================
   INVITATION RULE CARD
========================================================= */

.invite-rule-card {
  width: 100%;
  padding: 22px 20px;
  box-sizing: border-box;

  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
}


/* =========================================================
   RULE TITLE
========================================================= */

.invite-rule-title {
  margin: 0 0 16px;
  text-align: left;

  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;

  display: flex;
  align-items: center;
  gap: 9px;
}

/* Small square tick before the title, in place of the old underline */
.invite-rule-title::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--blue-deep);
  flex-shrink: 0;
}

.invite-rule-title::after {
  content: none;
}


/* =========================================================
   RULE CONTENT
========================================================= */

.invite-rule-content {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.75;
}

.invite-rule-content p {
  margin: 0 0 10px;
  padding-left: 0;
}

.invite-rule-content p:first-child {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 14px;
}

/* Every rule line after the intro reads as a step */
.invite-rule-content p:not(:first-child) {
  position: relative;
  padding-left: 18px;
}

.invite-rule-content p:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
}

.invite-rule-content p:last-child {
  margin-bottom: 0;
}

.invite-rule-content strong {
  color: var(--blue-deep);
  font-weight: 700;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

  .invite-header-fixed-v2 {
    min-height: 64px;
    padding: 10px 14px;
  }

  .invite-header-title h2 {
    font-size: 16px;
  }

  .invite-header-icon {
    width: 29px;
    height: 29px;
    font-size: 12px;
  }

  .referral-container {
    max-width: 500px;
    padding: 14px 14px 35px;
    gap: 15px;
  }

  .invite-image-card {
    height: 180px;
    border-radius: 16px;
  }

  .invite-image-card::after {
    font-size: 10px;
    padding: 5px 10px;
  }

  .invite-tools-card {
    border-radius: 16px;
  }

  .invite-tool-box {
    padding: 16px 10px;
  }

  .invite-tool-label {
    font-size: 10px;
  }

  .invite-code-display span {
    font-size: 18px;
    letter-spacing: 1.5px;
  }

  .invite-link-input {
    font-size: 11px;
  }

  .invite-copy-main-btn {
    min-height: 40px;
    font-size: 12px;
  }

  .invite-rule-card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .invite-rule-title {
    font-size: 13.5px;
  }

  .invite-rule-content {
    font-size: 13.5px;
    line-height: 1.7;
  }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

  .referral-container {
    padding-left: 11px;
    padding-right: 11px;
  }

  .invite-tool-box {
    padding: 14px 8px;
  }

  .invite-code-display span {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .invite-link-input {
    font-size: 10px;
  }

  .invite-copy-main-btn {
    min-height: 38px;
    font-size: 11px;
  }
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 768px) {

  .invite-page {
    padding-bottom: 60px;
  }

  .referral-container {
    padding-top: 26px;
  }

  .invite-image-card {
    height: 280px;
    border-radius: 20px;
  }

  .invite-tool-box {
    padding: 26px 22px;
  }

  .invite-tool-label {
    font-size: 12px;
  }

  .invite-code-display span {
    font-size: 26px;
  }

  .invite-link-input {
    font-size: 13px;
  }

  .invite-copy-main-btn {
    min-height: 46px;
    font-size: 14px;
  }

  .invite-rule-card {
    padding: 26px 25px;
    border-radius: 20px;
  }

  .invite-rule-content {
    font-size: 14px;
  }
}


/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .invite-copy-main-btn,
  .invite-back-btn-v2 {
    transition: none;
  }
}



/* =========================================================
   TEAM PAGE — WHITE + FINLAND BLUE
   LEVEL 1 + LEVEL 2
   ========================================================= */

:root {
  --brand-blue: #0032A0;
  --brand-blue-bright: #3E7BFF;
  --brand-blue-deep: #001F66;

  --line: #E4EAF6;
  --ink: #0B0F19;
  --ink-muted: rgba(11, 15, 25, 0.55);
  --ink-faint: rgba(11, 15, 25, 0.34);
}

#earningsPage {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh;

  margin: 0 !important;
  padding: 0 !important;

  background: #ffffff;
  color: var(--ink);
  font-family: 'Inter', sans-serif;

  box-sizing: border-box;
  overflow-x: hidden;
}

/* faint dot field behind the header, same identity as the rest of the app */
#earningsPage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 320px;
  pointer-events: none;
  opacity: 0.45;
  background-image: radial-gradient(var(--brand-blue-bright) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(180deg, black, transparent 85%);
  mask-image: linear-gradient(180deg, black, transparent 85%);
}


/* =========================================================
   HEADER — white, matches dashboard/records header language
   ========================================================= */

.team-header-main {
  position: sticky;
  top: 0;
  z-index: 20;

  width: 100%;
  height: 62px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 18px;
  box-sizing: border-box;

  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0, 50, 160, 0.05);
}

.team-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: relative;
  z-index: 2;
}

.team-header-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--brand-blue-bright);
}

.team-header-center > span:last-child {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.back-btn-white {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);

  width: 35px;
  height: 35px;
  border-radius: 50%;

  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--brand-blue);

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;

  box-shadow: 0 2px 8px rgba(0, 50, 160, 0.08);
  z-index: 5;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.back-btn-white:hover { border-color: var(--brand-blue-bright); }
.back-btn-white:active { transform: translateY(-50%) scale(0.92); }

.team-header-mark {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);

  width: 35px;
  height: 35px;
  border-radius: 11px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(160deg, var(--brand-blue-bright), var(--brand-blue));
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 6px 14px -4px rgba(0, 50, 160, 0.4);

  z-index: 5;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.team-page-container {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 520px;
  margin: 0 auto;

  padding: 18px 15px 150px;
  box-sizing: border-box;
}


/* =========================================================
   HERO CARD — Finland-blue banner with guilloché texture
   ========================================================= */

.team-hero-card {
  position: relative;
  overflow: hidden;

  min-height: 150px;
  padding: 20px;
  margin-bottom: 18px;
  box-sizing: border-box;

  border-radius: 22px;
  background: linear-gradient(150deg, var(--brand-blue-bright) 0%, var(--brand-blue) 60%, var(--brand-blue-deep) 100%);
  box-shadow: 0 16px 34px -10px rgba(0, 50, 160, 0.40);

  color: #ffffff;
}

/* security-print dot texture, same as the recharge/records hero banners */
.team-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 10px 10px;
}

.team-hero-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.team-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.team-hero-label {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 6px;
}

.team-hero-top h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.3px;
  max-width: 200px;
}

.team-hero-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 17px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.team-hero-bottom {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  display: flex;
  align-items: center;
}

.team-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-stat-label {
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.team-stat strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.team-stat-divider {
  width: 1px;
  height: 26px;
  margin: 0 22px;
  background: rgba(255, 255, 255, 0.22);
}


/* =========================================================
   LEVEL SWITCHER
   ========================================================= */

.team-level-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;

  padding: 5px;
  margin-bottom: 20px;

  background: #F2F5FC;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-sizing: border-box;
}

.team-tab-btn {
  position: relative;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border: none;
  border-radius: 12px;
  background: transparent;

  color: var(--ink-muted);
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 700;

  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.team-tab-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9.5px;
  font-weight: 700;
  opacity: 0.65;
  letter-spacing: 0.5px;
}

.team-tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue-bright), var(--brand-blue));
  box-shadow: 0 8px 18px -6px rgba(0, 50, 160, 0.45);
}

.team-tab-btn.active .team-tab-number {
  opacity: 0.8;
}

.team-tab-btn:active {
  transform: scale(0.98);
}


/* =========================================================
   LIST HEADING
   ========================================================= */

.team-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 12px;
  padding: 0 2px;
}

.team-list-heading-small {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--brand-blue-bright);
  margin-bottom: 4px;
}

.team-list-heading h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.team-member-count-badge {
  display: flex;
  align-items: center;
  gap: 6px;

  height: 30px;
  padding: 0 11px;

  border-radius: 999px;
  background: #F7FAFF;
  border: 1px solid var(--line);

  color: var(--brand-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.team-member-count-badge i {
  font-size: 9px;
  color: var(--brand-blue-bright);
}


/* =========================================================
   TEAM LIST
   ========================================================= */

.team-list-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* =========================================================
   MEMBER CARD
   ========================================================= */

.team-list-row {
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;

  min-height: 72px;
  padding: 13px 15px;
  box-sizing: border-box;

  background: linear-gradient(180deg, #ffffff 0%, #FBFCFF 100%);
  border: 1px solid var(--line);
  border-radius: 17px;

  box-shadow: 0 8px 20px -14px rgba(0, 50, 160, 0.20);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.team-list-row:hover {
  border-color: color-mix(in srgb, var(--brand-blue-bright) 40%, var(--line));
  box-shadow: 0 10px 24px -12px rgba(0, 50, 160, 0.24);
  transform: translateY(-1px);
}

/* 3D glossy avatar puck, same construction as the action-grid icons */
.team-member-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-right: 12px;

  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(160deg, var(--brand-blue-bright) 0%, var(--brand-blue) 100%);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.45),
    inset 0 -5px 7px rgba(0, 0, 0, 0.16),
    0 8px 16px -6px rgba(0, 50, 160, 0.42);

  color: #ffffff;
  font-size: 15px;
}

.team-member-avatar i {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.team-member-info {
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-member-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.team-list-number {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.2px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-member-level {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.team-investment {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-left: 10px;
}

.team-investment-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  margin-left: 10px;
  flex-shrink: 0;
}

.team-investment-label {
  font-size: 9px;
  color: var(--ink-faint);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-list-amount {
  display: inline-flex;
  align-items: center;

  min-height: 28px;
  padding: 0 10px;
  border-radius: 9px;

  background: #EAF1FF;
  border: 1px solid #D8E6FF;

  color: var(--brand-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 750;
  white-space: nowrap;
}


/* =========================================================
   EMPTY / LOADING / ERROR STATES
   ========================================================= */

.team-list-empty-wrap {
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  padding: 40px 22px;

  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 24px -16px rgba(0, 50, 160, 0.18);
}

.team-list-empty-icon {
  position: relative;
  width: 60px;
  height: 60px;
  margin-bottom: 16px;

  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(160deg, var(--brand-blue-bright), var(--brand-blue));
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.45),
    inset 0 -5px 7px rgba(0, 0, 0, 0.16),
    0 10px 20px -6px rgba(0, 50, 160, 0.42);

  color: #ffffff;
}

.team-list-empty-icon i {
  font-size: 21px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.team-list-empty-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
}

.team-list-empty-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 250px;
  margin: 0;
}

.team-error-state .team-list-empty-icon {
  background: linear-gradient(160deg, #F0466F, #E11D48);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.45),
    inset 0 -5px 7px rgba(0, 0, 0, 0.16),
    0 10px 20px -6px rgba(225, 29, 72, 0.42);
}

.team-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  padding: 46px 0;

  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
}

.team-loading-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #EAF1FF;
  color: var(--brand-blue);
  font-size: 15px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 380px) {

  .team-header-main { height: 58px; }
  .team-header-center > span:last-child { font-size: 14.5px; }

  .team-page-container {
    padding: 15px 12px 145px;
  }

  .team-hero-card {
    min-height: 140px;
    padding: 18px;
    border-radius: 20px;
  }

  .team-hero-top h1 { font-size: 17px; }
  .team-hero-icon { width: 40px; height: 40px; }
  .team-stat-divider { margin: 0 17px; }

  .team-tab-btn { height: 43px; font-size: 11px; }

  .team-list-row {
    min-height: 68px;
    padding: 11px 12px;
    border-radius: 15px;
  }

  .team-member-avatar {
    width: 39px;
    height: 39px;
    margin-right: 10px;
  }

  .team-list-number { font-size: 12px; }
  .team-list-amount { font-size: 10px; padding: 0 8px; }
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 700px) {

  .team-page-container {
    max-width: 560px;
    padding-top: 25px;
    padding-bottom: 170px;
  }

  .team-hero-card {
    min-height: 175px;
    padding: 25px;
  }

  .team-list-row {
    min-height: 78px;
    padding: 15px 18px;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .team-list-row,
  .team-tab-btn,
  .back-btn-white {
    transition: none;
  }
}



/* ============ WITHDRAW — WHITE + FINLAND BLUE, ROYAL TOUCH ============ */
:root{
  --wd-blue:#0032A0; --wd-blue-bright:#3E7BFF; --wd-blue-deep:#001F66;
  --wd-gold:#C9A24B; --wd-gold-soft:#F4E9D2;
  --wd-line:#E4EAF6; --wd-ink:#0B0F19; --wd-muted:rgba(11,15,25,.55); --wd-faint:rgba(11,15,25,.34);
}

.withdraw-page{position:relative;min-height:100vh;width:100%;background:#fff;color:var(--wd-ink);font-family:'Inter',sans-serif;overflow-x:hidden;box-sizing:border-box;padding-bottom:45px!important}
.withdraw-page::before{content:"";position:fixed;inset:0 0 auto;height:300px;opacity:.45;pointer-events:none;background-image:radial-gradient(var(--wd-blue-bright) 1px,transparent 1px);background-size:16px 16px;-webkit-mask-image:linear-gradient(180deg,#000,transparent 85%);mask-image:linear-gradient(180deg,#000,transparent 85%)}

/* HEADER */
.wd-header{position:sticky;top:0;z-index:100;height:64px;display:grid;grid-template-columns:38px 1fr 38px;align-items:center;padding:0 15px;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);border-bottom:1px solid var(--wd-line);box-shadow:0 4px 16px rgba(0,50,160,.05);box-sizing:border-box}
.wd-back-btn{width:36px;height:36px;border-radius:50%;border:1px solid var(--wd-line);background:#fff;color:var(--wd-blue);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px rgba(0,50,160,.08);transition:.2s}
.wd-back-btn:hover{border-color:var(--wd-blue-bright)} .wd-back-btn:active{transform:scale(.92)}
.wd-header-center{text-align:center}
.wd-header-kicker{display:block;font-size:8.5px;letter-spacing:1.8px;color:var(--wd-blue-bright);font-weight:800;margin-bottom:2px}
.wd-title{margin:0;color:var(--wd-ink);font-size:15px;font-weight:800}
.wd-history-btn{justify-self:end;border:0;background:transparent;color:var(--wd-blue);font-size:11px;font-weight:700;font-family:inherit;cursor:pointer}

/* CONTAINER */
.wd-container{position:relative;z-index:1;width:100%;max-width:520px;margin:0 auto;padding:18px 15px 70px;display:flex;flex-direction:column;gap:20px;box-sizing:border-box;padding-bottom:65px!important}

/* WALLET — the royal moment: blue gradient + gold hairline + gold seal */
.wd-wallet{position:relative;overflow:hidden;min-height:168px;padding:22px;border-radius:24px;background:linear-gradient(150deg,var(--wd-blue-bright) 0%,var(--wd-blue) 58%,var(--wd-blue-deep) 100%);border:1px solid var(--wd-gold);box-shadow:0 20px 44px -12px rgba(0,50,160,.42);display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box}
.wd-wallet::before{content:"";position:absolute;inset:0;opacity:.14;pointer-events:none;background-image:radial-gradient(#fff 1px,transparent 1px);background-size:10px 10px}
.wd-wallet::after{content:"";position:absolute;top:0;left:22px;right:22px;height:1px;background:linear-gradient(90deg,transparent,var(--wd-gold),transparent);opacity:.7}
.wd-wallet-top{position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between}
.wd-wallet-label{display:block;font-size:9.5px;font-weight:800;letter-spacing:1.4px;color:rgba(255,255,255,.68);margin-bottom:8px}
.wd-wallet-amount{display:flex;align-items:baseline;gap:5px;color:#fff;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:30px;font-weight:700;letter-spacing:-.8px}
.wd-wallet-currency{font-size:17px;color:var(--wd-gold);font-weight:700}
.wd-wallet-mark{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.14);border:1px solid var(--wd-gold);color:var(--wd-gold);font-size:16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
.wd-wallet-bottom{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;padding-top:13px;border-top:1px solid rgba(255,255,255,.16)}
.wd-wallet-status{display:flex;align-items:center;gap:7px;font-size:10.5px;font-weight:600;color:rgba(255,255,255,.78)}
.wd-status-dot{width:6px;height:6px;border-radius:50%;background:var(--wd-gold);box-shadow:0 0 0 4px rgba(201,162,75,.22)}
.wd-wallet-arrow{color:rgba(255,255,255,.6);font-size:10px}

/* SECTION HEADINGS */
.wd-block-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}
.wd-block-heading>div:first-child{display:flex;align-items:center;gap:11px}
.wd-step{width:28px;height:28px;flex-shrink:0;border-radius:9px;display:flex;align-items:center;justify-content:center;background:linear-gradient(160deg,var(--wd-blue-bright),var(--wd-blue));color:#fff;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:9.5px;font-weight:700;box-shadow:0 6px 12px -4px rgba(0,50,160,.4)}
.wd-block-heading h3{margin:0 0 2px;color:var(--wd-ink);font-size:13.5px;font-weight:800}
.wd-block-heading p{margin:0;color:var(--wd-muted);font-size:10.5px}
.wd-heading-icon{color:var(--wd-blue-bright);font-size:15px}

/* ACCOUNT CARDS */
.wd-account-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.wd-account-item{position:relative;min-width:0;min-height:126px;padding:14px;border-radius:17px;background:#fff;border:1.5px solid var(--wd-line);cursor:pointer;display:flex;flex-direction:column;justify-content:space-between;transition:.2s}
.wd-account-item:hover{border-color:#B9CDF2}
.wd-account-item.selected{background:linear-gradient(180deg,#F3F7FF 0%,#fff 100%);border-color:var(--wd-blue-bright);box-shadow:0 10px 24px -14px rgba(0,50,160,.3)}
.wd-account-item:active{transform:scale(.98)}
.wd-account-logo{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(160deg,var(--wd-blue-bright),var(--wd-blue));box-shadow:0 8px 16px -4px rgba(0,50,160,.4);font-size:12px}
.wd-account-content{display:flex;flex-direction:column;min-width:0;margin-top:12px}
.wd-account-label{font-size:8px;font-weight:800;letter-spacing:1.1px;color:var(--wd-blue);margin-bottom:4px}
.wd-channel-name{color:var(--wd-ink);font-size:10.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wd-channel-sub{color:var(--wd-faint);font-size:8.5px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wd-account-check{position:absolute;top:12px;right:12px;width:19px;height:19px;border-radius:50%;border:1px solid var(--wd-line);display:flex;align-items:center;justify-content:center;color:transparent;font-size:7px;background:#fff}
.wd-account-item.selected .wd-account-check{background:linear-gradient(135deg,var(--wd-blue-bright),var(--wd-blue));border-color:transparent;color:#fff}
.wd-channel-note{margin:9px 2px 0;color:var(--wd-faint);font-size:9.5px;line-height:1.45}

/* AMOUNT — dashed input like your invite/gift codes */
.wd-amount-input{position:relative;height:86px;display:flex;align-items:center;padding:0 18px;border-radius:18px;background:#F7FAFF;border:1.5px dashed #A9C2EE;transition:.2s;box-sizing:border-box}
.wd-amount-input:focus-within{border-color:var(--wd-blue-bright);border-style:solid;background:#fff;box-shadow:0 0 0 4px rgba(62,123,255,.14)}
.wd-currency{color:var(--wd-blue);font-size:22px;font-weight:800;margin-right:8px}
.wd-input{width:100%;border:0;outline:0;background:transparent;color:var(--wd-ink);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:28px;font-weight:700;letter-spacing:-.5px}
.wd-input::placeholder{color:var(--wd-faint)}
.wd-amount-tag{flex-shrink:0;padding:6px 9px;border-radius:7px;background:#EAF1FF;color:var(--wd-blue);font-size:8.5px;font-weight:800;letter-spacing:.6px}
.wd-amount-meta{display:flex;justify-content:space-between;align-items:center;margin-top:9px;padding:0 3px;color:var(--wd-faint);font-size:10px}
.wd-amount-meta strong{color:var(--wd-ink);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10px}

/* SUMMARY — gold accent on the receive figure */
.wd-summary{border-top:1px solid var(--wd-line);border-bottom:1px solid var(--wd-line);padding:16px 2px 17px}
.wd-summary-head{display:flex;align-items:center;justify-content:space-between;color:var(--wd-muted);font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;margin-bottom:14px}
.wd-summary-head i{color:var(--wd-blue-bright);font-size:10px}
.wd-summary-grid{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.wd-summary-item{display:flex;flex-direction:column;gap:5px}
.wd-summary-item>span{color:var(--wd-faint);font-size:9.5px}
.wd-summary-item strong{color:var(--wd-ink);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:15px;font-weight:700}
.wd-summary-item small{color:var(--wd-faint);font-size:8.5px}
.wd-summary-receive{text-align:right}
.wd-summary-receive strong{color:var(--wd-gold);text-shadow:0 0 14px rgba(201,162,75,.25)}
.wd-summary-divider{width:1px;height:38px;background:var(--wd-line);margin:0 18px}

/* CTA — glossy sheen, matches every other CTA in the app */
.wd-submit-btn{position:relative;overflow:hidden;width:100%;height:57px;padding:0 8px 0 20px;display:flex;align-items:center;justify-content:space-between;border:0;border-radius:16px;background:linear-gradient(160deg,var(--wd-blue-bright),var(--wd-blue));color:#fff;font-family:inherit;font-size:13.5px;font-weight:800;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 14px 28px -8px rgba(0,50,160,.48);transition:.2s}
.wd-submit-btn::after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(120deg,transparent,rgba(255,255,255,.35),transparent);transform:skewX(-20deg)}
.wd-submit-btn:hover{filter:brightness(1.05)} .wd-submit-btn:active{transform:scale(.985)}
.wd-submit-btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.wd-submit-icon{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.18);font-size:11px}

/* GUIDELINES */
.wd-guidelines-box{display:flex;gap:12px;padding:15px;border-radius:16px;background:#F7FAFF;border:1px solid var(--wd-line);box-sizing:border-box;margin-bottom:25px}
.wd-guidelines-icon{width:34px;height:34px;flex-shrink:0;border-radius:11px;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(160deg,var(--wd-blue-bright),var(--wd-blue));box-shadow:0 6px 14px -4px rgba(0,50,160,.4);font-size:13px}
.wd-guidelines-content{flex:1;min-width:0}
.wd-guidelines-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.wd-guidelines-title{margin:0;color:var(--wd-ink);font-size:11px;font-weight:700}
.wd-guidelines-top span{color:var(--wd-blue);font-size:8px;font-weight:800;letter-spacing:.8px}
.wd-guidelines-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}
.wd-guidelines-list li{position:relative;padding-left:12px;color:var(--wd-muted);font-size:10px;line-height:1.5}
.wd-guidelines-list li::before{content:"";position:absolute;left:0;top:6px;width:4px;height:4px;border-radius:50%;background:var(--wd-gold)}
.wd-guidelines-list strong{color:var(--wd-ink);font-weight:700}

/* MOBILE */
@media (max-width:390px){
  .wd-container{padding-left:12px;padding-right:12px;gap:17px}
  .wd-wallet{min-height:154px;padding:18px;border-radius:20px}
  .wd-wallet-amount{font-size:26px}
  .wd-account-grid{gap:7px} .wd-account-item{min-height:116px;padding:12px}
  .wd-amount-input{height:80px} .wd-input{font-size:25px}
  .wd-submit-btn{height:54px}
}
@media (min-width:700px){
  .wd-container{max-width:560px;padding-top:26px}
  .wd-wallet{min-height:188px;padding:26px}
  .wd-wallet-amount{font-size:36px}
}

.wd-input::-webkit-inner-spin-button,.wd-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.wd-input[type="number"]{-moz-appearance:textfield}

@media (prefers-reduced-motion:reduce){
  .wd-account-item,.wd-submit-btn,.wd-back-btn,.wd-amount-input{transition:none}
}



:root {
  --brand-blue: #0032A0;
  --brand-blue-bright: #3E7BFF;
  --line: #E4EAF6;

  --ink: #0B0F19;
  --ink-muted: rgba(11, 15, 25, 0.55);
  --ink-faint: rgba(11, 15, 25, 0.34);

  --in: #16A34A;      /* credit / money in */
  --in-dk: #0E7A37;
  --out: #E11D48;     /* debit / money out */
  --out-dk: #AE1338;
  --pending: #F59E0B;
  --page-bg: #ffffff;
}

.bank-page {
  position: relative;
  background: var(--page-bg);
  min-height: 100vh;
  width: 100%;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  box-sizing: border-box;
  overflow-x: hidden;
}

/* faint blue dot field behind the header/banner — same identity as the rest of the app */
.bank-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 320px;
  pointer-events: none;
  opacity: 0.45;
  background-image: radial-gradient(var(--brand-blue-bright) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(180deg, black, transparent 85%);
  mask-image: linear-gradient(180deg, black, transparent 85%);
}


/* ── HEADER ── */
.records-hero {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 10;
}

.records-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.records-back-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 50, 160, 0.08);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.records-back-btn:hover { border-color: var(--brand-blue-bright); }
.records-back-btn:active { transform: scale(0.92); }

.records-hero-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  text-align: center;
  letter-spacing: -0.1px;
}

/* ── CONTENT ── */
.records-content-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 18px 14px 100px 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* =========================================================
   STATEMENT BANNER — Finland blue, guilloché texture,
   torn-paper edge feeding into the ledger below
========================================================= */

.records-total-banner {
  position: relative;
  background: linear-gradient(150deg, var(--brand-blue-bright) 0%, var(--brand-blue) 60%, #001F66 100%);
  border-radius: 20px 20px 0 0;
  padding: 20px 22px 26px;
  box-shadow: 0 16px 34px -10px rgba(0, 50, 160, 0.40);
  overflow: hidden;
  box-sizing: border-box;
}

/* fine dotted security-print texture on the banner itself */
.records-total-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 10px 10px;
}

.records-total-eyebrow {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.records-total-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.records-total-label {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.records-total-count {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
}

/* zigzag "torn receipt" seam between banner and ledger list */
.records-torn-edge {
  height: 12px;
  margin-bottom: 18px;
  background:
    linear-gradient(-45deg, var(--page-bg) 8px, transparent 0) 0 -4px,
    linear-gradient(45deg, var(--page-bg) 8px, transparent 0) 0 -4px;
  background-size: 16px 16px;
  background-repeat: repeat-x;
  background-color: var(--brand-blue);
  filter: drop-shadow(0 6px 10px rgba(0, 50, 160, 0.18));
}


/* =========================================================
   LEDGER LIST — vertical timeline rail through the icons
========================================================= */

#recordsContainer {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* the rail itself, threaded behind every icon */
#recordsContainer::before {
  content: "";
  position: absolute;
  top: 41px;
  bottom: 41px;
  left: 32px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--line) 0 5px,
    transparent 5px 10px
  );
  z-index: 0;
}

.record-card {
  position: relative;
  z-index: 1;
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #FBFCFF 100%);
  border-radius: 16px;
  padding: 16px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px -12px rgba(0, 50, 160, 0.18);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.record-card:last-child { margin-bottom: 0; }

.record-card:hover {
  border-color: color-mix(in srgb, var(--brand-blue-bright) 40%, var(--line));
  transform: translateY(-1px);
}

/* ── ICON — 3D puck, same construction language as the action grid ── */
.record-icon-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  background: linear-gradient(160deg, var(--puck-light) 0%, var(--puck-dark) 100%);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.5),
    inset 0 -5px 7px rgba(0, 0, 0, 0.16),
    0 8px 14px -6px var(--puck-glow),
    0 0 0 4px #ffffff; /* the "bead on the rail" ring */
}

.record-icon-wrap.credit-icon {
  --puck-light: #34D072;
  --puck-dark: var(--in);
  --puck-glow: rgba(22, 163, 74, 0.42);
  color: #ffffff;
}

.record-icon-wrap.debit-icon {
  --puck-light: #F0466F;
  --puck-dark: var(--out);
  --puck-glow: rgba(225, 29, 72, 0.42);
  color: #ffffff;
}

.record-icon-wrap svg,
.record-icon-wrap i {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

/* ── CARD BODY ── */
.record-card-body {
  flex: 1;
  min-width: 0;
}

.record-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.record-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  display: block;
  letter-spacing: 0.1px;
}

.record-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-faint);
  margin-top: 4px;
  display: block;
}

.record-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.record-amount-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--in);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.record-amount-value.debit-amount { color: var(--out); }
.record-amount-value.pending-amount { color: var(--pending); }
.record-amount-value.failed-amount {
  color: var(--ink-faint);
  text-decoration: line-through;
}

/* ── STATUS BADGE ── */
.record-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px 5px 8px;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.record-status-badge svg { flex-shrink: 0; }

.status-approved { background: #EAFBF0; color: var(--in-dk); border: 1px solid #CDF2DA; }
.status-pending  { background: #FEF3E2; color: #B45309;    border: 1px solid #FBE3B8; }
.status-failed   { background: #FDEBEF; color: var(--out-dk); border: 1px solid #F8CEDA; }

.record-subtitle-row {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 2px;
}

/* order id styled like a barcode/stub, echoing the ticket motif */
.record-order-id {
  font-size: 10px;
  color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.5px;
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

@media (max-width: 380px) {
  .records-total-banner { padding: 18px 18px 22px; }
  .records-total-count { font-size: 22px; }
  .record-card { padding: 14px; gap: 12px; }
  .record-icon-wrap { width: 40px; height: 40px; border-radius: 12px; }
}


/* ================= MODAL OVERLAY ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

/* ================= MODAL CARD ================= */
.modal-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}

/* ================= HEADER ================= */
.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sheet-title {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
}

.close-sheet {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

/* ================= INNER CARD ================= */
.slim-card {
  background: #f7f7f7;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 25px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ================= PRODUCT ROW ================= */
.product-main-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-icon-container {
  width: 48px;
  height: 48px;
  background: #2D6BEF;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  color: #000000;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= PRODUCT DETAILS ================= */
.product-details strong {
  font-size: 17px;
  font-weight: 700;
  display: block;
  color: #111;
}

.product-details p {
  font-size: 14px;
  color: #444;
  margin-top: 3px;
}

/* ================= DIVIDER ================= */
.divider-line {
  height: 1px;
  background: #e5e5e5;
  margin: 14px 0;
}

/* ================= BALANCE ================= */
.account-balance-row {
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

/* ================= PURCHASE BUTTON ================= */
.purchase-btn {
  background: #2D6BEF;
  color: white;
  border: none;
  border-radius: 40px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  margin: auto;
  box-shadow: 0 6px 15px rgba(47,72,236,0.4);
  transition: transform 0.15s ease;
}

.purchase-btn:active {
  transform: scale(0.95);
}

/* ================= MOBILE ================= */
@media (max-width:480px){

.modal-card{
padding:20px;
}

.sheet-title{
font-size:20px;
}

.product-details strong{
font-size:16px;
}

.product-details p,
.account-balance-row{
font-size:13px;
}

.purchase-btn{
font-size:14px;
padding:10px 22px;
}

}


:root {
  --brand-blue: #0032A0;
  --brand-blue-bright: #3E7BFF;
  --brand-blue-deep: #001F66;

  --line: #E4EAF6;
  --ink: #0B0F19;
  --ink-muted: rgba(11, 15, 25, 0.55);
  --ink-faint: rgba(11, 15, 25, 0.34);

  --up: #16A34A;
  --up-soft: #EAFBF0;
  --amber: #F59E0B;
}

.investment-page {
  position: relative;
  background: #ffffff;
  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(--ink);
}

/* faint dot field, same identity as the rest of the app */
.investment-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 320px;
  pointer-events: none;
  opacity: 0.45;
  background-image: radial-gradient(var(--brand-blue-bright) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(180deg, black, transparent 85%);
  mask-image: linear-gradient(180deg, black, transparent 85%);
}


/* =========================================================
   HEADER
   ========================================================= */

.investment-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 62px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  z-index: 10000;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0, 50, 160, 0.05);
  box-sizing: border-box;
}

.investment-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.investment-header-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--brand-blue-bright);
}

.investment-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.investment-back-btn {
  position: absolute;
  left: 16px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--brand-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0, 50, 160, 0.08);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.investment-back-btn:hover { border-color: var(--brand-blue-bright); }
.investment-back-btn:active { transform: scale(0.92); }

.investment-header-mark {
  position: absolute;
  right: 16px;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--brand-blue-bright), var(--brand-blue));
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 6px 14px -4px rgba(0, 50, 160, 0.4);
}


/* =========================================================
   CONTAINER
   ========================================================= */

.card-wrapper {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: calc(62px + env(safe-area-inset-top, 0px) + 18px) 16px 100px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}


/* =========================================================
   PORTFOLIO HERO
   ========================================================= */

.inv-hero-card {
  position: relative;
  overflow: hidden;

  padding: 22px;
  box-sizing: border-box;
  border-radius: 22px;

  background: linear-gradient(150deg, var(--brand-blue-bright) 0%, var(--brand-blue) 60%, var(--brand-blue-deep) 100%);
  box-shadow: 0 18px 38px -12px rgba(0, 50, 160, 0.40);
  color: #ffffff;
}

.inv-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 10px 10px;
}

.inv-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.inv-hero-label {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 8px;
}

.inv-hero-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.inv-hero-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 17px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* overall progress tracker */
.inv-hero-progress-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.inv-hero-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

.inv-hero-progress-labels span:last-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #ffffff;
}

.inv-hero-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.inv-hero-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.75));
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
}

.inv-hero-stats-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.inv-hero-stat {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inv-hero-stat-label {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.inv-hero-stat strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inv-hero-stat-divider {
  width: 1px;
  height: 26px;
  margin: 0 12px;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}


/* =========================================================
   PROJECTION STRIP
   ========================================================= */

.inv-projection-strip {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 16px;
  border-radius: 16px;

  background: #F7FAFF;
  border: 1px dashed #A9C2EE;
  box-sizing: border-box;
}

.inv-projection-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--brand-blue-bright), var(--brand-blue));
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 6px 14px -4px rgba(0, 50, 160, 0.4);
}

.inv-projection-text,
.inv-projection-remaining {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.inv-projection-text { flex: 1; min-width: 0; }

.inv-projection-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.inv-projection-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-blue);
}

.inv-projection-remaining-value {
  color: var(--up);
}

.inv-projection-remaining {
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
}


/* =========================================================
   LIST HEADING
   ========================================================= */

.inv-list-heading {
  padding: 4px 2px 0;
}

.inv-list-heading-small {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--brand-blue-bright);
  margin-bottom: 4px;
}

.inv-list-heading h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.2px;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.inv-empty-state {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-radius: 20px;
  padding: 46px 20px;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px -16px rgba(0, 50, 160, 0.18);
  margin-top: 4px;
  box-sizing: border-box;
}

.inv-empty-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-size: 22px;
  color: #ffffff;
  background: linear-gradient(160deg, var(--brand-blue-bright), var(--brand-blue));
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.45),
    inset 0 -5px 7px rgba(0, 0, 0, 0.16),
    0 10px 20px -6px rgba(0, 50, 160, 0.42);
}

.inv-empty-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px 0;
}

.inv-empty-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin: 0 0 20px 0;
}

.inv-browse-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--brand-blue-bright), var(--brand-blue));
  color: #ffffff;
  border: none;
  padding: 13px 26px;
  border-radius: 13px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 10px 22px -8px rgba(0, 50, 160, 0.48);
}

.inv-browse-btn:active { transform: scale(0.97); }


/* =========================================================
   INVESTMENT LIST
   ========================================================= */

#investmentCardsList {
  display: flex;
  flex-direction: column;
  gap: 14px;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.premium-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #FBFCFF 100%);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px -16px rgba(0, 50, 160, 0.22);
  padding: 18px;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.premium-card:hover {
  border-color: color-mix(in srgb, var(--brand-blue-bright) 35%, var(--line));
  box-shadow: 0 14px 30px -14px rgba(0, 50, 160, 0.26);
  transform: translateY(-1px);
}

.premium-card.is-completed {
  opacity: 0.88;
}

.inv-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}

.inv-card-top-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.inv-card-thumb {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.inv-card-title-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.inv-plan-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inv-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
}

.inv-status-chip.status-active {
  color: var(--up);
  background: var(--up-soft);
}

.inv-status-chip.status-completed {
  color: var(--ink-muted);
  background: #EFF2F8;
}

.inv-status-chip .status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.inv-price-badge {
  flex-shrink: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: linear-gradient(135deg, var(--brand-blue-bright), var(--brand-blue));
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 20px;
  box-shadow: 0 6px 14px -4px rgba(0, 50, 160, 0.4);
  white-space: nowrap;
}

/* ── per-card cycle progress bar ── */
.inv-card-progress-wrap {
  margin-bottom: 14px;
}

.inv-card-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
}

.inv-card-progress-labels span:first-child {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-muted);
}

.inv-card-progress-labels span:last-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-blue);
}

.inv-card-progress-track {
  height: 7px;
  border-radius: 999px;
  background: #EEF2FA;
  overflow: hidden;
}

.inv-card-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue-bright), var(--brand-blue));
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
}

.inv-card-progress-fill.is-complete {
  background: linear-gradient(90deg, #34D072, var(--up));
}

.inv-grid-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 12px;
}

.inv-mini-box {
  background: #F7FAFF;
  border-radius: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
}

.inv-mini-box.full-width {
  grid-column: span 2;
  background: linear-gradient(135deg, #EAF1FF, #E1EBFF);
  border-color: #D8E6FF;
}

.inv-mini-label {
  font-size: 10.5px;
  color: var(--ink-faint);
  margin-bottom: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.inv-mini-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.inv-mini-value.value-up { color: var(--up); }

.inv-mini-box.full-width .inv-mini-value {
  color: var(--brand-blue);
  font-size: 15.5px;
}

.inv-countdown-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.inv-countdown-footer i {
  font-family: 'Font Awesome 6 Free';
  color: var(--brand-blue-bright);
  font-size: 12px;
}

.inv-countdown-footer.is-complete {
  color: var(--up);
}

.inv-countdown-footer.is-complete i {
  color: var(--up);
}


/* =========================================================
   SWAL POPUP (unchanged)
   ========================================================= */

.gle-swal-popup {
  border-radius: 20px !important;
  padding: 28px 22px !important;
  box-shadow: 0 20px 50px rgba(2, 65, 184, 0.15) !important;
}

.gle-swal-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0b1220 !important;
}

.gle-swal-text {
  font-family: 'Inter', sans-serif !important;
  font-size: 13.5px !important;
  color: #64748b !important;
}

.gle-swal-confirm {
  background: #0032A0 !important;
  color: #ffffff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 12px 28px !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 6px 16px rgba(0, 50, 160, 0.25) !important;
}

.gle-swal-confirm:hover {
  background: #001F66 !important;
}

.gle-swal-icon {
  border-color: #eaf0fe !important;
}


@media (max-width: 380px) {
  .inv-hero-value { font-size: 23px; }
  .inv-hero-stat-divider { margin: 0 8px; }
  .premium-card { padding: 15px; }
  .inv-price-badge { font-size: 11px; padding: 6px 11px; }
}



:root {
  --pw-blue:        #0A4CFF;
  --pw-blue-deep:   #0032A0;
  --pw-blue-light:  #EAF1FF;
  --pw-ink:         #101423;
  --pw-muted:       #8A93A6;
  --pw-border:      #E9EDF5;
  --pw-danger:      #E5484D;
  --pw-warn:        #E3A008;
  --pw-good:        #16A34A;
}

.password-page {
  background: #ffffff;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

/* ===================== FLAT TOP BAR ===================== */
.pw-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid var(--pw-border);
}

.pw-back-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--pw-border);
  background: #ffffff;
  color: var(--pw-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.pw-back-btn:hover { background: var(--pw-blue-light); border-color: var(--pw-blue); }

.pw-topbar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--pw-ink);
}

/* ===================== CONTAINER ===================== */
.pw-container {
  max-width: 460px;
  margin: 0 auto;
  padding: 28px 20px 60px;
  box-sizing: border-box;
}

/* ===================== SECURITY BADGE — radar rings ===================== */
.pw-badge-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 4px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pw-badge-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--pw-blue);
  opacity: 0;
  animation: pwRadar 2.6s ease-out infinite;
}
.pw-ring-1 { width: 100%; height: 100%; animation-delay: 0s; }
.pw-ring-2 { width: 100%; height: 100%; animation-delay: 1.3s; }

@keyframes pwRadar {
  0%   { transform: scale(0.6); opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}

.pw-badge-core {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pw-blue), var(--pw-blue-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(10, 76, 255, 0.30);
}

.pw-badge-core i {
  font-size: 24px;
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .pw-badge-ring { animation: none; opacity: 0; }
}

/* ===================== HEADING ===================== */
.pw-heading {
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  color: var(--pw-ink);
  margin: 0 0 6px;
}

.pw-subheading {
  text-align: center;
  font-size: 12.5px;
  color: var(--pw-muted);
  line-height: 1.5;
  margin: 0 0 30px;
  padding: 0 10px;
}

/* ===================== FORM ===================== */
.pw-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Floating-label field — underline style, no boxed background */
.pw-field-group {
  position: relative;
  display: flex;
  align-items: center;
  padding: 6px 30px 10px 30px;
}

.pw-field-icon {
  position: absolute;
  left: 0;
  bottom: 13px;
  font-size: 14px;
  color: var(--pw-muted);
  transition: color 0.2s ease;
}

.pw-field-group input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--pw-ink);
  width: 100%;
  font-family: inherit;
  padding: 4px 0 8px;
}

.pw-field-group label {
  position: absolute;
  left: 30px;
  bottom: 10px;
  font-size: 15px;
  color: var(--pw-muted);
  pointer-events: none;
  transition: all 0.18s ease;
}

/* Float the label up when focused or filled */
.pw-field-group input:focus + label,
.pw-field-group input:not(:placeholder-shown) + label {
  bottom: 32px;
  font-size: 11px;
  font-weight: 700;
  color: var(--pw-blue);
  letter-spacing: 0.3px;
}

.pw-field-underline {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;
  height: 1.5px;
  background: var(--pw-border);
}

.pw-field-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 0;
  background: var(--pw-blue);
  transition: width 0.25s ease;
}

.pw-field-group input:focus ~ .pw-field-underline::after { width: 100%; }
.pw-field-group input:focus ~ .pw-field-icon { color: var(--pw-blue); }

.pw-eye-icon {
  position: absolute;
  right: 0;
  bottom: 12px;
  cursor: pointer;
  color: var(--pw-muted);
  font-size: 14px;
  transition: color 0.2s ease;
}
.pw-eye-icon:hover { color: var(--pw-blue); }

/* ===================== STRENGTH METER ===================== */
.pw-strength-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: -12px;
  padding: 0 30px;
}

.pw-strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--pw-border);
  overflow: hidden;
}

.pw-strength-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

.pw-strength-0 { background: var(--pw-danger); }
.pw-strength-1 { background: var(--pw-warn); }
.pw-strength-2 { background: #3E7BFF; }
.pw-strength-3 { background: var(--pw-good); }

.pw-strength-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--pw-muted);
  min-width: 38px;
  text-align: right;
}

/* ===================== SUBMIT BUTTON ===================== */
.pw-submit-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pw-blue), var(--pw-blue-deep));
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  margin-top: 8px;
  box-shadow: 0 10px 24px rgba(10, 76, 255, 0.30);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pw-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(10, 76, 255, 0.40);
}
.pw-submit-btn:active { transform: scale(0.98); }
.pw-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}




.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);
}



:root {
  --brand-blue: #0032A0;
  --brand-blue-bright: #3E7BFF;

  --page-bg: #ffffff;
  --card-bg: #ffffff;
  --line: #E4EAF6;

  --ink: #0B0F19;
  --ink-muted: rgba(11, 15, 25, 0.56);

  /* tier colors — blue / yellow / purple / red */
  --tier-starter: #0032A0;
  --tier-starter-soft: #EAF1FF;

  --tier-popular: #D97706;
  --tier-popular-soft: #FEF3E2;

  --tier-bestvalue: #7C3AED;
  --tier-bestvalue-soft: #F3EBFF;

  --tier-premium: #E11D48;
  --tier-premium-soft: #FDEBEF;
}

/* ── HEADER ROW ── */
.mx-products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 4px 16px;
  box-sizing: border-box;
}

.mx-products-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.3px;
}

.mx-products-count {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.3px;
}

/* ── PRODUCT LIST ── */
#dynamicProductList {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 12px 16px 80px 16px;
  box-sizing: border-box;
  background: var(--page-bg);
}

/* ── PRODUCT CARD ── */
.mx-product-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  display: flex;
  align-items: center;
  gap: 14px;

  background: linear-gradient(180deg, #ffffff 0%, #FBFCFF 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 16px 20px 24px;
  box-sizing: border-box;

  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 34px -14px rgba(0, 50, 160, 0.18),
    0 2px 6px rgba(11, 15, 25, 0.05);

  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mx-product-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tier-starter) 35%, var(--line));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 22px 40px -14px rgba(0, 50, 160, 0.26),
    0 2px 6px rgba(11, 15, 25, 0.06);
}

/* Guilloché-style watermark — faint banknote/certificate texture, tier-tinted */
.mx-product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background:
    repeating-radial-gradient(
      circle at 0 50%,
      var(--tier-starter) 0px,
      var(--tier-starter) 1px,
      transparent 1px,
      transparent 7px
    );
  background-size: 140px 140px;
  background-position: right -40px center;
}

/* Rounded accent bar replacing the flat left border — glows in tier color */
.mx-product-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 5px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, var(--tier-starter), color-mix(in srgb, var(--tier-starter) 60%, #ffffff));
  box-shadow: 3px 0 12px -2px color-mix(in srgb, var(--tier-starter) 55%, transparent);
  z-index: 1;
}

.mx-tier-popular::before   { background-image: repeating-radial-gradient(circle at 0 50%, var(--tier-popular) 0px, var(--tier-popular) 1px, transparent 1px, transparent 7px); background-size: 140px 140px; }
.mx-tier-bestvalue::before { background-image: repeating-radial-gradient(circle at 0 50%, var(--tier-bestvalue) 0px, var(--tier-bestvalue) 1px, transparent 1px, transparent 7px); background-size: 140px 140px; }
.mx-tier-premium::before   { background-image: repeating-radial-gradient(circle at 0 50%, var(--tier-premium) 0px, var(--tier-premium) 1px, transparent 1px, transparent 7px); background-size: 140px 140px; }

.mx-tier-popular::after   { background: linear-gradient(180deg, var(--tier-popular), color-mix(in srgb, var(--tier-popular) 60%, #ffffff)); box-shadow: 3px 0 12px -2px color-mix(in srgb, var(--tier-popular) 55%, transparent); }
.mx-tier-bestvalue::after { background: linear-gradient(180deg, var(--tier-bestvalue), color-mix(in srgb, var(--tier-bestvalue) 60%, #ffffff)); box-shadow: 3px 0 12px -2px color-mix(in srgb, var(--tier-bestvalue) 55%, transparent); }
.mx-tier-premium::after   { background: linear-gradient(180deg, var(--tier-premium), color-mix(in srgb, var(--tier-premium) 60%, #ffffff)); box-shadow: 3px 0 12px -2px color-mix(in srgb, var(--tier-premium) 55%, transparent); }

/* Ribbon badge — dimensional fold, tier colored */
.mx-card-badge {
  position: absolute;
  top: 16px;
  left: 5px;
  padding: 6px 16px 6px 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--tier-starter), color-mix(in srgb, var(--tier-starter) 70%, #000));
  clip-path: polygon(0 0, 100% 0, 86% 50%, 100% 100%, 0 100%);
  z-index: 3;
}

/* folded shadow underneath the ribbon for depth */
.mx-card-badge::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 10px;
  height: 5px;
  background: rgba(0, 0, 0, 0.28);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.mx-tier-popular   .mx-card-badge { background: linear-gradient(135deg, var(--tier-popular), color-mix(in srgb, var(--tier-popular) 70%, #000)); }
.mx-tier-bestvalue .mx-card-badge { background: linear-gradient(135deg, var(--tier-bestvalue), color-mix(in srgb, var(--tier-bestvalue) 70%, #000)); }
.mx-tier-premium   .mx-card-badge { background: linear-gradient(135deg, var(--tier-premium), color-mix(in srgb, var(--tier-premium) 70%, #000)); }

/* Circular image slot — tier-colored ring + lift */
.mx-card-media {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tier-starter-soft);
  border: 2px solid #ffffff;
  outline: 2px solid color-mix(in srgb, var(--tier-starter) 40%, transparent);
  box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--tier-starter) 45%, transparent);
  margin-top: 12px;
}

.mx-tier-popular   .mx-card-media { background: var(--tier-popular-soft);   outline-color: color-mix(in srgb, var(--tier-popular) 40%, transparent);   box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--tier-popular) 45%, transparent); }
.mx-tier-bestvalue .mx-card-media { background: var(--tier-bestvalue-soft); outline-color: color-mix(in srgb, var(--tier-bestvalue) 40%, transparent); box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--tier-bestvalue) 45%, transparent); }
.mx-tier-premium   .mx-card-media { background: var(--tier-premium-soft);  outline-color: color-mix(in srgb, var(--tier-premium) 40%, transparent);  box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--tier-premium) 45%, transparent); }

.mx-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Info column */
.mx-card-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  margin-top: 12px;
}

.mx-plan-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 9px 0;
  letter-spacing: -0.2px;
}

.mx-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}

.mx-info-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-blue-bright);
  color: #ffffff;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mx-info-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

/* Income value — promoted to a small premium stat chip */
.mx-info-val.income-val {
  display: inline-flex;
  align-items: center;
  color: #15803D;
  font-weight: 800;
  background: #EAFBF0;
  border: 1px solid #CDF2DA;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12.5px;
}

/* Divider — punch-hole notches, matching the invite ticket language */
.mx-card-divider {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 1px;
  align-self: stretch;
  background: repeating-linear-gradient(to bottom, var(--line) 0 4px, transparent 4px 9px);
  margin: 6px 0;
}

.mx-card-divider::before,
.mx-card-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--page-bg);
  border: 1px solid var(--line);
  transform: translateX(-50%);
}

.mx-card-divider::before { top: -6px; }
.mx-card-divider::after  { bottom: -6px; }

/* ── BUY BUTTON — glossy, tier-glowing ── */
.mx-add-to-portfolio-btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  background: linear-gradient(160deg, var(--brand-blue-bright) 0%, var(--brand-blue) 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 16px 18px;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 20px -6px rgba(0, 50, 160, 0.45);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  font-family: 'Inter', sans-serif;
}

.mx-add-to-portfolio-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
}

.mx-add-to-portfolio-btn:hover {
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 12px 24px -6px rgba(62, 123, 255, 0.5);
}

.mx-add-to-portfolio-btn:active { transform: scale(0.95); }

.mx-loader, .mx-error {
  text-align: center;
  padding: 30px;
  color: var(--ink-muted);
  font-size: 14px;
}

@media (max-width: 380px) {
  .mx-product-card { padding: 18px 12px 18px 20px; gap: 10px; }
  .mx-card-media { width: 68px; height: 68px; }
  .mx-plan-name { font-size: 15px; }
  .mx-add-to-portfolio-btn { padding: 14px 12px; font-size: 12px; }
}


/* No hover state defined, so it will remain static */

/* This targets the <a> tag wrapping your settings item */
a.settings-link-wrapper {
    text-decoration: none !important; /* Forces the underline to disappear */
    color: inherit !important;        /* Forces the text to stay your app's color */
    display: block;                   /* Makes the whole row clickable */
    -webkit-tap-highlight-color: transparent; /* Removes the gray box on mobile tap */
}

/* Optional: Add a slight hover or active effect so the user knows it's a button */
a.settings-link-wrapper:active {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

/* ================= CUSTOM ALERT ================= */
.custom-alert {
  position: fixed !important;

  top: 50% !important;
  left: 50% !important;

  transform: translate(-50%, -50%) !important;

  background: rgba(0, 0, 0, 0.85);
  color: #fff;

  padding: 14px 24px;
  border-radius: 12px;

  font-size: 15px;
  text-align: center;

  max-width: 90%;
  width: max-content;

  box-shadow: 0 8px 20px rgba(0,0,0,0.5);

  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;

  z-index: 999999; /* higher than EVERYTHING */
}

.custom-alert.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) !important;
}
.custom-alert {
  right: auto;
  margin: 0;
}

.custom-alert.show {
  animation: alertPop 0.3s ease;
}

@keyframes alertPop {
  0% {
    transform: translate(-50%, -60%) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}


/* ================= EMPTY STATE UI (PRODUCT STYLE) ================= */
.empty-state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  padding: 40px 20px; 
  margin: 15px;
  text-align: center;
  
  /* Card Design: Stretch like an ATM card */
  background: #ffffff;
  border-radius: 16px; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  
  width: auto; 
  max-width: 100%; 
  box-sizing: border-box;
}

.empty-icon-circle {
  width: 70px; /* Slightly larger for product focus */
  height: 70px;
  background: #f8f9fa; /* Clean grey/white tint */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.empty-icon-circle i {
  font-size: 28px;
  color: #121b1e; /* Bold dark icon */
}

.empty-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Poppins', sans-serif;
}

.empty-subtitle {
  margin: 8px 0 25px 0;
  font-size: 14px;
  color: #777;
  font-weight: 400;
  line-height: 1.5;
  max-width: 280px; /* Keeps text centered and readable */
}

/* THE BUTTON - Full width button */
.browse-plans-btn {
  background: #4b0082; 
  color: #ffffff;
  border: none;
  width: 100%; 
  max-width: 300px; /* Adjusted for better card balance */
  padding: 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.browse-plans-btn:active {
  transform: scale(0.97);
}


#pageLoader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff; /* Solid white background */
  z-index: 99999;

  opacity: 1;
  visibility: visible;

  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.clean-loader-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.clean-loading-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3.5px;

  color: #0052ff; /* Electric blue text */
  text-align: center;

  /* Blue glow shadow */
  text-shadow: 0 0 12px rgba(0, 82, 255, 0.3);

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated 3 blue dots */
.loader-dots::after {
  content: "";
  color: #0052ff;
  animation: loadingDots 1.5s steps(4, end) infinite;
}

@keyframes loadingDots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
  100% { content: ""; }
}

/* Hidden State */
#pageLoader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Header Image */
.product-header-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}


.debit-amount  { color: #ef4444; font-weight: 700; }
.pending-amount { color: #f59e0b; font-weight: 700; }
.failed-amount  { color: #94a3b8; font-weight: 700; text-decoration: line-through; }
.record-amount-value { color: #16a34a; font-weight: 700; }

/* Reviews Ticker Wrapper - fills remaining viewport height */
.reviews-ticker-wrapper {
  width: 100%;
  height: calc(100vh - 250px); /* adjust based on your header/image height */
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff; /* blue background */
  padding: 10px;
  box-sizing: border-box;
}

/* Ticker container */
.reviews-ticker {
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: scrollReviews 300s linear infinite; /* very slow scroll */
}

/* Each review item */
.review-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: #ffffff; /* white card background */
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  min-height: 80px; /* make each review taller */
}

/* User logo / icon */
.review-item .user-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0; /* keeps image from shrinking */
}

/* Review text */
.review-item .review-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: #79a2e5; /* blue text */
}

/* Smooth scroll animation */
@keyframes scrollReviews {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}



/* Full-width black box around dashboard image */
.dashboard-image-box-full {
    width: 100%;                 /* full width of parent container */
    background-color: #000000;   /* black box (you can change to green) */
    padding: 15px;               /* space inside box for image */
    border-radius: 16px;         /* rounded corners */
    box-sizing: border-box;
    text-align: center;          /* center image */
    margin: 20px 0;              /* vertical spacing only, no horizontal shift */
    overflow: hidden;            /* prevent any overflow */
}

/* Dashboard image inside the box */
.dashboard-image {
    max-width: 100%;             /* fit inside green box */
    height: auto;
    border-radius: 12px;         /* slightly rounded corners */
    display: inline-block;       /* center properly */
}




/* ===== PAYMENT TYPE ===== */
.payment-type {
  margin: 15px 0;
  text-align: left;
  width: 100%;
  position: relative;
  font-family: sans-serif;
}

.payment-type label {
  display: block;
  margin-bottom: 6px;
  color: #f4b400; /* green label */
  font-weight: 600;
  font-size: 14px;
}

/* The clickable box */
.payment-box {
  width: 100%;
  background: #ffffff;          /* white box */
  color: #000000;               /* green text */
  border: 1px solid #c0c0c0;   /* silver edge */
  border-radius: 12px;
  padding: 12px 15px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.payment-box:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.payment-box .arrow {
  font-size: 14px;
}



/* Options list hidden by default */
.payment-options {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 48px; /* below the box */
  width: 100%;
  background: #ffffff;
  border: 1px solid #c0c0c0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none; /* hidden initially */
  z-index: 100;
}

.payment-options li {
  padding: 10px 15px;
  cursor: pointer;
  color: #000000;
  font-weight: 500;
  transition: background 0.2s;
}

.payment-options li:hover {
  background: rgba(15,157,88,0.1); /* light green hover */
}


/* Selected Amount Display */
.selected-amount {
  font-weight: bold;
  color: #000000;   /* black */
  font-size: 20px;
  margin-top: 8px;
  text-align: center;
}



#paymentCountdown {
  margin-top: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #ff0707; /* green */
}


#paymentStatusMessage {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  display: none;
}


.status-pending {
  background: #f0fff6;
  color: #d29922;
}

.status-approved {
  background: #e6fff1;
  color: #1faa59;
}

.status-declined {
  background: #ffecec;
  color: #d62828;
}

.status-timeout {
  background: #fff6e5;
  color: #c77700;
}




/* ================= FLOATING TELEGRAM (PROFILE PAGE) ================= */
.profile-page .telegram-float-profile {
  position: fixed;
  bottom: 90px;              /* above bottom nav */
  right: 16px;               /* move to right */
  z-index: 9999;

  width: 56px;
  height: 56px;
  border-radius: 50%;

  background: #0088cc;       /* Telegram blue */
  color: #ffffff;            /* white icon/text */

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 26px;
  text-decoration: none;

  box-shadow: 0 8px 20px rgba(0,136,204,0.35);  /* subtle blue shadow */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover / tap */
.profile-page .telegram-float-profile:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(0,136,204,0.45); /* stronger blue shadow */
}

/* Mobile safe */
@media (max-width: 480px) {
  .profile-page .telegram-float-profile {
    bottom: 100px;
    right: 12px;            /* adjust right for mobile */
  }
}



#toast-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#toast-overlay.toast-show {
  opacity: 1;
}

.toast-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(20, 20, 20, 0.88);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 24px 26px;
  border-radius: 16px;
  font-family: -apple-system, 'SF Pro Display', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  max-width: 240px;
  min-width: 160px;
  box-sizing: border-box;
  transform: scale(0.9);
  transition: transform 0.25s ease;
}

#toast-overlay.toast-show .toast-inner {
  transform: scale(1);
}

.toast-type-icon {
  font-size: 30px;
  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 {
  line-height: 1.4;
  color: #ffffff;
}

@media (max-width: 480px) {
  .toast-inner {
    max-width: 260px;
  }
}

.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 {
  --tsk-gold: #F5A623;
  --tsk-gold-dark: #D68910;
  --tsk-gold-soft: #FEF3E2;
  --tsk-bg: #f6f7f9;
  --tsk-text-dark: #14151A;
  --tsk-text-muted: #64748b;
  --tsk-border: #eef1f6;
}

#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;
  padding-bottom: 100px;
}

/* ── SIMPLE HEADER ── */
.tsk-header {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid var(--tsk-border);
  box-sizing: border-box;
  position: relative;
}

.tsk-back-btn {
  position: absolute;
  left: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--tsk-text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
}

.tsk-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--tsk-text-dark);
  margin: 0;
}

/* ── STAT ROW ── */
.tsk-stat-row {
  display: flex;
  gap: 10px;
  padding: 16px;
  box-sizing: border-box;
}

.tsk-stat-box {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--tsk-border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-sizing: border-box;
}

.tsk-stat-label {
  font-size: 11px;
  color: var(--tsk-text-muted);
  font-weight: 500;
}

.tsk-stat-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--tsk-text-dark);
}

/* ── SECTION LABEL ── */
.tsk-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tsk-text-muted);
  padding: 0 16px 10px;
}

.tsk-section-label i {
  color: var(--tsk-gold-dark);
  font-size: 11px;
}

/* ── TASK LIST ── */
.tsk-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
}

/* ── TASK CARD (compact, matches reference layout) ── */
.tsk-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--tsk-border);
  border-radius: 14px;
  padding: 14px;
  box-sizing: border-box;
  width: 100%;
}

.tsk-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tsk-card-desc {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tsk-text-dark);
  line-height: 1.35;
  flex: 1;
}

/* Reward pill doubles as the claim button */
.tsk-reward-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 11px;
  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-reward-badge i {
  font-size: 11px;
}

.tsk-reward-badge.locked {
  background: var(--tsk-gold-soft);
  color: var(--tsk-gold-dark);
  opacity: 0.65;
  cursor: not-allowed;
}

.tsk-reward-badge.ready {
  background: var(--tsk-gold);
  color: #ffffff;
}

.tsk-reward-badge.ready:active {
  transform: scale(0.96);
  background: var(--tsk-gold-dark);
}

.tsk-reward-badge.received {
  background: #E5F7F0;
  color: #1BA97F;
  cursor: default;
}

/* ── progress numbers row ── */
.tsk-progress-numbers-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.tsk-progress-numbers {
  font-size: 11px;
  color: var(--tsk-text-muted);
  font-weight: 500;
}

.tsk-progress-pct {
  font-size: 11px;
  color: var(--tsk-text-muted);
  font-weight: 600;
}

.tsk-progress-bar-bg {
  width: 100%;
  height: 5px;
  background: #f1f4f9;
  border-radius: 10px;
  overflow: hidden;
}

.tsk-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--tsk-gold-dark), var(--tsk-gold));
  border-radius: 10px;
  transition: width 0.4s ease;
}




:root {
  --brand-blue: #0032A0;
  --brand-blue-bright: #3E7BFF;
  --ink: #0B0F19;
  --ink-muted: rgba(11, 15, 25, 0.55);
}

.brand-redirect-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

/* faint dot texture, same identity as the rest of the app */
.brand-redirect-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(var(--brand-blue-bright) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 65%);
  mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 65%);
}

.brand-redirect-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: brandFadeUp 0.5s ease-out;
}

@keyframes brandFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* glossy 3D badge, same construction as your action-grid icons */
.brand-redirect-mark {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(160deg, var(--brand-blue-bright) 0%, var(--brand-blue) 100%);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.45),
    inset 0 -6px 8px rgba(0, 0, 0, 0.16),
    0 14px 28px -8px rgba(0, 50, 160, 0.45);

  animation: brandMarkPulse 2.2s ease-in-out infinite;
}

.brand-redirect-mark i {
  font-size: 24px;
  color: #ffffff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

@keyframes brandMarkPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

.brand-redirect-title {
  margin: 0 0 10px;
  display: flex;
  align-items: baseline;
  gap: 9px;
  letter-spacing: -0.3px;
}

.brand-main {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}

.brand-divider {
  font-size: 20px;
  font-weight: 300;
  color: #C7D6F5;
}

.brand-sub {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-blue-bright), var(--brand-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-redirect-text {
  margin: 0 0 26px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

/* progress bar that fills like a real redirect handoff */
.brand-redirect-bar {
  width: 160px;
  height: 4px;
  border-radius: 999px;
  background: #E4EAF6;
  overflow: hidden;
}

.brand-redirect-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue-bright), var(--brand-blue));
  animation: brandBarFill 1.4s ease forwards;
}

@keyframes brandBarFill {
  0%   { width: 0%; }
  70%  { width: 88%; }
  100% { width: 100%; }
}

@media (max-width: 380px) {
  .brand-redirect-mark { width: 54px; height: 54px; border-radius: 15px; margin-bottom: 18px; }
  .brand-main, .brand-sub { font-size: 20px; }
}

/* =========================================================================
   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;
}


.pf-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  padding: 20px;
}

.pf-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 340px;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 51, 153, 0.15);
  border: 1px solid rgba(0, 51, 153, 0.08);
  animation: pfModalScale 0.25s ease-out;
}

.pf-modal-icon {
  width: 50px;
  height: 50px;
  background: #003399;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 51, 153, 0.2);
}

.pf-modal-title {
  margin: 0 0 8px 0;
  color: #003399;
  font-size: 18px;
  font-weight: 700;
}

.pf-modal-message {
  margin: 0 0 20px 0;
  color: #4A5568;
  font-size: 14px;
  line-height: 1.5;
}

.pf-modal-btn {
  width: 100%;
  background: #003399;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(0, 51, 153, 0.25);
}

.pf-modal-btn:hover {
  background: #002266;
}

.pf-modal-btn:active {
  transform: scale(0.98);
}

@keyframes pfModalScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}