/* ================= GENERAL RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --finland-blue: #003580;
  --finland-blue-dark: #002a66;
  --auth-text-dark: #14151A;
  --auth-text-muted: #6b7280;
}

.honda-auth-container {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  background-image: url('logo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 9999;
}

.honda-auth-container.active {
  display: block;
}

.auth-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
  z-index: 0;
}

/* ── CONTENT COLUMN — centered vertically ── */
.auth-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
  box-sizing: border-box;
}

/* ── LOGO ── */
.auth-logo-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px; /* Reduced from 28px to take it up */
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.auth-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-sizing: border-box;
}
/* ── FIELD STACK ── */
.auth-fields-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-field-pill {
  width: 100%;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 0 16px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-field-pill input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: var(--auth-text-dark);
  width: 100%;
  min-width: 0;
}

.auth-field-pill input::placeholder {
  color: #9aa0ac;
  font-weight: 400;
}

.auth-field-pill.has-prefix {
  padding-left: 14px;
}

.auth-phone-prefix {
  font-size: 14px;
  font-weight: 600;
  color: var(--auth-text-dark);
  flex-shrink: 0;
}

.auth-divider-line {
  width: 1px;
  height: 18px;
  background: #e2e4e9;
  flex-shrink: 0;
}

.eye-icon {
  cursor: pointer;
  color: #9aa0ac;
  font-size: 14px;
  flex-shrink: 0;
}

.eye-icon:hover { color: var(--finland-blue); }

/* ── CHECKBOX ── */
.auth-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  cursor: pointer;
  padding: 2px 4px;
}

.auth-checkbox-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--finland-blue);
}

/* ── SUBMIT BUTTON ── */
.auth-submit-pill {
  width: 100%;
  height: 48px;
  background: var(--finland-blue);
  color: #ffffff;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(0,53,128,0.4);
  transition: transform 0.1s, background 0.2s;
  margin-top: 6px;
}

.auth-submit-pill:active {
  transform: scale(0.98);
  background: var(--finland-blue-dark);
}

/* ── SWITCH PILL ── */
.auth-switch-pill {
  width: 100%;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 24px;
  height: 44px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--auth-text-muted);
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-switch-pill strong {
  color: var(--auth-text-dark);
  font-weight: 700;
}

.auth-switch-pill:active { transform: scale(0.98); }

/* ── MOBILE ── */
@media (max-width: 360px) {
  .auth-logo-circle { width: 76px; height: 76px; margin-bottom: 20px; }
  .auth-field-pill, .auth-submit-pill { height: 44px; }
}

@media (max-height: 650px) {
  .auth-logo-circle { width: 70px; height: 70px; margin-bottom: 16px; }
  .auth-content { padding: 20px 24px; }
  .auth-fields-stack { gap: 8px; }
}


/* ── RESET DASHBOARD TOP PADDING SO BANNER SITS AT THE ABSOLUTE TOP ── */
.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: 0 0 24px 0 !important; /* 🔥 Wiped out the 90px top padding completely */
  box-sizing: border-box;
  background: #f8f9fa;
  background-attachment: fixed;
  color: #192231;
}

/* ── ENSURE NO BODY OR HTML MARGINS PUSH IT DOWN ── */
body, html {
  margin: 0;
  padding: 0;
  background: #f8f9fa;
}

:root {
  --finland-blue: #003580;
  --finland-blue-dark: #002255;
  --finland-ice: #EAF1FF;
}

/* ── REMOVED HEADER COMPLETELY ── */
.dashboard-header {
  display: none !important;
}

/* ── EDGE-TO-EDGE BANNER IMAGE (Locked to the very top edge) ── */
.gle-slim-card {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  display: block !important;
  position: relative !important;
  top: 0 !important;
}

.gle-slim-card img {
  width: 100% !important;
  height: 280px !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
}

/* ── ACTION GRID & TICKER CONTAINER (Overlapping the banner image) ── */
.main-container {
  width: 100% !important;
  box-sizing: border-box !important;
  margin-top: -45px !important;
  position: relative !important;
  z-index: 10 !important;
}

.mx-menu-wrapper {
  width: calc(100% - 24px) !important;
  margin: 0 auto 12px auto !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 16px 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(0, 53, 128, 0.08) !important;
  box-sizing: border-box !important;
}

.action-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
}

.action-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: transform 0.15s !important;
}

.action-card:active { transform: scale(0.93) !important; }

/* ── SOLID FINLAND BLUE BADGES (White Icons & Text) ── */
.mx-circle-badge {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  background: var(--finland-blue) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(0, 53, 128, 0.25) !important;
}

.badge-recharge, 
.badge-withdraw, 
.badge-gift, 
.badge-team {
  background: var(--finland-blue) !important;
  color: #ffffff !important;
}

.action-icon {
  font-size: 16px !important;
  color: #ffffff !important;
}

.action-text {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  font-family: 'Inter', sans-serif !important;
  text-align: center !important;
}

/* ── LIVE TICKER ── */
.mx-ticker-wrapper {
  width: calc(100% - 24px) !important;
  margin: 0 auto 14px auto !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 53, 128, 0.08) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.mx-ticker-icon {
  color: var(--finland-blue) !important;
  font-size: 14px !important;
  flex-shrink: 0 !important;
}

.mx-ticker-content {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  height: 20px !important;
}

.mx-ticker-track {
  display: flex !important;
  flex-direction: column !important;
  position: absolute !important;
  width: 100% !important;
  animation: scrollTicker 9s infinite !important;
}

.mx-ticker-track span {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  white-space: nowrap !important;
  height: 20px !important;
  line-height: 20px !important;
  font-family: 'Inter', sans-serif !important;
}

@keyframes scrollTicker {
  0% { transform: translateY(0); }
  33% { transform: translateY(-20px); }
  66% { transform: translateY(-40px); }
  100% { transform: translateY(0); }
}



#giftCodePage {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f7f8fa;
  box-sizing: border-box;
  display: block;
}

.gift-page-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
}

.gift-back-btn {
  position: absolute;
  left: 16px;
  background: none;
  border: none;
  font-size: 16px;
  color: #14151A;
  cursor: pointer;
  padding: 4px;
}

.gift-page-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #14151A;
  font-family: 'Inter', sans-serif;
}

.gift-content {
  padding: 20px 16px;
  width: 100%;
  box-sizing: border-box;
}

/* ── IMAGE BANNER ── */
.gift-image-banner {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #e2e8f0;
}

.gift-image-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── INFO TEXT ── */
.gift-info-text-wrap {
  text-align: center;
  margin-bottom: 20px;
}

.gift-info-text-wrap p {
  margin: 0 0 4px 0;
  font-size: 12.5px;
  color: #334155;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
  font-weight: 400;
}

/* ── TELEGRAM CARD BUTTON ── */
.gift-telegram-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  border: 1px solid #edf2f7;
}

.gift-tg-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gift-tg-icon {
  width: 32px;
  height: 32px;
  background: #229ED9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
}

.gift-telegram-card span {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  font-family: 'Inter', sans-serif;
}

.gift-tg-arrow {
  font-size: 13px;
  color: #94a3b8;
}

/* ── INPUT FIELD ── */
.gift-input-wrapper {
  margin-bottom: 24px;
}

#giftCodeInput {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #14151A;
  font-size: 13.5px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  outline: none;
  box-sizing: border-box;
}

#giftCodeInput::placeholder {
  color: #94a3b8;
}

#giftCodeInput:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


.gift-receive-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 24px;
  background: #002255;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.gift-receive-btn:hover {
  opacity: 0.9;
}

.gift-receive-btn:active {
  transform: scale(0.98);
}


.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: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #003580 !important; /* Solid Finland blue background */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  z-index: 9999;
}

.nav-pill-container {
  height: 60px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}

.nav-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.55); /* Dimmed white for inactive items */
  gap: 3px;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-item svg {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s, transform 0.2s;
}

.nav-item .nav-label-text {
  font-size: 11px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

/* ── ACTIVE STATE (Pure White Highlight with a slight pop) ── */
.nav-item.active {
  color: #ffffff !important;
}

.nav-item.active svg {
  color: #ffffff !important;
  transform: translateY(-1px);
}

.nav-item.active .nav-label-text {
  color: #ffffff !important;
  font-weight: 700;
}


.nav-item:active {
  transform: scale(0.92);
}

.nav-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}


/* Default state */
#bottomNav {
    display: none; 
}

/* Visibility state */
.nav-visible {
    display: flex !important;
}




.ticker-search-bar {
  width: 90%;
  max-width: 400px;
  margin: 15px auto; /* Spacing between flyer and action buttons */
  height: 45px;
  background: #ffffff;
  border-radius: 50px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(157, 78, 221, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite; /* Adjust speed here */
}

.ticker-item {
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
  color: #5c6a7e;
  gap: 8px;
}

.user-icon {
  width: 24px;
  height: 24px;
  background: #9d4edd;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}



@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --finland-blue: #002f6c;
  --bg-main: #f0f2f5;
  --text-dark: #1a1a1a;
  --text-muted: #5c6a7e;
  --border-soft: #e2e8f0;
  --danger: #d32f2f;
  --danger-soft: #fde8e8;
}

body {
  background-color: var(--bg-main);
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
}

.profile-page {
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  background-color: var(--bg-main);
  max-width: 100%;
  margin: 0;
}

/* ===== FIXED HEADER — text only, no image ===== */
.pf-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 22px 16px;
  border-bottom: 1px solid var(--border-soft);
  box-sizing: border-box;
}

.pf-header span {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.profile-scroll-container {
  padding: 60px 0 calc(90px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
}

.pf-info-card {
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('prof.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0;
  margin: 0;
  padding: 85px 16px;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.pf-info-inner {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  margin-top: 40px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.pf-info-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  display: block;
  margin-bottom: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pf-info-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pf-balance-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.35);
  margin: 0 8px;
}

.pf-balance-col {
  flex: 1;
  text-align: center;
}

.pf-balance-divider {
  width: 1px;
  height: 30px;
  background: #cbd5e1;
  margin: 0 8px;
}

.pf-info-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  display: block;
  margin-bottom: 2px;
}

.pf-info-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ===== BIG BLUE PAYMENT & WITHDRAWAL BUTTONS (Finland Flag Blue) ===== */
.pf-action-row {
  display: flex;
  gap: 12px;
  margin: 4px 16px 0;
  width: calc(100% - 32px);
  box-sizing: border-box;
}

.pf-action-btn {
  flex: 1;
  padding: 16px 0;
  border-radius: 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 47, 108, 0.25);
  background: var(--finland-blue);
}

.pf-action-btn:active {
  transform: scale(0.98);
}

/* ===== ACCOUNT SERVICES / MENU CARDS ===== */
.pf-menu-card {
  margin: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  border-left: none;
  border-right: none;
  overflow: hidden;
  box-shadow: none;
  box-sizing: border-box;
}

.pf-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  text-decoration: none;
  background: none;
  box-sizing: border-box;
  transition: background 0.15s;
  width: 100%;
}

.pf-menu-card .pf-list-item:last-child {
  border-bottom: none;
}

.pf-list-item:active {
  background: #f8fafc;
}

.pf-list-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--finland-blue);
  font-size: 14px;
}

.pf-list-icon.pf-icon-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.pf-list-label {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark);
}

.pf-logout-item .pf-list-label {
  color: var(--danger);
}

.pf-list-chevron {
  color: #cbd5e1;
  font-size: 12px;
}



@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.bank-page {
  position: relative;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: #ffffff;
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
}

/* ===================== FULL-PAGE BACKGROUND IMAGE ===================== */
.bank-full-bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('ban.jpg'); /* 👈 Put your full page background image link here */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

/* Dark tint overlay for absolute clarity and contrast */
.bank-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 15, 30, 0.6);
  z-index: 1;
  pointer-events: none;
}

/* ===================== HERO HEADER (TRANSPARENT) ===================== */
.bank-hero {
  position: relative;
  background: transparent;
  padding: 24px 0 85px;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 2;
}

.bank-back-btn {
  position: absolute;
  top: 20px;
  left: 16px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  backdrop-filter: blur(6px);
  transition: background 0.2s;
}

.bank-back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===================== FULL-WIDTH BANNER TOUCHING LEFT & RIGHT ===================== */
.bank-full-banner {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 130px;
  margin: 12px 0 18px 0;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.2);
}

.bank-full-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bank-hero-content {
  position: relative;
  z-index: 3;
  padding: 0 16px;
}

.bank-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  backdrop-filter: blur(6px);
  margin-bottom: 8px;
}

.bank-hero h2 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.bank-hero-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ===================== FLOATING CARDS (FROSTED GLASS) ===================== */
.bankdisp-container {
  max-width: 460px;
  margin: -45px auto 0;
  padding: 0 16px 50px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  position: relative;
  z-index: 4;
}

.bankdisp-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.bankdisp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bankdisp-channel-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bankdisp-channel-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.bankdisp-channel-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.bankdisp-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bankdisp-status-pill.linked {
  background: rgba(22, 163, 74, 0.3);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.4);
}

.bankdisp-empty {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 10px 0;
}

.bankdisp-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.bankdisp-row:last-child { border-bottom: none; }

.bankdisp-label { color: rgba(255, 255, 255, 0.7); }
.bankdisp-value { color: #ffffff; font-weight: 700; }

.bankdisp-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  line-height: 1.5;
  padding: 4px 8px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.bank-action-btn {
  width: 100%;
  padding: 13px;
  margin-top: 10px;
  background: linear-gradient(135deg, #005B94, #003358);
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
}
.bank-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

/* ===================== BEAUTIFUL FROSTED INLINE POPUP FORM ===================== */
.inline-bank-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInForm 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInForm {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mybank-modal-form {
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.bank-form-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.bank-form-header-row h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.close-form-x {
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
}

.close-form-x:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.mybank-modal-form label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 5px !important;
  display: block !important;
  letter-spacing: 0.2px;
}

.bank-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bank-input-wrap i {
  position: absolute;
  left: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  pointer-events: none;
}

.mybank-modal-form select,
.mybank-modal-form input {
  width: 100% !important;
  padding: 12px 14px 12px 40px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 12px !important;
  font-size: 13.5px !important;
  font-family: 'Inter', sans-serif !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  box-sizing: border-box !important;
  outline: none !important;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease-in-out !important;
}

.mybank-modal-form select option {
  background-color: #003358 !important;
  color: #ffffff !important;
}

.mybank-modal-form input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.mybank-modal-form select:focus,
.mybank-modal-form input:focus {
  border-color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15) !important;
}

.inline-form-actions {
  display: flex !important;
  gap: 10px !important;
  margin-top: 6px !important;
}

.ft-swal-confirm,
.ft-swal-cancel {
  flex: 1 !important;
  padding: 12px 16px !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;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ft-swal-confirm {
  background: linear-gradient(135deg, #005B94, #003358) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.ft-swal-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4) !important;
}

.ft-swal-confirm:active {
  transform: translateY(1px) !important;
}

.ft-swal-cancel {
  background: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.ft-swal-cancel:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.ft-swal-cancel:active {
  transform: translateY(1px) !important;
}



/* ── REHEARSAL / RECHARGE PAGE CUSTOM STYLING (Blue & White Theme) ── */
.recharge-page {
  font-family: 'Inter', sans-serif;
  background-color: #f6f7f9;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  color: #14151A;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  z-index: 99999;
}

.recharge-header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  right: 0;
  height: 52px;
  background: #003580; /* Finland Blue Header */
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-sizing: border-box;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.recharge-header-fixed h2 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.recharge-back-btn-v2 {
  background: transparent;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 6px;
  width: 28px;
  height: 28px;
}

.recharge-page-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 66px 14px calc(90px + env(safe-area-inset-bottom, 0px)) 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rech-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(20, 21, 26, 0.03), 0 8px 20px rgba(20, 21, 26, 0.04);
}

.rech-card-title-plain {
  font-size: 13.5px;
  font-weight: 700;
  color: #14151A;
  margin: 0 0 12px 0;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.amount-option {
  background: #f3f4f6;
  border: 1.5px solid transparent;
  padding: 12px 2px;
  border-radius: 12px;
  text-align: center;
  color: #14151A;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.18s ease;
}

.amount-option.active,
.amount-option.selected {
  background: #003580 !important;
  border-color: #002255 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 53, 128, 0.3);
}

.custom-amount-wrapper {
  background: #f8fafc;
  border: 1.5px solid #eceef2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 46px;
  box-sizing: border-box;
}

.custom-amount-wrapper:focus-within {
  border-color: #003580;
}

.custom-amount-currency {
  color: #8a90a3;
  font-weight: 700;
}

#customAmount {
  background: transparent;
  border: none;
  color: #14151A;
  font-family: inherit;
  font-weight: 600;
  outline: none;
  width: 100%;
  padding: 0;
}

.channel-select-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.channel-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 12px;
  background: #e2e8f0;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.channel-card.selected {
  background: #cbd5e1 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

.channel-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.channel-card.selected .channel-card-name {
  color: #0f172a;
  font-weight: 700;
}

@media (max-width: 360px) {
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
}


.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999998;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* ── CENTERED POPUP MODAL (Ash background fallback, rounded box) ── */
.mx-unique-modal {
  background: #f1f3f5;
  width: 100%;
  max-width: 400px;
  margin: auto;
  border-radius: 16px;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  box-sizing: border-box;
  padding: 24px 18px 20px;
  z-index: 999999;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.mx-close-x-btn {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  font-weight: 700;
  font-size: 16px;
  padding: 4px;
  line-height: 1;
}

.mx-platform-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  text-align: center;
}

.mx-welcome-text {
  font-size: 13px;
  color: #222222;
  line-height: 1.5;
  text-align: left;
  margin: 0 0 20px;
}

.mx-welcome-text p {
  margin: 0 0 10px;
}

.mx-welcome-text .red-text {
  color: #003580;
  font-weight: 700;
}

/* ── SIDE-BY-SIDE BUTTONS ROW (1 Right, 1 Left on the same line) ── */
.mx-btn-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
}

.mx-action-btn {
  flex: 1;
  padding: 12px 10px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

/* Telegram Group button (Left) */
.mx-btn-telegram {
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid #dcdcdc;
}

/* OK button (Right) - Blue */
.mx-btn-ok {
  background: #003580;
  color: #ffffff;
}

.mx-action-btn:active { transform: scale(0.98); }
#welcomePopup {
  display: none; /* Changed from none to flex for visibility during testing */
}


.referral-promo-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid #e7edfb;
  box-shadow: 0 8px 24px rgba(3, 87, 238, 0.08);
  max-width: 500px;
  
  /* 🌟 CHANGE THIS LINE: Adds negative top margin to shift it up, and pushes the bottom up */
  margin: -20px auto 35px auto; 
  
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.referral-promo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(3, 87, 238, 0.16);
}

.referral-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.referral-text-col { flex: 1; }

.referral-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #0357EE;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.referral-headline {
  font-size: 21px;
  font-weight: 800;
  color: #0b1220;
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.referral-subtext {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.referral-icon-badge {
  width: 42px;
  height: 42px;
  background: #eaf0fe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #0357EE;
  flex-shrink: 0;
  border: 1px solid #d7e3fb;
}

.referral-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.referral-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 30px;
  white-space: nowrap;
}

.referral-pill.green {
  background: #e8f8ef;
  color: #16a34a;
  border: 1px solid #c8ede0;
}

.referral-pill.amber {
  background: #fff6e6;
  color: #b45309;
  border: 1px solid #fbe3b0;
}

.referral-cta-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 13px;
  background: #0357EE;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(3, 87, 238, 0.25);
  transition: background 0.2s, transform 0.15s;
}

.referral-cta-btn:hover {
  background: #0241b8;
}

.referral-cta-btn:active {
  transform: scale(0.97);
}

@media (max-width: 380px) {
  .referral-headline { font-size: 19px; }
  .referral-icon-badge { width: 38px; height: 38px; border-radius: 10px; font-size: 15px; }
}


/* DAILY LOADER OVERLAY */
.daily-loader{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.55);
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  z-index:9999;
}

/* 3D SPINNER */
.spinner-3d{
  width:60px;
  height:60px;
  border:6px solid rgba(255,255,255,0.2);
  border-top:6px solid #00c2ff;
  border-radius:50%;
  animation:spin3d 1s linear infinite;
  margin-bottom:15px;
}

@keyframes spin3d{
  0%{transform:rotate(0deg);}
  100%{transform:rotate(360deg);}
}

.daily-loader p{
  color:white;
  font-weight:600;
  font-size:16px;
}


/* ===== PRODUCT PAGE ===== */
.product-page {
  width: 100%;
  padding: 20px;
  padding-bottom: 80px;
  padding-top: 65px; /* space for fixed header */
  background: #ffffff; /* white background */
  min-height: 100vh;
  color: #ffffff;      /* white text */
  display: none;       /* show when active */
}

/* ===== FIXED HEADER ===== */
.product-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1e40ff; /* blue header */
  padding: 12px 0;
  z-index: 1000;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;      /* white text */
  box-shadow: 0 3px 8px rgba(30, 64, 255, 0.2); /* subtle blue shadow */
}

.product-header i {
  margin-right: 8px;
  color: #ffffff; /* white icon */
}

/* ===== PREMIUM PRODUCT CARD - REDESIGNED ===== */
.premium-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  margin-top: -12px;
  margin-bottom: 16px;
  border: 1px solid #ede9f6;
  box-shadow: 0 4px 18px rgba(75, 0, 130, 0.07);
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  overflow: hidden;
}

/* ── TOP STRIP ── */
.inv-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #4b0082, #9d4edd);
}

.inv-vip-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.inv-vip-badge i {
  color: #e9d5ff;
  font-size: 14px;
}

.inv-days-pill {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.3);
}

/* ── BODY: IMAGE + STATS GRID ── */
.inv-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.inv-product-img {
  width: 85px;
  height: 85px;
  min-width: 85px;
  border-radius: 12px;
  background: #f5f0ff;
  border: 1px solid #ede9f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.inv-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.inv-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
}

.inv-stat-box {
  background: #faf7ff;
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid #ede9f6;
}

.inv-stat-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
}

.inv-stat-label i {
  color: #9d4edd;
  font-size: 9px;
}

.inv-stat-val {
  font-size: 13px;
  font-weight: 700;
  color: #9d4edd;
}

.inv-stat-val.dark {
  color: #0f172a;
}

.inv-stat-val.green {
  color: #16a34a;
}

/* ── FOOTER: DATE + PROGRESS BAR ── */
.inv-card-footer {
  padding: 0 16px 14px 16px;
  border-top: 1px solid #f3eeff;
  padding-top: 12px;
}

.inv-date-range {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #7c3aed;
  font-weight: 600;
  margin-bottom: 8px;
}

.inv-date-range i {
  color: #9d4edd;
}

.inv-progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: #ede9f6;
  border-radius: 99px;
  overflow: hidden;
}

.inv-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4b0082, #9d4edd);
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* ── COUNTDOWN ROW ── */
.inv-countdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #faf7ff;
  border-top: 1px solid #f3eeff;
}

.inv-next-label {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.inv-countdown-timer {
  font-family: monospace;
  font-weight: 700;
  color: #4b0082;
  font-size: 13px;
  letter-spacing: 1px;
}

/* ── MOBILE ── */
@media (max-width: 480px) {
  .inv-product-img {
    width: 72px;
    height: 72px;
    min-width: 72px;
  }
  .inv-stat-val {
    font-size: 12px;
  }
}



@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --brand-blue: #2563eb;
  --brand-blue-dark: #1d4ed8;
  --brand-blue-soft: #eff6ff;
  --bg-page: #f8fafc;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-soft: #f1f5f9;
}

.invite-page {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  z-index: 999;
  background-color: var(--bg-page);
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  display: none;
  flex-direction: column;
  box-sizing: border-box;
  padding-bottom: 30px;
}

.invite-header-fixed-v2 {
  background: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-soft);
  box-sizing: border-box;
  position: relative;
}

.invite-header-fixed-v2 h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
}

.invite-back-btn-v2 {
  position: absolute;
  left: 16px;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.referral-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* CARDS */
.iv-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-sizing: border-box;
  border: 1px solid var(--border-soft);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* ── REDESIGNED TOP HERO CARD (V3) WITH IMAGE BACKGROUND ── */
.iv-main-card-v3 {
  background: linear-gradient(rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.75)), url('ref.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  border-radius: 20px !important;
  padding: 20px !important;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15) !important;
}

.iv-main-card-v3::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.iv-hero-glow {
  position: absolute;
  bottom: -40px;
  left: -20px;
  width: 150px;
  height: 150px;
  background: rgba(37, 99, 235, 0.3);
  filter: blur(30px);
  pointer-events: none;
}

.iv-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.iv-brand-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.iv-brand-icon-box {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  backdrop-filter: blur(4px);
}

.iv-brand-logo {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.8px;
}

.iv-top-btn-v3 {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 6px 14px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.iv-top-btn-v3:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.25);
}

.iv-fields-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.iv-field-group-v3 label {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.iv-field-row-v3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px 10px 8px 14px;
  backdrop-filter: blur(6px);
}

.iv-field-value {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iv-code-value {
  font-size: 14px;
  letter-spacing: 1px;
}

.iv-field-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  color: #ffffff;
  font-size: 12.5px;
}

.iv-action-btn {
  background: #ffffff;
  color: #1e40af;
  border: none;
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.1s ease;
}

.iv-action-btn:active {
  transform: scale(0.94);
}

/* COMMISSION TABLE CARD */
.iv-table-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iv-table-header-row,
.iv-table-data-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: center;
  font-size: 12.5px;
}

.iv-table-header-row {
  color: var(--text-muted);
  font-weight: 400;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}

.iv-table-header-row span:nth-child(2),
.iv-table-header-row span:nth-child(3),
.iv-table-data-row span:nth-child(2),
.iv-table-data-row span:nth-child(3) {
  text-align: right;
}

.iv-table-data-row {
  color: var(--text-dark);
  font-weight: 400;
}

/* STATS SPLIT ROW */
.iv-stats-split-row {
  display: flex;
  gap: 10px;
}

.iv-stat-box {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.iv-stat-num {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
}

.iv-stat-lbl {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-muted);
}

/* LIVE TEAM RANKING CHART */
.iv-ranking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 12px;
}

.iv-ranking-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.iv-ranking-title-wrap i {
  color: var(--brand-blue);
  font-size: 13px;
}

.iv-ranking-title-wrap h4 {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0;
}

.iv-live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 400;
  color: #16a34a;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 20px;
}

.iv-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #16a34a;
  border-radius: 50%;
  animation: ivPulse 1.6s infinite;
}

@keyframes ivPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.iv-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.iv-rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}

.iv-rank-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: #ffffff;
  flex-shrink: 0;
}

.iv-rank-badge.rank-1 { background: #f59e0b; }
.iv-rank-badge.rank-2 { background: #94a3b8; }
.iv-rank-badge.rank-3 { background: #b45309; }

.iv-rank-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #e2e8f0;
  flex-shrink: 0;
}

.iv-rank-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iv-rank-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.iv-rank-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dark);
}

.iv-rank-sub {
  font-size: 10.5px;
  font-weight: 400;
  color: var(--text-muted);
}

.iv-rank-stat {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.iv-rank-amount {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--brand-blue);
}

.iv-rank-label {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
}

/* BOTTOM INFO CARD */
.iv-info-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iv-info-card p {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}



#earningsPage {
  background: #ffffff;
  color: #14151A;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

#earningsPage.page {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  left: 0 !important;
  right: 0 !important;
}

.team-page-container {
  padding: 68px 16px 40px;
  max-width: 480px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ── HEADER ── */
.team-header-main {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  z-index: 1000;
  box-sizing: border-box;
}

.team-header-main span {
  font-size: 17px;
  font-weight: 400;
  color: #14151A;
}

.back-btn-white {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #14151A;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

/* ── TABS ── */
.team-list-tabs {
  display: flex;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  padding: 0 0 12px 0;
  gap: 0;
  margin: 0 -16px 20px -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.team-tab-btn {
  flex: 1;
  padding: 8px 4px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  transition: color 0.2s;
}

.team-tab-btn .tab-amount {
  font-size: 15px;
  font-weight: 400;
  color: #14151A;
}

.team-tab-btn .tab-label {
  font-size: 13px;
  font-weight: 400;
  color: #6b7280;
}

.team-tab-btn.active {
  color: #14151A;
}

.team-tab-btn.active .tab-label {
  color: #14151A;
}

.team-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #14151A;
}

/* ── LIST ROWS ── */
.team-list-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

.team-list-number {
  font-size: 13.5px;
  font-weight: 400;
  color: #14151A;
}

.team-list-amount {
  font-size: 13.5px;
  font-weight: 400;
  color: #14151A;
}

.team-list-empty-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
  padding: 50px 20px;
  margin-top: 20px;
}

.team-list-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.team-list-empty-icon i {
  font-size: 22px;
  color: #cbd5e1;
}

.team-list-empty-title {
  font-size: 13px;
  font-weight: 400;
  color: #94a3b8;
  margin: 0;
}

/* ── WITHDRAWAL PAGE (Clean White & Blue Theme matching Finland Blue #002f6c) ── */
:root {
  --wd-blue: #002f6c;
  --wd-blue-hover: #00224d;
  --bg-page: #f8f9fc;
  --text-main: #14151A;
  --text-muted: #717684;
  --border-color: #e4e7ed;
}

.withdraw-page {
  background: var(--bg-page);
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

/* ── HEADER ── */
.wd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 16px; /* Matching the updated taller header style */
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 100;
  box-sizing: border-box;
}

.wd-back-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.wd-header-icon-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 16px;
  cursor: pointer;
}

.wd-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  text-align: center;
  flex: 1;
}

/* ── CONTAINER ── */
.wd-container {
  padding: 90px 16px 70px 16px; /* Offset for fixed header */
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── TOP BALANCE CARD (White with brand label) ── */
.wd-hero-balance {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 20px;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  width: 100%;
}

.wd-hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wd-hero-amount {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 2px;
}

.wd-hero-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.wd-hero-brand-logo {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

/* ── SECTION CARDS ── */
.wd-section-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  width: 100%;
  box-sizing: border-box;
}

.wd-section-title-plain {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.wd-amount-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wd-tax-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

/* ── SELECT ACCOUNT TRIGGER BOX ── */
.wd-select-account-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s;
}

.wd-select-account-trigger:hover {
  border-color: var(--wd-blue);
}

.wd-select-account-trigger i {
  font-size: 12px;
  color: #94a3b8;
}

/* ── INPUT ── */
.wd-input-row {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0 14px;
  height: 48px;
  gap: 8px;
  transition: border-color 0.2s;
  box-sizing: border-box;
  width: 100%;
}

.wd-input-row:focus-within {
  border-color: var(--wd-blue);
}

.wd-currency {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  flex-shrink: 0;
}

.wd-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  width: 100%;
  font-family: 'Inter', sans-serif;
}

.wd-input::placeholder {
  color: #b0b7c3;
  font-weight: 400;
  font-size: 13.5px;
}

.wd-amount-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.wd-received-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
}

.wd-min-note {
  font-size: 12px;
  color: #d97706;
  font-weight: 600;
}

/* ── WITHDRAW BUTTON (Finland Blue theme) ── */
.wd-submit-btn {
  width: 100%;
  height: 50px;
  background: var(--wd-blue);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 47, 108, 0.25);
  transition: transform 0.1s ease, background 0.2s;
  box-sizing: border-box;
}

.wd-submit-btn:active {
  transform: scale(0.98);
}

.wd-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── GUIDELINES BOX ── */
.wd-guidelines-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--border-color);
  width: 100%;
  box-sizing: border-box;
}

.wd-guidelines-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wd-guidelines-list li {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

.wd-support-footer {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 4px 0 20px;
  line-height: 1.4;
}


/* ── MODAL POPUP STYLES (Centered) ── */
.wd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center; /* Changed from flex-end to center */
  justify-content: center;
  padding: 16px; /* Adds padding so it doesn't touch screen edges on mobile */
  animation: wdFadeIn 0.2s ease;
}

.wd-modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 16px; /* Rounded corners all around instead of top-only */
  padding: 20px;
  box-sizing: border-box;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: wdScaleUp 0.25s ease; /* Changed to smooth zoom-in animation */
}

@keyframes wdFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wdScaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.wd-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.wd-modal-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.wd-modal-close {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-muted);
}

.wd-modal-body {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wd-modal-bank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #f8f9fc;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
}

.wd-modal-bank-item:hover {
  border-color: var(--wd-blue);
  background: #f0f4f9;
}

.wd-modal-bank-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--wd-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.wd-modal-bank-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wd-modal-bank-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.wd-modal-bank-num {
  font-size: 11.5px;
  color: var(--text-muted);
}

.wd-modal-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 9px;
}

.wd-modal-bank-item.selected .wd-modal-radio {
  border-color: var(--wd-blue);
  background: var(--wd-blue);
  color: #ffffff;
}

@keyframes wdFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wdSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}





.records-page-wrap {
  background-color: #ffffff;
  position: fixed;
  inset: 0;
  min-height: 100vh;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: 'Inter', sans-serif;
  color: #14151A;
  box-sizing: border-box;
  z-index: 500;
  isolation: isolate;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ── HEADER WITH GOLD GRADIENT BAR ── */
.records-hero {
  background: #ffffff;
  padding: 12px 16px 0 16px;
  border-bottom: 1px solid #eef1f6;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 10;
}

.records-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.records-back-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #14151A;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.records-hero-title {
  font-size: 16px;
  font-weight: 600;
  color: #14151A;
  margin: 0;
  text-align: center;
}

/* ── BLUE HEADER TABS BAR ── */
.records-filter-tabs {
  background: linear-gradient(135deg, #1e63ff 0%, #0d47c9 50%, #002a66 100%);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 8px;
  border-radius: 6px 6px 0 0;
  margin-top: 6px;
}

.records-filter-pill {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.records-filter-pill.active {
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
}

/* ── CONTENT CONTAINER ── */
.records-content-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

#recordsContainer {
  display: flex;
  flex-direction: column;
}

/* ── RECORD CARD MATCHING THE SCREENSHOT STYLE ── */
.record-card {
  width: 100%;
  background: #ffffff;
  border-radius: 0;
  padding: 16px 20px;
  box-sizing: border-box;
  border-bottom: 1px solid #f1f5f9;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

/* Hidden elements to match plain text design of the reference screenshot */
.record-icon-wrap,
.record-status-badge {
  display: none !important;
}

.record-card-body {
  flex: 1;
  width: 100%;
}

.record-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.record-title {
  font-size: 14.5px;
  font-weight: 500;
  color: #16a34a; /* Exact green title tone from reference screenshot */
}

.record-date {
  font-size: 12px;
  font-weight: 400;
  color: #94a3b8; /* Muted grey timestamp */
  margin-top: 4px;
  display: block;
}

.record-amount-value {
  font-size: 15px;
  font-weight: 400;
  color: #64748b; /* Clean neutral amount tone from reference screenshot */
  white-space: nowrap;
}

.record-amount-value.debit-amount { color: #E5484D; }
.record-amount-value.pending-amount { color: #D68910; }
.record-amount-value.failed-amount {
  color: #94a3b8;
  text-decoration: line-through;
}

/* ── "No more data" FOOTER TEXT ── */
.no-more-data {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  padding: 24px 0;
  width: 100%;
}

/* ================= 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;
}

}


@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.investment-page {
  position: relative;
  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: #ffffff;
}

/* ===================== FULL-PAGE BACKGROUND IMAGE ===================== */
.inv-full-bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('inv.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

/* Dark atmospheric overlay for crystal-clear readability */
.investment-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 15, 30, 0.65);
  z-index: 1;
  pointer-events: none;
}

/* ===================== HEADER & FULL-WIDTH BANNER ===================== */
.investment-header {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 10px;
  z-index: 10000;
  box-sizing: border-box;
}

.investment-header h2 {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 3;
}

.investment-back-btn {
  position: absolute;
  top: 20px;
  left: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 15px;
  backdrop-filter: blur(6px);
  z-index: 4;
  transition: background 0.2s;
}

.investment-back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.inv-header-banner-wrap {
  width: 100%;
  height: 120px;
  margin-top: 10px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.inv-header-banner-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================== CARD WRAPPER ===================== */
.card-wrapper {
  flex: 1;
  padding: 16px 16px 100px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 4;
}

/* ── EMPTY STATE ── */
.inv-empty-state {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 45px 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  margin-top: 10px;
}

.inv-empty-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-size: 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.inv-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.inv-empty-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.inv-browse-btn {
  background: linear-gradient(135deg, #005B94, #003358);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 13px 28px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.inv-browse-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

#investmentCardsList {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── FROSTED GLASS PRODUCT CARD THEME ── */
.inv-clean-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #ffffff;
}

.inv-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inv-card-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inv-product-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.inv-plan-name {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 3px 0;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.inv-sub-info {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.inv-dot {
  margin: 0 3px;
  color: rgba(255, 255, 255, 0.5);
}

/* Status Badge */
.inv-status-pill {
  background: rgba(20, 160, 90, 0.25);
  border: 1px solid rgba(50, 215, 120, 0.4);
  color: #4ade80;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
}

.inv-status-pill.active i {
  font-size: 11px;
}

/* Section Common Label */
.inv-section-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* Daily Interest Box */
.inv-daily-box {
  background: rgba(20, 100, 50, 0.2);
  border: 1px solid rgba(50, 200, 100, 0.25);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
}

.inv-daily-amount {
  font-size: 24px;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.inv-action-icon-circle {
  width: 42px;
  height: 42px;
  background: rgba(50, 200, 100, 0.2);
  border: 1px solid rgba(50, 200, 100, 0.3);
  color: #4ade80;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Next Return Timer Box */
.inv-timer-box {
  background: rgba(140, 90, 10, 0.2);
  border: 1px solid rgba(245, 180, 50, 0.25);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
}

.inv-countdown-time {
  font-size: 15px;
  font-weight: 700;
  color: #fbbf24;
  font-family: monospace, 'Inter', sans-serif;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.inv-action-icon-circle.soft-orange {
  background: rgba(245, 180, 50, 0.2);
  border: 1px solid rgba(245, 180, 50, 0.3);
  color: #fbbf24;
}

/* Footer Status */
.inv-card-footer-status {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2px;
}

.inv-earned-badge {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

.inv-earned-badge strong {
  color: #ffffff;
}

/* SweetAlert Overrides for Glassmorphism Harmony */
.gle-swal-popup {
  background: rgba(10, 30, 50, 0.9) !important;
  backdrop-filter: blur(20px) !important;
  border-radius: 24px !important;
  padding: 28px 22px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.gle-swal-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

.gle-swal-text {
  font-family: 'Inter', sans-serif !important;
  font-size: 13.5px !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

.gle-swal-confirm {
  background: linear-gradient(135deg, #005B94, #003358) !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: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3) !important;
}

.gle-swal-confirm:hover {
  background: linear-gradient(135deg, #006dae, #003f6e) !important;
}

.gle-swal-icon {
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}


:root {
  --pw-finland-blue: #005B94;
  --pw-finland-light: #EBF3F9;
  --pw-finland-deep: #003358;
  --pw-text-dark: #ffffff;
  --pw-text-muted: rgba(255, 255, 255, 0.75);
  --pw-border: rgba(255, 255, 255, 0.25);
}

.password-page {
  position: relative;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
}

/* ===================== FULL-PAGE BACKGROUND IMAGE ===================== */
.pw-full-bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('sec.jpg'); /* 👈 Put your full page background image link here */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1; 
  z-index: 0;
  pointer-events: none;
}

/* Optional dark tint overlay so background image is dimmed and text stands out */
.password-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 15, 30, 0.55);
  z-index: 1;
  pointer-events: none;
}

/* ===================== HERO HEADER (TRANSPARENT) ===================== */
.pw-hero {
  position: relative;
  background: transparent;
  padding: 24px 0 85px;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 2;
}

.pw-back-btn {
  position: absolute;
  top: 20px;
  left: 16px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  backdrop-filter: blur(6px);
  transition: background 0.2s;
}

.pw-back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===================== FULL-WIDTH BANNER TOUCHING LEFT & RIGHT ===================== */
.pw-full-banner {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 130px;
  margin: 12px 0 18px 0;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.2);
}

.pw-full-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pw-hero-content {
  position: relative;
  z-index: 3;
  padding: 0 16px;
}

.pw-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  backdrop-filter: blur(6px);
  margin-bottom: 8px;
}

.pw-hero h2 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.pw-hero-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ===================== FROSTED GLASS FORM CARD ===================== */
.pw-container {
  padding: 0 16px 50px;
  max-width: 460px;
  margin: -45px auto 0;
  box-sizing: border-box;
  position: relative;
  z-index: 4;
}

.pw-form {
  background: rgba(255, 255, 255, 0.12); /* Highly transparent glass */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 26px 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pw-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pw-input-group label {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.pw-field-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 13px 16px;
  gap: 12px;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.pw-field-box:focus-within {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.pw-lock-icon {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  transition: color 0.2s;
}

.pw-field-box:focus-within .pw-lock-icon {
  color: #ffffff;
}

.pw-field-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  width: 100%;
  font-family: inherit;
}

.pw-field-box input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.pw-eye-icon {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.pw-eye-icon:hover {
  color: #ffffff;
}

/* ===================== SUBMIT BUTTON ===================== */
.pw-submit-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #005B94, #003358);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  font-size: 14.5px;
  font-family: inherit;
  margin-top: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pw-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #006dae, #003f6e);
}

.pw-submit-btn:active {
  transform: scale(0.98);
}

.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 {
  --finland-blue: #003580;
  --finland-blue-dark: #002255;
  --finland-ice: #F0F4F8;
  --text-dark: #111827;
  --text-muted: #64748b;
  --border-soft: #e2e8f0;
}

/* ── STRICT 2-COLUMN RESPONSIVE GRID (Equal Height) ── */
#dynamicProductList {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px 10px 90px 10px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  #dynamicProductList {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px 16px 90px 16px;
  }
}

/* ── 3D PRODUCT CARD ── */
.mx-product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0, 53, 128, 0.1);
  box-shadow: 0 3px 10px rgba(0, 53, 128, 0.05),
              0 1px 2px rgba(0, 0, 0, 0.04);
}

.mx-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ── CENTERED TOP VIP HEADER ── */
.mx-card-top-title {
  background: #ffffff;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  padding: 12px 8px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-soft);
  text-transform: uppercase;
}

/* ── IMAGE WRAPPER ── */
.mx-card-img-wrap {
  position: relative;
  width: 100%;
  height: 125px;
  background: var(--finland-ice);
  overflow: hidden;
}

@media (min-width: 400px) {
  .mx-card-img-wrap {
    height: 140px;
  }
}

.mx-card-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

/* ── CARD INFO SECTION ── */
.mx-card-info {
  padding: 10px 12px 12px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  box-sizing: border-box;
  background: #ffffff;
}

.mx-info-stack {
  display: flex;
  flex-direction: column;
}

/* ── INFO ROWS ── */
.mx-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-soft);
}

.mx-info-label-wrap {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.mx-info-val {
  font-size: 12.5px;
  font-weight: 700;
  color: #dc2626;
}

.mx-info-val.income-val {
  color: #0d9488;
}

.mx-info-val.return-val {
  color: var(--finland-blue);
}

/* ── BULLETPROOF BOTTOM ROW LAYOUT ── */
.mx-card-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-soft);
  width: 100%;
  box-sizing: border-box;
}

.mx-price-block {
  display: flex;
  flex-direction: column;
}

.mx-price-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  line-height: 1;
}

.mx-info-val.price-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}

/* ── STABLE NON-STRETCHING BUTTON ── */
.mx-add-to-portfolio-btn {
  background: var(--finland-blue);
  color: #ffffff;
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 65px; /* Locks a stable minimum width so text changes don't distort it */
  width: auto;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 53, 128, 0.25);
  transition: background 0.2s, transform 0.15s;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
  white-space: nowrap; /* Prevents text from wrapping */
}
.mx-add-to-portfolio-btn:hover { background: var(--finland-blue-dark); }
.mx-add-to-portfolio-btn:active { transform: scale(0.97); }


/* ── MAKE THE PRICE TEXT SMALLER ── */
.mx-info-val.price-val {
  font-size: 13px !important; /* Adjust this value down (e.g., 12px or 13px) to make it smaller */
  font-weight: 700;
  color: var(--text-dark);
}

.mx-loader, .mx-error {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-size: 14px;
  grid-column: 1 / -1;
}

/* 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;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75); /* Dim white background */
  backdrop-filter: blur(8px);              /* Soft frosted-glass blur */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  will-change: opacity;
}

#pageLoader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.vantiq-loader-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Outer spinning ring - Finland Blue (#005B94) */
.vantiq-ring-outer {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #005B94;
  border-left-color: #005B94;
  box-shadow: 0 0 15px rgba(0, 91, 148, 0.25);
  animation: vantiqRotateFast 1.1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

/* Inner counter-spinning ring - Lighter Finland Blue tone */
.vantiq-ring-inner {
  position: absolute;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-bottom-color: #2E8BC0;
  border-right-color: #2E8BC0;
  box-shadow: 0 0 10px rgba(46, 139, 192, 0.2);
  animation: vantiqRotateSlow 0.8s linear infinite;
}

/* Glowing center core pulsing */
.vantiq-core-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: #005B94;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 91, 148, 0.8);
  animation: vantiqPulse 1.2s ease-in-out infinite;
}

/* Brand Text Floating inside */
.vantiq-loading-text {
  position: absolute;
  bottom: 12px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: #005B94; /* Finland Flag Blue */
  text-shadow: 0 2px 8px rgba(0, 91, 148, 0.2);
}

@keyframes vantiqRotateFast {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes vantiqRotateSlow {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes vantiqPulse {
  0%, 100% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 1; }
}

/* 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: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  max-width: 85%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#toast-overlay.toast-show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.toast-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 20px;
  font-family: -apple-system, 'SF Pro Display', 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

#toast-overlay.toast-show .toast-inner {
  transform: scale(1);
}

.toast-type-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.toast-success .toast-type-icon { color: #16a34a; }
.toast-error   .toast-type-icon { color: #dc2626; }
.toast-warning .toast-type-icon { color: #f0b100; }
.toast-info    .toast-type-icon { color: #38bdf8; }

.toast-msg {
  line-height: 1.2;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
}

.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;
}





/* ========================================== */
/* 2. PLATFORM RULES CSS STYLES */
/* ========================================== */
.sub-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff; /* 👈 Changed to white background */
  z-index: 1000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sub-page-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background-color: #ffffff; /* 👈 Changed header to match white background */
  color: #000000; /* 👈 Header text/icon black */
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sub-page-back-btn {
  background: none;
  border: none;
  color: #000000; /* 👈 Back button icon black */
  font-size: 18px;
  cursor: pointer;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-page-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #000000; /* 👈 Title black */
}

.platform-rules-content {
  padding: 20px;
  color: #000000; /* 👈 Content text black */
  font-size: 14px;
  line-height: 1.6;
}

.platform-rules-content p {
  margin-bottom: 16px;
}

.platform-rules-content .rules-link a {
  color: #2563eb; /* 👈 Adjusted link color for clean look on white */
  text-decoration: underline;
  word-break: break-all;
}



/* ========================================== */
/* 2. ABOUT US CSS STYLES (Matches Platform Rules) */
/* ========================================== */
.about-us-content {
  padding: 20px;
  color: #000000;
  font-size: 13px; /* Tiny text styling */
  line-height: 1.6;
}

.about-us-content h3 {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 8px;
  margin-top: 16px;
}

.about-us-content h3:first-child {
  margin-top: 0;
}

.about-us-content p {
  margin-bottom: 16px;
}





/* ============================================================
   TASK CENTER — Referral task cards
   Palette: white + Finland blue
   ============================================================ */

:root {
  --rt-blue: #0053a6;
  --rt-blue-dark: #003580;
  --rt-blue-tint: #eaf2fb;
  --rt-blue-tint-2: #d9e9fa;
  --rt-track-bg: #dce8f7;
  --rt-text-dark: #10203a;
  --rt-text-gray: #8a96a8;
  --rt-pill-bg: #eef4fb;
  --rt-border: #e6edf6;
}

#referralTasksPage {
  min-height: 100vh;
  background: #ffffff;
  padding-bottom: 90px; /* keep content clear of the bottom nav */
}

.rt-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid var(--rt-border);
  position: sticky;
  top: 0;
  z-index: 5;
}

.rt-back-btn {
  background: var(--rt-blue-tint);
  border: none;
  padding: 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  color: var(--rt-blue-dark);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rt-back-btn:hover {
  background: var(--rt-blue-tint-2);
  transform: translateX(-2px);
}

.rt-header-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--rt-text-dark);
  letter-spacing: -0.2px;
}

.rt-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px 18px;
}

.rt-loading {
  text-align: center;
  color: var(--rt-text-gray);
  font-size: 13px;
  margin-top: 40px;
}

/* ---------------------------------------------------------
   SUMMARY (total claimed + overall progress)
   --------------------------------------------------------- */

.rt-summary {
  margin: 18px 18px 4px;
  background: linear-gradient(135deg, var(--rt-blue-dark), var(--rt-blue));
  border-radius: 18px;
  padding: 18px 20px;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 53, 128, 0.22);
}

.rt-summary-row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.rt-summary-block {
  flex: 1;
}

.rt-summary-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 16px;
}

.rt-summary-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.rt-summary-value {
  font-size: 22px;
  font-weight: 800;
}

.rt-summary-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
}

.rt-summary-progress-pct {
  font-weight: 700;
  color: #fff;
}

.rt-summary .rt-progress-track {
  background: rgba(255, 255, 255, 0.25);
  margin-bottom: 0;
  height: 7px;
}

.rt-summary .rt-progress-fill {
  background: #ffffff;
}

/* ---------------------------------------------------------
   CARD
   --------------------------------------------------------- */

.rt-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 13px 14px;
  border: 1px solid var(--rt-border);
  box-shadow: 0 2px 8px rgba(0, 53, 128, 0.05);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Accent bar on the left edge */
.rt-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--rt-blue), var(--rt-blue-dark));
  opacity: 0.85;
  transition: width 0.25s ease;
}

.rt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 53, 128, 0.14);
  border-color: var(--rt-blue-tint-2);
}

.rt-card:hover::before {
  width: 6px;
}

.rt-card-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.rt-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  background: var(--rt-blue);
  box-shadow: 0 0 0 3px var(--rt-blue-tint);
}

.rt-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rt-text-dark);
  line-height: 1.4;
  margin: 0;
}

.rt-reward,
.rt-target-inline {
  color: var(--rt-blue-dark);
  font-weight: 800;
}

.rt-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--rt-blue-tint);
  border-radius: 11px;
  padding: 9px 8px;
  margin-bottom: 10px;
}

.rt-stat {
  text-align: center;
}

.rt-stat-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--rt-blue-dark);
}

.rt-stat-label {
  font-size: 10.5px;
  color: var(--rt-text-gray);
  margin-top: 1px;
}

.rt-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--rt-text-dark);
  margin-bottom: 5px;
}

.rt-progress-pct-label {
  color: var(--rt-blue-dark);
  font-weight: 700;
}

.rt-progress-track {
  width: 100%;
  height: 7px;
  background: var(--rt-track-bg);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.rt-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rt-blue), var(--rt-blue-dark));
  border-radius: 999px;
  transition: width 0.5s ease;
}

.rt-status-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px;
  border-radius: 999px;
  background: var(--rt-pill-bg);
  color: var(--rt-blue-dark);
  font-size: 12.5px;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease;
}

.rt-card:hover .rt-status-pill {
  background: var(--rt-blue-tint-2);
}

.rt-card.rt-claimed {
  border-color: #cdeedb;
}

.rt-card.rt-claimed::before {
  background: linear-gradient(180deg, #22c55e, #16a34a);
}

.rt-card.rt-claimed .rt-dot {
  background: #22c55e;
  box-shadow: 0 0 0 4px #e7f8ee;
}

.rt-card.rt-claimed .rt-status-pill {
  background: #e7f8ee;
  color: #16a34a;
}

.rt-card.rt-claimed:hover .rt-status-pill {
  background: #d3f3e0;
}

.rt-card.rt-claimed .rt-progress-fill {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}