/* ============================================================
   EARN — Premium Mobile Web App
   ============================================================ */

/* -- Tokens -------------------------------------------------- */
:root {
  --bg: #faf8f2;
  --bg-2: #f3efe5;
  --surface: #ffffff;
  --surface-2: #f7f4ec;

  --ink: #0a1d14;
  --ink-2: #4a5a52;
  --ink-3: #8a9690;
  --line: #ece8db;
  --line-2: #d9d4c5;

  /* Brand */
  --primary: #0e3b2c;
  --primary-2: #145740;
  --primary-soft: #def0e6;
  --primary-glow: rgba(14, 59, 44, 0.16);

  /* Action red — for "Perform Task" */
  --red: #e8553f;
  --red-2: #d3422f;
  --red-soft: #fde6e0;
  --red-glow: rgba(232, 85, 63, 0.30);

  /* Action green — for "Mark as Done" */
  --green: #10a766;
  --green-2: #0e9159;
  --green-soft: #def5e8;
  --green-glow: rgba(16, 167, 102, 0.32);

  /* Money */
  --money: #10a766;

  /* VIP gold */
  --gold: #d4a017;
  --gold-soft: #fbecc4;

  /* Accent palette for menu icons / chips */
  --c-blue: #3b75e0;
  --c-blue-soft: #e2ecfb;
  --c-purple: #7c5cd1;
  --c-purple-soft: #ece5fa;
  --c-amber: #d68a1f;
  --c-amber-soft: #fbecd0;
  --c-teal: #0d9488;
  --c-teal-soft: #d6f0ec;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(13, 31, 23, 0.04);
  --shadow-sm: 0 1px 3px rgba(13, 31, 23, 0.06), 0 1px 2px rgba(13, 31, 23, 0.04);
  --shadow-md: 0 4px 14px -4px rgba(13, 31, 23, 0.10), 0 2px 4px rgba(13, 31, 23, 0.04);
  --shadow-lg: 0 14px 36px -10px rgba(13, 31, 23, 0.20);
  --shadow-balance: 0 18px 40px -12px rgba(14, 59, 44, 0.45);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;

  --font-display: "Bricolage Grotesque", "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);

  --nav-h: 72px;
}

/* -- Reset --------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  min-height: 100%;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
}

input,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
li {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

svg {
  display: block;
}

/* -- App container ------------------------------------------- */
.app {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  background: var(--bg);
  overflow: hidden;
  margin: 0 auto;
}

@media (min-width: 600px) {
  body {
    background:
      radial-gradient(ellipse 80% 60% at 50% 0%, #f0ebd7 0%, #e6e0cb 60%, #ddd6bf 100%);
    display: grid;
    place-items: center;
    padding: 24px;
    min-height: 100dvh;
  }

  .app {
    width: 420px;
    height: min(900px, calc(100dvh - 48px));
    min-height: auto;
    border-radius: 44px;
    overflow: hidden;
    box-shadow:
      0 0 0 11px #0e0e10,
      0 0 0 12px #2a2a2c,
      0 28px 64px -12px rgba(0, 0, 0, 0.40),
      0 8px 18px -8px rgba(0, 0, 0, 0.30);
  }

  .app::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 28px;
    background: #0e0e10;
    border-radius: 999px;
    z-index: 200;
  }
}

/* -- Screen system ------------------------------------------- */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100dvh;
  position: relative;
}

@media (min-width: 600px) {
  .screen {
    min-height: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

.screen.is-active {
  display: flex;
  animation: screenIn 0.45s var(--ease-out);
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen.is-back {
  animation: screenInBack 0.4s var(--ease-out);
}

@keyframes screenInBack {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Bottom nav: only visible when authenticated AND on an app screen */
.bottomnav {
  display: none;
}

.app.is-app .bottomnav {
  display: flex;
}

/* ============================================================
   WELCOME / SPLASH
   ============================================================ */
.splash {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: calc(28px + var(--safe-top)) 28px calc(28px + var(--safe-bot));
  position: relative;
  overflow: hidden;
  color: #f4f1e8;
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, #1a5840 0%, #0e3b2c 55%, #082a1f 100%);
}

.splash__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.splash__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .55;
}

.splash__blob--1 {
  width: 300px;
  height: 300px;
  top: -120px;
  right: -100px;
  background: radial-gradient(circle, #20a872, transparent 70%);
}

.splash__blob--2 {
  width: 240px;
  height: 240px;
  bottom: 12%;
  left: -90px;
  background: radial-gradient(circle, #e8b04f, transparent 70%);
  opacity: .35;
}

.splash__blob--3 {
  width: 200px;
  height: 200px;
  bottom: -60px;
  right: -40px;
  background: radial-gradient(circle, #3aaf86, transparent 70%);
  opacity: .35;
}

.splash__brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.splash__logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #f4f1e8;
  color: var(--primary);
}

.splash__logo svg {
  width: 18px;
  height: 18px;
}

.splash__brandname {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.splash__art {
  flex: 1;
  position: relative;
  margin: 24px -20px;
  min-height: 200px;
}

.coin {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  background: linear-gradient(135deg, #ffd66e, #c89327);
  color: #5b3a06;
  box-shadow:
    inset 0 -2px 4px rgba(0, 0, 0, .15),
    inset 0 2px 4px rgba(255, 255, 255, .35),
    0 8px 18px -4px rgba(0, 0, 0, .35);
  animation: coinFloat 4s var(--ease-in-out) infinite;
}

.coin--1 {
  top: 8%;
  right: 18%;
  animation-delay: 0s;
}

.coin--2 {
  top: 38%;
  left: 12%;
  width: 44px;
  height: 44px;
  font-size: 18px;
  animation-delay: 1s;
}

.coin--3 {
  bottom: 22%;
  right: 28%;
  width: 36px;
  height: 36px;
  font-size: 16px;
  animation-delay: 2s;
}

@keyframes coinFloat {

  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }

  50% {
    transform: translateY(-10px) rotate(6deg);
  }
}

.hero-card {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 78%;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, .35);
  color: var(--ink);
  animation: cardFloat 5s var(--ease-in-out) infinite;
}

@keyframes cardFloat {

  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateX(-50%) translateY(-8px) rotate(-1deg);
  }
}

.hero-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-soft), #b6e6cd);
  position: relative;
}

.hero-card__icon::after {
  content: "";
  position: absolute;
  inset: 9px;
  background: var(--green);
  clip-path: polygon(15% 50%, 35% 70%, 80% 25%, 80% 35%, 35% 80%, 15% 60%);
}

.hero-card__lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-card__lines span {
  height: 7px;
  background: var(--surface-2);
  border-radius: 4px;
}

.hero-card__lines span:first-child {
  width: 80%;
}

.hero-card__lines span:last-child {
  width: 50%;
  opacity: .6;
}

.hero-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--money);
}

.hero-card__bar {
  margin-top: 12px;
  height: 6px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
}

.hero-card__bar span {
  display: block;
  height: 100%;
  width: 70%;
  background: linear-gradient(90deg, var(--primary), var(--green));
  border-radius: 4px;
  animation: barFill 3s var(--ease-in-out) infinite;
}

@keyframes barFill {
  0% {
    width: 30%;
  }

  50% {
    width: 85%;
  }

  100% {
    width: 30%;
  }
}

.splash__content {
  position: relative;
}

.splash__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 9vw, 44px);
  line-height: 1.0;
  letter-spacing: -0.035em;
}

.splash__title em {
  font-style: italic;
  font-weight: 500;
  color: #f9d77f;
}

.splash__sub {
  margin-top: 14px;
  font-size: 15px;
  color: rgba(244, 241, 232, 0.78);
  max-width: 30ch;
}

.splash__actions {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .15s var(--ease-out), background .25s ease, opacity .2s ease, box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.btn--primary {
  background: #f4f1e8;
  color: var(--primary);
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .35);
}

.btn--primary .ico {
  width: 18px;
  height: 18px;
}

.screen--auth .btn--primary,
.screen--app .btn--primary {
  background: var(--primary);
  color: #f4f1e8;
  box-shadow: 0 8px 22px -8px var(--primary-glow);
}

.screen--auth .btn--primary:hover:not(:disabled),
.screen--app .btn--primary:hover:not(:disabled) {
  background: var(--primary-2);
}

.btn--ghost {
  background: transparent;
  color: rgba(244, 241, 232, 0.85);
  border: 1px solid rgba(244, 241, 232, 0.18);
}

.btn--ghost:hover {
  background: rgba(244, 241, 232, 0.08);
}

.btn--block {
  width: 100%;
}

.btn__icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.btn__icon svg {
  position: absolute;
  width: 18px;
  height: 18px;
  transition: opacity .25s ease;
}

.btn__icon .ico-spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(244, 241, 232, .35);
  border-top-color: #f4f1e8;
  opacity: 0;
  animation: spin .8s linear infinite;
}

.btn.is-loading .btn__label {
  opacity: 0;
}

.btn.is-loading .ico-arrow {
  opacity: 0;
}

.btn.is-loading .ico-spinner {
  opacity: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  display: flex;
  align-items: center;
  padding: calc(14px + var(--safe-top)) 16px 8px;
  min-height: 56px;
}

.topbar--titled {
  justify-content: space-between;
  gap: 12px;
}

.topbar__title {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.topbar__spacer {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.iconbtn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background .2s ease, transform .15s ease;
  flex-shrink: 0;
}

.iconbtn:hover {
  background: var(--surface-2);
}

.iconbtn:active {
  transform: scale(0.94);
}

.iconbtn svg {
  width: 20px;
  height: 20px;
}

.iconbtn--bell {
  position: relative;
}

.iconbtn__dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--surface);
}

/* ============================================================
   AUTH SCREENS
   ============================================================ */
.auth {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 24px 28px;
}

.auth--withdraw {
  padding-top: 0;
}

.auth__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 8vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-top: 8px;
}

.auth__sub {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 15px;
}

.form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth--withdraw .form {
  margin-top: 18px;
}

/* Form field */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  padding-left: 4px;
}

.field__wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 0 12px 0 14px;
  height: 54px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field__wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  background: var(--surface);
}

.field__lead {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  color: var(--ink-3);
  flex-shrink: 0;
}

.field__lead svg {
  width: 18px;
  height: 18px;
}

.field__prefix {
  font-weight: 600;
  color: var(--ink-2);
  margin-right: 8px;
  border-right: 1.5px solid var(--line);
  padding-right: 10px;
  font-size: 15px;
}

.field__prefix--lone {
  border-right: 0;
  padding-right: 0;
  margin-right: 6px;
  font-size: 18px;
  color: var(--ink-3);
}

.field__input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  min-width: 0;
}

.field__input--lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.field__input::placeholder {
  color: var(--ink-3);
  font-weight: 400;
}

/* Native select cleanup */
.field__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  padding-right: 28px;
  cursor: pointer;
  color: var(--ink);
}

.field__select:invalid {
  color: var(--ink-3);
}

.field__select option {
  color: var(--ink);
}

.field__chev {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
  color: var(--ink-3);
}

.field__chev svg {
  width: 18px;
  height: 18px;
}

.field__action {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  margin-left: 8px;
  transition: background .2s ease, transform .15s ease;
}

.field__action:hover {
  background: #c9e6d4;
}

.field__action:active {
  transform: scale(0.94);
}

.field__toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--ink-3);
  margin-right: -4px;
  transition: background .2s ease, color .2s ease;
}

.field__toggle:hover {
  background: var(--surface-2);
  color: var(--ink-2);
}

.field__toggle svg {
  width: 18px;
  height: 18px;
}

.field__toggle .ico-eye-off {
  display: none;
}

.field__toggle.is-shown .ico-eye {
  display: none;
}

.field__toggle.is-shown .ico-eye-off {
  display: block;
}

/* Password live hint */
.field__hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding-left: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color .2s ease;
}

.field__hint-icon {
  position: relative;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
}

.field__hint-icon svg {
  position: absolute;
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity .2s ease;
}

.field__hint[data-state="default"] .hint-default {
  opacity: 1;
}

.field__hint[data-state="valid"] .hint-valid {
  opacity: 1;
}

.field__hint[data-state="invalid"] .hint-invalid {
  opacity: 1;
}

.field__hint[data-state="valid"] {
  color: var(--green-2);
}

.field__hint[data-state="invalid"] {
  color: var(--red);
}

.form__error {
  color: var(--red);
  font-size: 13px;
  font-weight: 500;
  min-height: 18px;
  margin-top: -4px;
  padding-left: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity .25s ease;
}

.form__error.is-visible {
  opacity: 1;
}

.auth__terms {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  margin-top: 4px;
}

.auth__switch {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
  color: var(--ink-2);
  font-size: 14px;
}

.auth__switch a {
  color: var(--primary);
  font-weight: 700;
  margin-left: 4px;
  cursor: pointer;
}

/* ============================================================
   APP HEADER
   ============================================================ */
.appbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(14px + var(--safe-top)) 18px 10px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(250, 248, 242, 0.85);
}

.appbar--simple {
  justify-content: flex-start;
}

.appbar__center {
  flex: 1;
  min-width: 0;
}

.appbar__hi {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}

.appbar__phone {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.appbar__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

/* Avatar */
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.005em;
  background: linear-gradient(135deg, var(--primary), #1a6e51);
  color: #f4f1e8;
  border: 2px solid #f4f1e8;
  box-shadow: 0 2px 8px -2px var(--primary-glow);
  transition: transform .15s ease;
}

.avatar:active {
  transform: scale(0.94);
}

.avatar--sm {
  width: 42px;
  height: 42px;
  font-size: 14px;
}

.avatar--lg {
  width: 84px;
  height: 84px;
  font-size: 28px;
  border-width: 3px;
  box-shadow: 0 8px 24px -6px var(--primary-glow);
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page {
  flex: 1;
  padding: 0 18px calc(40px + var(--nav-h) + var(--safe-bot));
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page__foot {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 6px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-head span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
}

/* ============================================================
   BALANCE CARD
   ============================================================ */
.balance-card {
  position: relative;
  border-radius: var(--r-2xl);
  padding: 22px 22px 20px;
  color: #f4f1e8;
  background:
    radial-gradient(ellipse 100% 70% at 100% 0%, #1f6649 0%, transparent 60%),
    linear-gradient(135deg, #0e3b2c 0%, #082a1f 100%);
  box-shadow: var(--shadow-balance);
  overflow: hidden;
  isolation: isolate;
  margin-top: 4px;
}

.balance-card__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ring {
  position: absolute;
  border: 1.5px solid rgba(244, 241, 232, 0.10);
  border-radius: 50%;
}

.ring--1 {
  width: 220px;
  height: 220px;
  right: -120px;
  top: -90px;
}

.ring--2 {
  width: 320px;
  height: 320px;
  right: -180px;
  top: -150px;
  opacity: .6;
}

.ring--3 {
  width: 140px;
  height: 140px;
  right: -50px;
  bottom: -90px;
  border-color: rgba(244, 241, 232, 0.06);
}

.balance-card>*:not(.balance-card__decor) {
  position: relative;
  z-index: 1;
}

.balance-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.balance-card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 241, 232, 0.65);
}

.balance-card__eye {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(244, 241, 232, 0.10);
  color: rgba(244, 241, 232, 0.85);
  transition: background .2s ease;
}

.balance-card__eye:hover {
  background: rgba(244, 241, 232, 0.18);
}

.balance-card__eye svg {
  width: 16px;
  height: 16px;
}

.balance-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: rgba(244, 241, 232, 0.10);
  color: #f4f1e8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.balance-card__pill svg {
  width: 12px;
  height: 12px;
}

.balance-card__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 11vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-variant-numeric: tabular-nums;
  margin: 4px 0 18px;
}

.balance-card__amount.is-hidden #balance,
.balance-card__amount.is-hidden #walletBalance {
  filter: blur(12px);
  user-select: none;
}

.balance-card__currency {
  font-size: 0.55em;
  color: rgba(244, 241, 232, 0.7);
}

.balance-card__stats {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(244, 241, 232, 0.07);
  border: 1px solid rgba(244, 241, 232, 0.10);
  border-radius: var(--r-md);
}

.balance-card__stat {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.balance-card__stat-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(244, 241, 232, 0.12);
  color: #c8e8d3;
  flex-shrink: 0;
}

.balance-card__stat-icon svg {
  width: 16px;
  height: 16px;
}

.balance-card__stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: #f4f1e8;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.balance-card__stat span:last-child {
  font-size: 11px;
  color: rgba(244, 241, 232, 0.65);
  font-weight: 500;
  margin-top: 2px;
  display: block;
}

.balance-card__divider {
  width: 1px;
  align-self: stretch;
  background: rgba(244, 241, 232, 0.10);
}

/* 4-button action row — equal width, balanced spacing */
.balance-card__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.balance-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 11px 4px 12px;
  border-radius: var(--r-md);
  background: rgba(244, 241, 232, 0.10);
  color: #f4f1e8;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background .2s ease, transform .15s ease;
  min-width: 0;
}

.balance-action:active {
  transform: scale(0.94);
}

.balance-action:hover {
  background: rgba(244, 241, 232, 0.16);
}

.balance-action__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(244, 241, 232, 0.15);
}

.balance-action__icon svg {
  width: 14px;
  height: 14px;
}

.balance-action--vip .balance-action__icon {
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #fff;
  box-shadow: 0 2px 8px -2px rgba(212, 160, 23, 0.4);
}

/* ============================================================
   CHIPS
   ============================================================ */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -18px;
  padding: 4px 18px;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1.5px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all .2s ease;
  white-space: nowrap;
}

.chip:active {
  transform: scale(0.96);
}

.chip.is-active {
  background: var(--ink);
  color: #f4f1e8;
  border-color: var(--ink);
}

/* ============================================================
   TASK CARD
   ============================================================ */
.tasks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .2s ease, background .3s ease;
  opacity: 0;
  transform: translateY(8px);
  animation: taskIn .55s var(--ease-out) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes taskIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.task:active {
  transform: translateY(0) scale(0.99);
}

.task__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.task__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--primary);
  flex-shrink: 0;
}

.task__icon svg {
  width: 22px;
  height: 22px;
}

.task__info {
  flex: 1;
  min-width: 0;
}

.task__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--ink);
}

.task__desc {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
}

.task__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.task__chip {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.task__time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 500;
}

.task__time svg {
  width: 13px;
  height: 13px;
}

.task__reward {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--money);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}

.task__reward-cur {
  font-size: 13px;
  opacity: .9;
}

.task__progress {
  height: 4px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .3s ease, opacity .25s ease, margin .3s ease;
}

.task[data-status="in_progress"] .task__progress,
.task[data-status="ready"] .task__progress {
  max-height: 4px;
  opacity: 1;
}

.task__progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--green));
  border-radius: var(--r-pill);
  transition: width .25s linear;
}

.task[data-status="ready"] .task__progress-fill {
  background: var(--green);
  width: 100% !important;
}

/* TASK BUTTON: red → green progression */
.taskbtn {
  --b-bg: var(--red);
  --b-fg: #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--b-bg);
  color: var(--b-fg);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  transition:
    background .35s ease,
    color .25s ease,
    transform .15s var(--ease-out),
    box-shadow .35s ease,
    opacity .25s ease;
  box-shadow: 0 6px 18px -6px var(--red-glow);
  overflow: hidden;
}

.taskbtn:active:not(:disabled) {
  transform: scale(0.97);
}

.taskbtn:hover:not(:disabled) {
  background: var(--red-2);
}

.taskbtn__icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.taskbtn__icon svg {
  position: absolute;
  width: 18px;
  height: 18px;
  transition: opacity .25s ease, transform .35s var(--ease-spring);
}

.taskbtn__icon .ico-check {
  opacity: 0;
  transform: scale(0.4);
}

.taskbtn__icon .ico-spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  opacity: 0;
  animation: spin .8s linear infinite;
}

.task[data-status="in_progress"] .taskbtn {
  --b-bg: var(--surface-2);
  --b-fg: var(--ink-3);
  box-shadow: none;
  pointer-events: none;
}

.task[data-status="in_progress"] .taskbtn:hover {
  background: var(--surface-2);
}

.task[data-status="in_progress"] .ico-arrow {
  opacity: 0;
}

.task[data-status="ready"] .taskbtn {
  --b-bg: var(--green);
  --b-fg: #ffffff;
  box-shadow: 0 6px 18px -6px var(--green-glow);
  animation: readyPulse 1.8s ease-in-out infinite;
}

.task[data-status="ready"] .taskbtn:hover {
  background: var(--green-2);
}

@keyframes readyPulse {

  0%,
  100% {
    box-shadow: 0 6px 18px -6px var(--green-glow), 0 0 0 0 rgba(16, 167, 102, 0);
  }

  50% {
    box-shadow: 0 6px 18px -6px var(--green-glow), 0 0 0 8px rgba(16, 167, 102, 0.0);
    transform: translateY(-1px);
  }
}

.task[data-status="completing"] .taskbtn {
  --b-bg: var(--green);
  --b-fg: #ffffff;
  pointer-events: none;
}

.task[data-status="completing"] .taskbtn__label {
  opacity: 0;
}

.task[data-status="completing"] .ico-arrow {
  opacity: 0;
}

.task[data-status="completing"] .ico-spinner {
  opacity: 1;
}

.task[data-status="completed"] {
  background: linear-gradient(180deg, var(--green-soft) 0%, var(--surface) 100%);
  border-color: #c4e8d4;
}

.task[data-status="completed"] .task__icon {
  background: #c4e8d4;
  color: var(--green-2);
}

.task[data-status="completed"] .taskbtn {
  --b-bg: transparent;
  --b-fg: var(--green-2);
  border: 1.5px solid #b5dec7;
  box-shadow: none;
  pointer-events: none;
}

.task[data-status="completed"] .taskbtn:hover {
  background: transparent;
}

.task[data-status="completed"] .ico-arrow {
  opacity: 0;
}

.task[data-status="completed"] .ico-check {
  opacity: 1;
  transform: scale(1);
}

.task.is-hidden {
  display: none;
}

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottomnav {
  /* display is controlled by .app.is-app .bottomnav — do NOT set it here */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: calc(var(--nav-h) + var(--safe-bot));
  padding: 8px 8px calc(8px + var(--safe-bot));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  justify-content: space-around;
  align-items: center;
}

@media (min-width: 600px) {
  .bottomnav {
    position: absolute;
    border-radius: 0 0 32px 32px;
  }
}

.navitem {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  position: relative;
  transition: color .25s ease;
  min-width: 0;
}

.navitem__ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  transition: background .25s var(--ease-spring), transform .25s var(--ease-spring);
}

.navitem__ico svg {
  width: 22px;
  height: 22px;
  transition: stroke-width .2s ease, transform .25s ease;
}

.navitem__label {
  white-space: nowrap;
}

.navitem:active .navitem__ico {
  transform: scale(0.92);
}

.navitem.is-active {
  color: var(--primary);
}

.navitem.is-active .navitem__ico {
  background: var(--primary-soft);
  transform: translateY(-2px);
}

.navitem.is-active .navitem__ico svg {
  stroke-width: 2.4;
}

.navitem.is-active::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}

/* ============================================================
   PROFILE
   ============================================================ */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 4px;
  gap: 12px;
}

.profile-hero__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 4px;
}

.profile-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--green-soft);
  color: var(--green-2);
  font-size: 12px;
  font-weight: 700;
}

.profile-hero__badge svg {
  width: 14px;
  height: 14px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-xs);
}

.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.profile-stat:not(:last-child) {
  border-right: 1px solid var(--line);
}

.profile-stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.profile-stat__label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Small subtitle under a stat label — e.g. Security Deposit unlock date */
.profile-stat__hint {
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* "coming soon" pill on profile menu items */
.menu__tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  margin-right: 4px;
  background: var(--gold-soft);
  color: #8a6500;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.menu {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.menu__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background .15s ease;
}

.menu__item:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.menu__item:hover {
  background: var(--surface-2);
}

.menu__item:active {
  background: var(--bg-2);
}

.menu__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  flex-shrink: 0;
}

.menu__icon svg {
  width: 18px;
  height: 18px;
}

.menu__icon--blue {
  background: var(--c-blue-soft);
  color: var(--c-blue);
}

.menu__icon--purple {
  background: var(--c-purple-soft);
  color: var(--c-purple);
}

.menu__icon--amber {
  background: var(--c-amber-soft);
  color: var(--c-amber);
}

.menu__icon--teal {
  background: var(--c-teal-soft);
  color: var(--c-teal);
}

.menu__icon--red {
  background: var(--red-soft);
  color: var(--red);
}

.menu__icon--green {
  background: var(--green-soft);
  color: var(--green);
}

.menu__badge--green {
  background: var(--green-soft);
  color: var(--green-2);
}

.menu__label {
  flex: 1;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
}

.menu__chev {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
}

.menu__item--danger .menu__label {
  color: var(--red);
}

/* ============================================================
   WALLET — TRANSACTIONS (mixed types)
   ============================================================ */
.txns {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.txn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.txn:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.txn__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.txn__icon svg {
  width: 18px;
  height: 18px;
}

.txn--task .txn__icon {
  background: var(--green-soft);
  color: var(--green-2);
}

.txn--referral .txn__icon {
  background: var(--c-purple-soft);
  color: var(--c-purple);
}

.txn--withdrawal .txn__icon {
  background: var(--red-soft);
  color: var(--red-2);
}

.txn__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.txn__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.txn__sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.txn__type {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.txn--task .txn__type {
  background: var(--green-soft);
  color: var(--green-2);
}

.txn--referral .txn__type {
  background: var(--c-purple-soft);
  color: var(--c-purple);
}

.txn--withdrawal .txn__type {
  background: var(--red-soft);
  color: var(--red-2);
}

.txn__date {
  white-space: nowrap;
}

.txn__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.015em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.txn__amount--pos {
  color: var(--green);
}

.txn__amount--neg {
  color: var(--red-2);
}

.txns__empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}

/* ============================================================
   WITHDRAW SCREEN — extras
   ============================================================ */
.withdraw-balance {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  box-shadow: var(--shadow-xs);
}

.withdraw-balance__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.withdraw-balance__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   REFERRAL SCREEN
   ============================================================ */
.referral-hero {
  position: relative;
  margin-top: 4px;
  padding: 22px 22px 20px;
  border-radius: var(--r-2xl);
  color: #f4f1e8;
  background:
    radial-gradient(ellipse 100% 70% at 100% 0%, #1f6649 0%, transparent 60%),
    linear-gradient(135deg, #0e3b2c 0%, #082a1f 100%);
  box-shadow: var(--shadow-balance);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.referral-hero__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.referral-hero__decor .ring--1 {
  width: 280px;
  height: 280px;
  right: -120px;
  top: -140px;
  border-color: rgba(244, 241, 232, 0.10);
}

.referral-hero__decor .ring--2 {
  width: 200px;
  height: 200px;
  left: -100px;
  bottom: -100px;
  border-color: rgba(244, 241, 232, 0.06);
}

.referral-hero>*:not(.referral-hero__decor) {
  position: relative;
  z-index: 1;
}

.referral-hero__badge {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(244, 241, 232, 0.10);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c8e8d3;
}

.referral-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 9vw, 38px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-top: 14px;
}

.referral-hero__sub {
  margin: 12px auto 18px;
  font-size: 14px;
  color: rgba(244, 241, 232, 0.78);
  max-width: 30ch;
  line-height: 1.45;
}

.referral-code {
  background: rgba(244, 241, 232, 0.08);
  border: 1px dashed rgba(244, 241, 232, 0.22);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-bottom: 14px;
  text-align: left;
}

.referral-code__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 241, 232, 0.6);
}

.referral-code__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.referral-code__row strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: #f4f1e8;
}

.referral-code__copy {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(244, 241, 232, 0.12);
  color: #f4f1e8;
  transition: background .2s ease, transform .15s ease;
  flex-shrink: 0;
}

.referral-code__copy:hover {
  background: rgba(244, 241, 232, 0.20);
}

.referral-code__copy:active {
  transform: scale(0.94);
}

.referral-code__copy svg {
  width: 16px;
  height: 16px;
}

.referral-hero .btn--primary {
  background: #f4f1e8;
  color: var(--primary);
}

.referral-hero .btn--primary:hover:not(:disabled) {
  background: #fff;
}

/* Reuse profile-stats grid */
.referral-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-xs);
}

.referral-stats .profile-stat:not(:last-child) {
  border-right: 1px solid var(--line);
}

.how-list {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.how-list__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
}

.how-list__item:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.how-list__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

.how-list__body {
  flex: 1;
  min-width: 0;
}

.how-list__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.25;
}

.how-list__body p {
  margin-top: 3px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 16px + var(--safe-bot));
  transform: translate(-50%, 24px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  background: var(--ink);
  color: #f4f1e8;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity .3s ease, transform .45s var(--ease-spring);
  max-width: calc(100% - 36px);
}

@media (min-width: 600px) {
  .toast {
    position: absolute;
  }
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  flex-shrink: 0;
}

.toast__icon svg {
  width: 14px;
  height: 14px;
}

.toast__body {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.toast__title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.toast__msg {
  font-size: 12px;
  color: rgba(244, 241, 232, 0.7);
  font-weight: 500;
  margin-top: 1px;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   SMALL PHONES
   ============================================================ */
@media (max-width: 360px) {
  .auth {
    padding: 8px 18px 24px;
  }

  .page {
    padding: 0 14px calc(40px + var(--nav-h) + var(--safe-bot));
  }

  .balance-card {
    padding: 18px;
  }

  .balance-card__amount {
    font-size: 36px;
  }

  .balance-card__actions {
    gap: 6px;
  }

  .balance-action {
    padding: 10px 2px 11px;
    font-size: 10.5px;
  }

  .balance-action__icon {
    width: 28px;
    height: 28px;
  }

  .balance-action__icon svg {
    width: 13px;
    height: 13px;
  }

  .task {
    padding: 16px;
  }

  .navitem {
    font-size: 10px;
  }

  .referral-hero {
    padding: 18px;
  }
}

/* ============================================================
   VIP PAGE
   ============================================================ */
.appbar__back {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: transform .15s ease, background .2s ease;
}

.appbar__back:active {
  transform: scale(0.92);
}

.appbar__back:hover {
  background: var(--surface-2);
}

.appbar__back svg {
  width: 18px;
  height: 18px;
}

/* -- Hero ---------------------------------------------------- */
.vip-hero {
  text-align: left;
  padding: 4px 2px 2px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vip-hero__badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 10px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.14), rgba(124, 92, 209, 0.10));
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  border: 1px solid rgba(212, 160, 23, 0.25);
}

.vip-hero__badge svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.vip-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 2px 0 0;
}

.vip-hero__title em {
  font-style: italic;
  font-weight: 600;
  color: var(--primary);
}

.vip-hero__sub {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 32ch;
}

/* -- Tier list ---------------------------------------------- */
.vip-tiers {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* -- Tier card (shared) -------------------------------------- */
.vip-card {
  position: relative;
  padding: 22px 22px 20px;
  border-radius: var(--r-2xl);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: transform .2s var(--ease-out), box-shadow .2s ease;
}

.vip-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.95;
}

.vip-card:active {
  transform: scale(0.99);
}

.vip-card__ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.vip-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vip-card__icon {
  width: 50px;
  height: 50px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  box-shadow: 0 2px 6px -2px rgba(13, 31, 23, 0.12);
}

.vip-card__icon svg {
  width: 24px;
  height: 24px;
}

.vip-card__heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vip-card__tier {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.vip-card__tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.005em;
}

.vip-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 18px;
}

.vip-card__price-currency {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink-2);
}

.vip-card__price-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
}

.vip-card__perks {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.vip-card__perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 500;
}

.vip-card__perks svg {
  width: 16px;
  height: 16px;
  flex: none;
  padding: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
}

.vip-card__perks strong {
  color: var(--ink);
  font-weight: 700;
}

.vip-card__cta {
  margin-top: 18px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #fff;
  background: var(--ink);
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 18px -6px rgba(13, 31, 23, 0.35);
}

.vip-card__cta:active {
  transform: scale(0.97);
}

.vip-card__cta:hover {
  filter: brightness(1.08);
}

.vip-card__cta svg {
  width: 16px;
  height: 16px;
}

/* -- SILVER theme ------------------------------------------- */
.vip-card--silver {
  border-color: #d4d8dc;
  background: linear-gradient(160deg, #f4f5f7 0%, #e9ecef 60%, #dde1e5 100%);
}

.vip-card--silver .vip-card__icon {
  background: linear-gradient(135deg, #ffffff, #cdd2d8);
  color: #5a6470;
}

.vip-card--silver .vip-card__perks svg {
  color: #5a6470;
}

.vip-card--silver .vip-card__cta {
  background: linear-gradient(135deg, #5a6470, #3a4350);
  box-shadow: 0 6px 18px -6px rgba(58, 67, 80, 0.45);
}

/* -- GOLD theme --------------------------------------------- */
.vip-card--gold {
  border-color: #e6c878;
  background: linear-gradient(160deg, #fff5d4 0%, #f7dc8b 55%, #d4a017 130%);
}

.vip-card--gold .vip-card__icon {
  background: linear-gradient(135deg, #ffffff, #f0c64a);
  color: #8a6500;
}

.vip-card--gold .vip-card__ribbon {
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #fff;
  box-shadow: 0 4px 10px -3px rgba(184, 134, 11, 0.5);
}

.vip-card--gold .vip-card__perks svg {
  color: #8a6500;
}

.vip-card--gold .vip-card__cta {
  background: linear-gradient(135deg, #d4a017, #8a6500);
  box-shadow: 0 8px 22px -6px rgba(184, 134, 11, 0.55);
}

/* -- DIAMOND theme ------------------------------------------ */
.vip-card--diamond {
  border-color: rgba(124, 92, 209, 0.35);
  background: linear-gradient(160deg, #1a2540 0%, #2a1a55 50%, #4a2a80 100%);
  color: #f0e8ff;
}

.vip-card--diamond .vip-card__tier,
.vip-card--diamond .vip-card__price-amount {
  color: #ffffff;
}

.vip-card--diamond .vip-card__price-currency,
.vip-card--diamond .vip-card__tag {
  color: #c4b8e8;
}

.vip-card--diamond .vip-card__icon {
  background: linear-gradient(135deg, #ffffff, #c4b8e8);
  color: #2a1a55;
}

.vip-card--diamond .vip-card__perks li {
  color: #d8cff0;
}

.vip-card--diamond .vip-card__perks strong {
  color: #ffffff;
}

.vip-card--diamond .vip-card__perks svg {
  background: rgba(255, 255, 255, 0.15);
  color: #c4b8e8;
}

.vip-card--diamond .vip-card__ribbon--premium {
  background: linear-gradient(135deg, #7c5cd1, #3b75e0);
  color: #fff;
  box-shadow: 0 4px 12px -3px rgba(124, 92, 209, 0.6);
}

.vip-card--diamond .vip-card__cta {
  background: linear-gradient(135deg, #7c5cd1, #3b75e0);
  box-shadow: 0 8px 22px -6px rgba(59, 117, 224, 0.6);
}

/* Subtle sparkle on the diamond card */
.vip-card--diamond::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* "Currently active tier" indicator (used when userVIP is set) */
.vip-card.is-current {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* -- Notice -------------------------------------------------- */
.vip-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 0;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}

.vip-note svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  opacity: 0.85;
}

/* ============================================================
   VIP CONFIRMATION MODAL
   ============================================================ */
.vip-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
}

.vip-modal.is-visible {
  pointer-events: auto;
  visibility: visible;
}

.vip-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 29, 20, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s var(--ease-in-out);
}

.vip-modal.is-visible .vip-modal__backdrop {
  opacity: 1;
}

.vip-modal__sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  padding: 14px 22px calc(22px + var(--safe-bot));
  box-shadow: 0 -10px 40px -10px rgba(13, 31, 23, 0.25);
  transform: translateY(100%);
  transition: transform .35s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vip-modal.is-visible .vip-modal__sheet {
  transform: translateY(0);
}

.vip-modal__handle {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: var(--line-2);
  align-self: center;
  margin-bottom: 4px;
}

.vip-modal__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  align-self: center;
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #fff;
  box-shadow: 0 8px 22px -6px rgba(184, 134, 11, 0.5);
}

.vip-modal__icon svg {
  width: 26px;
  height: 26px;
}

.vip-modal[data-tier="silver"] .vip-modal__icon {
  background: linear-gradient(135deg, #8a939e, #4a5360);
  box-shadow: 0 8px 22px -6px rgba(74, 83, 96, 0.45);
}

.vip-modal[data-tier="diamond"] .vip-modal__icon {
  background: linear-gradient(135deg, #7c5cd1, #3b75e0);
  box-shadow: 0 8px 22px -6px rgba(59, 117, 224, 0.5);
}

.vip-modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--ink);
  margin: 0;
}

.vip-modal__msg {
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  padding: 0 8px;
}

.vip-modal__msg em {
  font-style: normal;
  color: var(--ink);
  font-weight: 600;
}

/* Install instructions list (iOS Add-to-Home-Screen guide) */
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 4px;
  padding: 14px 16px;
  background: var(--primary-soft);
  border-radius: var(--r-md);
  list-style: none;
}

.install-steps li {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
}

.install-steps li strong {
  font-weight: 700;
  color: var(--primary);
}

.vip-modal__summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 4px 14px;
  margin-top: 4px;
}

.vip-modal__summary div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 13.5px;
}

.vip-modal__summary div+div {
  border-top: 1px solid var(--line);
}

.vip-modal__summary span {
  color: var(--ink-3);
  font-weight: 500;
}

.vip-modal__summary strong {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.005em;
}

.vip-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.vip-modal__actions .btn {
  flex: 1;
  padding: 13px 18px;
}

/* ============================================================
   DEPOSIT (Wallet)
   ------------------------------------------------------------
   Frontend-only deposit card. Lives inside the wallet page
   between the balance card and recent activity. Hidden by
   default; toggled open via [data-action="open-deposit"].
   ============================================================ */

/* The `hidden` attribute must always win over our own display
   rules (display: flex/block/grid below would otherwise force
   things back into view). Scoped to the deposit-related elements
   we toggle so we don't touch anything else in the app. */
.deposit-card[hidden],
.deposit-card [hidden],
.section-head[hidden],
.txns[hidden] {
  display: none !important;
}

.deposit-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: depositIn .4s var(--ease-out);
}

@keyframes depositIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.deposit-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.deposit-card__heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.deposit-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.deposit-card__sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  line-height: 1.4;
}

.deposit-card__close {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink-2);
  transition: background .2s ease, transform .15s ease;
}

.deposit-card__close:hover {
  background: var(--line);
}

.deposit-card__close:active {
  transform: scale(0.92);
}

.deposit-card__close svg {
  width: 16px;
  height: 16px;
}

.deposit-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Hide the native file input — we trigger it via the preview label */
.receipt-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.receipt-preview {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: 12px;
  border: 1.5px dashed var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.receipt-preview:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.receipt-preview.has-file {
  border-style: solid;
  border-color: var(--line);
  background: var(--surface);
  cursor: default;
}

.receipt-preview__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  text-align: center;
  padding: 12px;
  pointer-events: none;
}

.receipt-preview__placeholder svg {
  width: 26px;
  height: 26px;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.receipt-preview__hint {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}

.receipt-preview__meta {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

.receipt-preview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.receipt-preview__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 29, 20, 0.55);
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background .2s ease, transform .15s ease;
  z-index: 2;
}

.receipt-preview__remove:hover {
  background: rgba(10, 29, 20, 0.75);
}

.receipt-preview__remove:active {
  transform: scale(0.9);
}

.receipt-preview__remove svg {
  width: 14px;
  height: 14px;
}

/* Confirmation / success card (replaces form after submit) */
.deposit-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 8px 4px 4px;
  animation: depositIn .35s var(--ease-out);
}

.deposit-success__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-2);
  margin-bottom: 4px;
  box-shadow: 0 6px 18px -6px var(--green-glow);
}

.deposit-success__icon svg {
  width: 26px;
  height: 26px;
}

.deposit-success__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.deposit-success__msg {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 500;
  max-width: 280px;
}

.deposit-success__msg strong {
  color: var(--ink);
  font-weight: 700;
}

.deposit-success .btn {
  margin-top: 10px;
  height: 48px;
  font-size: 14.5px;
}

/* ============================================================
   DEPOSIT — Payment destination block
   ------------------------------------------------------------
   Read-only display of the bank account the user must transfer
   funds to. Each row gets a Copy button (reusing .field__action)
   to make manual transfer painless on mobile.
   ============================================================ */
.pay-to {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-to__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pay-to__heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pay-to__eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.pay-to__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.25;
}

.pay-to__badge {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}

.pay-to__badge svg {
  width: 16px;
  height: 16px;
}

.pay-to__list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.pay-to__row {
  display: grid;
  grid-template-columns: minmax(86px, auto) 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  min-height: 48px;
}

.pay-to__row+.pay-to__row {
  border-top: 1px solid var(--line);
}

.pay-to__label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pay-to__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-to__value--mono {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}

/* Highlight the account number row — it's the one users copy most */
.pay-to__row--primary {
  background: var(--primary-soft);
}

.pay-to__row--primary .pay-to__label {
  color: var(--primary);
  opacity: 0.75;
}

/* Brief "Copied" feedback on copy buttons */
.field__action.is-copied {
  background: var(--green-soft);
  color: var(--green-2);
}

.pay-to__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 2px;
  padding: 0 2px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 500;
}

.pay-to__note svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 2px;
  color: var(--ink-3);
}

/* Tiny "Step N" pill prepended to a field label */
.field__label-step {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 7px;
  border-radius: var(--r-pill);
  margin-right: 6px;
  vertical-align: 1px;
}

/* ============================================================
   ▼▼ NEW STYLES — VIP nav item, dynamic VIP themes,
      account-settings panel, change-password modal, refresh hint ▼▼
   ============================================================ */

/* ---------- VIP nav item (centered between Wallet & Referral) ---------- */
/* Centered, slightly larger, premium pill. Sits as the middle item in a
   5-up bottom nav (Home | Wallet | VIP | Referral | Profile). */
.navitem--vip {
  position: relative;
}

.navitem--vip .navitem__ico {
  width: 40px;
  height: 40px;
  margin-top: -10px;
  /* lifts it above the row */
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow:
    0 8px 18px -6px var(--primary-glow),
    0 2px 6px rgba(13, 31, 23, 0.10);
}

.navitem--vip .navitem__ico svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.navitem--vip .navitem__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Hide the default "active dot" on the VIP item — it has its own halo */
.navitem--vip.is-active::before {
  display: none;
}

.navitem--vip.is-active .navitem__ico {
  transform: translateY(-2px) scale(1.04);
}

/* On VIP themes, color the floating button to match the tier */
body.vip-silver .navitem--vip .navitem__ico {
  background: linear-gradient(135deg, #c9cfd6, #8a96a3);
  color: #1c2229;
  box-shadow: 0 8px 18px -6px rgba(138, 150, 163, 0.55);
}

body.vip-gold .navitem--vip .navitem__ico {
  background: linear-gradient(135deg, #f3c969, #c98e1a);
  color: #2a1d05;
  box-shadow: 0 8px 18px -6px rgba(212, 160, 23, 0.55);
}

body.vip-diamond .navitem--vip .navitem__ico {
  /* "Diamond → green premium" per spec */
  background: linear-gradient(135deg, #1ed688, #0a8a52);
  color: #ffffff;
  box-shadow: 0 8px 18px -6px rgba(16, 167, 102, 0.6);
}

/* ---------- DYNAMIC VIP THEMES ----------
   Activated by adding `vip-silver`, `vip-gold`, or `vip-diamond` to <body>.
   Overrides the brand tokens so navbar, cards, buttons, profile and
   wallet pick up the new palette without any per-component edits.
*/

/* SILVER — cool platinum */
body.vip-silver {
  --primary: #5e6b78;
  --primary-2: #3f4a55;
  --primary-soft: #e7ebef;
  --primary-glow: rgba(94, 107, 120, 0.22);
  --shadow-balance: 0 18px 40px -12px rgba(63, 74, 85, 0.45);
}

body.vip-silver .balance-card {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, #6b7886 0%, #424d59 60%, #2c343d 100%);
}

/* GOLD — luxury warm */
body.vip-gold {
  --primary: #b88512;
  --primary-2: #8a6109;
  --primary-soft: #fbecc4;
  --primary-glow: rgba(184, 133, 18, 0.28);
  --shadow-balance: 0 18px 40px -12px rgba(184, 133, 18, 0.50);
}

body.vip-gold .balance-card {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.22) 0%, transparent 55%),
    linear-gradient(135deg, #f3c969 0%, #c98e1a 55%, #8a6109 100%);
}

/* DIAMOND — premium green */
body.vip-diamond {
  --primary: #0a8a52;
  --primary-2: #066b3f;
  --primary-soft: #d6f3e3;
  --primary-glow: rgba(10, 138, 82, 0.30);
  --shadow-balance: 0 18px 40px -12px rgba(10, 138, 82, 0.55);
}

body.vip-diamond .balance-card {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.20) 0%, transparent 55%),
    linear-gradient(135deg, #1ed688 0%, #0a8a52 55%, #066b3f 100%);
}

/* Shared theme touches: appbar tint + profile badge tint */
body.vip-silver .appbar,
body.vip-gold .appbar,
body.vip-diamond .appbar {
  background: linear-gradient(180deg, var(--primary-soft) 0%, transparent 100%);
}

body.vip-silver .profile-hero__badge,
body.vip-gold .profile-hero__badge,
body.vip-diamond .profile-hero__badge {
  background: var(--primary-soft);
  color: var(--primary-2);
}

/* Active bottom-nav item picks up theme color automatically (uses --primary).
   Force the VIP-card active highlight to honour the theme too. */
body.vip-silver .vip-card.is-current,
body.vip-gold .vip-card.is-current,
body.vip-diamond .vip-card.is-current {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* ---------- VIP STATUS BADGE ON PROFILE ----------
   Used by renderProfileVipBlock() in script.js — replaces the
   plain "Diamond" text with an icon + styled chip.
*/
.vip-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.vip-status-chip svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.vip-status-chip--silver {
  background: linear-gradient(135deg, #e7ebef, #c9cfd6);
  color: #2c343d;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.vip-status-chip--gold {
  background: linear-gradient(135deg, #fbecc4, #f3c969);
  color: #6a4906;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.vip-status-chip--diamond {
  background: linear-gradient(135deg, #d6f3e3, #1ed688);
  color: #04432a;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.vip-status-chip--none {
  background: var(--surface-2);
  color: var(--ink-3);
}

/* ---------- ACCOUNT SETTINGS expandable panel ---------- */
.menu__item--toggle {
  cursor: pointer;
}

.menu__item--toggle .menu__chev {
  transition: transform 0.2s var(--ease-out);
}

.menu__item--toggle[aria-expanded="true"] .menu__chev {
  transform: rotate(90deg);
}

.menu__panel {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.menu__panel[hidden] {
  display: none;
}

.account-settings {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px 18px;
}

.account-settings__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.account-settings__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-settings__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.account-settings__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.account-settings__btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- CHANGE PASSWORD form (inside reused .vip-modal sheet) ---------- */
.change-password-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
}

.change-password-form .field__wrap {
  height: 50px;
}

.change-password-form .form-error {
  margin: 0;
  padding: 0 4px;
  font-size: 12.5px;
  color: var(--red);
  min-height: 16px;
  text-align: left;
}

.change-password-form .form-error:not(.is-visible) {
  visibility: hidden;
}

.change-password-form .vip-modal__actions {
  margin-top: 8px;
}

/* ---------- AUTO-REFRESH spinner hint (top of page, optional) ---------- */
.refresh-pulse {
  position: fixed;
  top: calc(var(--safe-top) + 8px);
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition: opacity 0.2s ease;
}

.refresh-pulse.is-active {
  opacity: 0.85;
  animation: refreshPulse 1.2s var(--ease-out) infinite;
}

@keyframes refreshPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }

  50% {
    transform: scale(1.6);
    opacity: 0.35;
  }
}

/* ---------- PASSWORD REQUIREMENTS CHECKLIST ----------
   Used on the signup form. Hijacks #passwordStrengthHint and turns
   it into a vertical list of rules. Each row goes red+✕ on fail,
   green+✓ on pass, and neutral while the field is still empty.
   The "optional" rule (special char) uses a softer treatment so
   users know it's a nice-to-have, not a blocker. */
.pw-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding: 10px 12px;
  background: var(--surface-2, rgba(0, 0, 0, 0.025));
  border: 1px solid var(--line);
  border-radius: 12px;
  /* override the inline-flex hint defaults from .field__hint */
  align-items: stretch;
}

.pw-checklist__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-3);
  transition: color .2s ease;
}

.pw-checklist__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
  display: grid;
  place-items: center;
}

.pw-checklist__icon .pw-ico {
  position: absolute;
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity .18s ease, transform .18s ease;
}

/* --- pending (field empty): muted dot, no check, no cross --- */
.pw-checklist__row[data-state="pending"] {
  color: var(--ink-3);
}

.pw-checklist__row[data-state="pending"] .pw-ico--cross {
  opacity: 0.45;
  transform: scale(1);
  color: var(--ink-3);
}

/* --- fail: red cross + red text --- */
.pw-checklist__row[data-state="fail"] {
  color: var(--red);
}

.pw-checklist__row[data-state="fail"] .pw-ico--cross {
  opacity: 1;
  transform: scale(1);
  color: var(--red);
}

/* --- pass: green check + green text --- */
.pw-checklist__row[data-state="pass"] {
  color: var(--green-2);
}

.pw-checklist__row[data-state="pass"] .pw-ico--check {
  opacity: 1;
  transform: scale(1);
  color: var(--green-2);
}

/* Optional rule (special char) — never shows red while pending/fail.
   It still goes green on pass for a little moment of delight, but
   while unmet it stays a soft grey so the user understands it's
   not required. */
.pw-checklist__row[data-optional="1"][data-state="fail"],
.pw-checklist__row[data-optional="1"][data-state="pending"] {
  color: var(--ink-3);
  opacity: 0.85;
}

.pw-checklist__row[data-optional="1"][data-state="fail"] .pw-ico--cross,
.pw-checklist__row[data-optional="1"][data-state="pending"] .pw-ico--cross {
  color: var(--ink-3);
  opacity: 0.55;
}



/* ============================================================
   ============================================================
   HOME — MARKETING FUNNEL  (added v2)
   Hero slider, lucky-draw card, marketing sections,
   live-stat band, partners auto-scroll, profile badge.
   Pure additive CSS — no existing rules touched.
   ============================================================
   ============================================================ */

/* --- Page tweak ------------------------------------------- */
.page--home {
  gap: 22px;
}

/* ============================================================
   WELCOME INTRO (mature, professional positioning)
   ============================================================ */
.welcome-intro {
  margin: 4px 0 -4px;
  padding: 0 2px;
}

.welcome-intro__title {
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: var(--ink, #0f1f17);
  margin: 0 0 8px;
}

.welcome-intro__sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(20, 35, 28, 0.72);
  margin: 0;
  font-weight: 500;
}

@media (min-width: 480px) {
  .welcome-intro__title {
    font-size: 22px;
  }

  .welcome-intro__sub {
    font-size: 14px;
  }
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  margin: 6px 0 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #082a1f 0%, #0e3b2c 60%, #145740 100%);
  box-shadow: var(--shadow-balance);
  min-height: 244px;
}

.hero-slider__brand {
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-slider__brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.25);
}

.hero-slider__brand-name {
  color: #f4f1e8;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.16em;
}

.hero-slider__track {
  position: relative;
  width: 100%;
  height: 244px;
}

/* Each slide is absolutely stacked; swap visibility via .is-active */
.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  color: #f4f1e8;
  opacity: 0;
  transform: translateX(24px) scale(0.985);
  transition:
    opacity .55s var(--ease-out),
    transform .55s var(--ease-out);
  pointer-events: none;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.hero-slide:active {
  transform: translateX(0) scale(0.98);
}

/* Per-slide gradient backgrounds */
.hero-slide--tasks {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(16, 167, 102, 0.55) 0%, transparent 60%),
    linear-gradient(135deg, #082a1f 0%, #0e3b2c 60%, #145740 100%);
}

.hero-slide--vip {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(212, 160, 23, 0.6) 0%, transparent 55%),
    linear-gradient(135deg, #2a1b08 0%, #4a2f0c 60%, #6a4612 100%);
}

.hero-slide--referral {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(124, 92, 209, 0.55) 0%, transparent 60%),
    linear-gradient(135deg, #14123b 0%, #25216a 60%, #3b3596 100%);
}

.hero-slide--draw {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(232, 85, 63, 0.55) 0%, transparent 60%),
    linear-gradient(135deg, #2a0e22 0%, #5a163d 60%, #8b1f4f 100%);
}

/* Animated blobs in each slide background */
.hero-slide__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-slide__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(38px);
  opacity: 0.45;
}

.hero-slide__blob--a {
  width: 220px;
  height: 220px;
  top: -60px;
  right: -40px;
  background: rgba(255, 255, 255, 0.35);
  animation: heroBlobFloat 9s ease-in-out infinite alternate;
}

.hero-slide__blob--b {
  width: 180px;
  height: 180px;
  bottom: -50px;
  left: -30px;
  background: rgba(255, 255, 255, 0.18);
  animation: heroBlobFloat 11s ease-in-out infinite alternate-reverse;
}

@keyframes heroBlobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, -20px) scale(1.1);
  }
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 56px 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.hero-slide__emoji {
  font-size: 36px;
  line-height: 1;
  margin-bottom: -2px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.hero-slide__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-slide__sub {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 4px;
}

.hero-slide__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  margin-top: 4px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.45);
  transition: transform .25s var(--ease-spring);
}

.hero-slide__cta svg {
  width: 14px;
  height: 14px;
}

.hero-slide.is-active .hero-slide__cta {
  animation: heroCtaPop 0.7s var(--ease-spring) 0.15s both;
}

.hero-slide:active .hero-slide__cta {
  transform: scale(0.96);
}

@keyframes heroCtaPop {
  0% {
    transform: translateY(8px) scale(0.94);
    opacity: 0;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Active slide content stagger */
.hero-slide.is-active .hero-slide__emoji,
.hero-slide.is-active .hero-slide__title,
.hero-slide.is-active .hero-slide__sub {
  animation: heroFadeUp 0.55s var(--ease-out) both;
}

.hero-slide.is-active .hero-slide__title {
  animation-delay: .05s;
}

.hero-slide.is-active .hero-slide__sub {
  animation-delay: .12s;
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dots */
.hero-slider__dots {
  position: absolute;
  bottom: 12px;
  right: 18px;
  z-index: 5;
  display: flex;
  gap: 6px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background .25s ease, width .35s var(--ease-spring);
}

.hero-dot.is-active {
  width: 22px;
  border-radius: 4px;
  background: #fff;
}

/* ============================================================
   LUCKY DRAW CARD (gold premium)
   ============================================================ */
.lucky-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 16px 18px;
  border-radius: var(--r-xl);
  isolation: isolate;
  overflow: hidden;
  text-decoration: none;
  color: #2c1f04;
  background:
    radial-gradient(120% 100% at 100% 0%, #ffeaad 0%, #f6c862 50%, #d4a017 100%);
  border: 1px solid #e0b94a;
  box-shadow:
    0 16px 36px -14px rgba(212, 160, 23, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform .22s var(--ease-spring), box-shadow .22s var(--ease-out);
}

.lucky-card:active {
  transform: scale(0.985);
  box-shadow: 0 10px 22px -10px rgba(212, 160, 23, 0.55);
}

.lucky-card__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.lucky-card__sparkle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  animation: luckySparkle 3s ease-in-out infinite;
}

.lucky-card__sparkle--1 {
  top: 14%;
  right: 22%;
  animation-delay: 0s;
}

.lucky-card__sparkle--2 {
  top: 60%;
  right: 8%;
  animation-delay: .9s;
}

.lucky-card__sparkle--3 {
  top: 32%;
  right: 48%;
  animation-delay: 1.7s;
}

@keyframes luckySparkle {

  0%,
  100% {
    transform: scale(0.4);
    opacity: 0;
  }

  50% {
    transform: scale(1.4);
    opacity: 1;
  }
}

.lucky-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  color: #5b3d05;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 4px 10px -3px rgba(91, 61, 5, 0.25);
  animation: luckyIconWobble 4s ease-in-out infinite;
}

.lucky-card__icon svg {
  width: 22px;
  height: 22px;
}

@keyframes luckyIconWobble {

  0%,
  100% {
    transform: rotate(-6deg);
  }

  50% {
    transform: rotate(8deg);
  }
}

.lucky-card__body {
  flex: 1;
  min-width: 0;
}

.lucky-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  color: #2c1f04;
}

.lucky-card__sub {
  font-size: 12.5px;
  font-weight: 500;
  color: #5b3d05;
  opacity: 0.92;
}

.lucky-card__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  background: #2c1f04;
  color: #ffe69b;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: -0.005em;
  box-shadow: 0 6px 14px -4px rgba(44, 31, 4, 0.45);
}

.lucky-card__cta svg {
  width: 12px;
  height: 12px;
}

/* ============================================================
   MARKETING SECTION (How It Works / Why Choose Us)
   ============================================================ */
.market-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.market-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.market-head--center {
  align-items: center;
  text-align: center;
}

.market-head__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.75;
}

.market-head__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

/* ----- How it works grid (3 numbered cards) ----- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.how-grid__item {
  position: relative;
  padding: 16px 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  box-shadow: var(--shadow-xs);
  transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease-out);
}

.how-grid__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.how-grid__num {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}

.how-grid__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-top: 6px;
}

.how-grid__icon svg {
  width: 22px;
  height: 22px;
}

.how-grid__icon--green {
  background: var(--green-soft);
  color: var(--green-2);
}

.how-grid__icon--gold {
  background: var(--gold-soft);
  color: #8a6512;
}

.how-grid__icon--teal {
  background: var(--c-teal-soft);
  color: var(--c-teal);
}

.how-grid__item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

.how-grid__item p {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  line-height: 1.35;
}

/* ----- Why choose us list ----- */
.why-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.why-list__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: transform .2s var(--ease-spring), box-shadow .2s var(--ease-out);
}

.why-list__item:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-md);
}

.why-list__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.why-list__icon svg {
  width: 20px;
  height: 20px;
}

.why-list__icon--green {
  background: var(--green-soft);
  color: var(--green-2);
}

.why-list__icon--gold {
  background: var(--gold-soft);
  color: #8a6512;
}

.why-list__icon--purple {
  background: var(--c-purple-soft);
  color: var(--c-purple);
}

.why-list__item h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 2px;
}

.why-list__item p {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.4;
}

/* ============================================================
   LIVE STATS BAND (animated counters)
   ============================================================ */
.stats-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 14px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(16, 167, 102, 0.18) 0%, transparent 60%),
    linear-gradient(135deg, #0e3b2c 0%, #145740 100%);
  color: #f4f1e8;
  box-shadow: var(--shadow-balance);
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.stats-band__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.stats-band__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.stats-band__label {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stats-band__sep {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.16);
}

/* ============================================================
   PARTNERS  (auto-scroll right -> left, infinite)
   ============================================================ */
.partners {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.partners__viewport {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.partners__track {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  animation: partnersScroll 32s linear infinite;
}

.partner-chip {
  flex-shrink: 0;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
  transition: transform .25s var(--ease-spring), color .25s ease, border-color .25s ease;
}

.partner-chip:hover {
  color: var(--primary);
  border-color: var(--primary-soft);
  transform: translateY(-1px);
}

@keyframes partnersScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners__track {
    animation: none;
  }

  .hero-slide__blob {
    animation: none;
  }

  .lucky-card__icon {
    animation: none;
  }

  .lucky-card__sparkle {
    animation: none;
  }
}

/* ============================================================
   PROFILE — refer & earn badge tweak
   ============================================================ */
.menu__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  margin-left: auto;
  margin-right: 6px;
  background: var(--green-soft);
  color: var(--green-2);
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

/* ============================================================
   END HOME MARKETING STYLES
   ============================================================ */

/* ============================================================
   ============================================================
   v3 — Task stats strip + Ad showcase + Partner logos
   Pure additions. Existing rules untouched.
   ============================================================
   ============================================================ */

/* ============================================================
   TASK PAGE — compact eye-catching stats strip
   Replaces the bulky balance card on task.html. Shows ONLY
   "Tasks Done" and "Earned" — no balance amount.
   ============================================================ */
.taskstats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.taskstats__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: var(--r-lg);
  isolation: isolate;
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: 0 6px 18px -10px rgba(13, 31, 23, 0.25);
  transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease-out);
}

.taskstats__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(13, 31, 23, 0.35);
}

/* --- Card 1: Tasks Done (deep green premium) --- */
.taskstats__card--done {
  color: #f0f7f3;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(16, 167, 102, 0.55) 0%, transparent 60%),
    linear-gradient(135deg, #0a2e22 0%, #0e3b2c 60%, #145740 100%);
  border-color: rgba(16, 167, 102, 0.35);
}

.taskstats__card--done .taskstats__icon {
  background: rgba(16, 167, 102, 0.25);
  color: #4ee0a4;
  box-shadow: inset 0 0 0 1px rgba(78, 224, 164, 0.4);
}

/* --- Card 2: Earned (deep gold premium) --- */
.taskstats__card--earned {
  color: #2c1f04;
  background:
    radial-gradient(120% 120% at 100% 0%, #ffeaad 0%, #f6c862 50%, #d4a017 100%);
  border-color: #e0b94a;
  box-shadow: 0 10px 24px -10px rgba(212, 160, 23, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.taskstats__card--earned .taskstats__icon {
  background: rgba(255, 255, 255, 0.55);
  color: #5b3d05;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 8px -3px rgba(91, 61, 5, 0.2);
}

/* Decor — radial spotlight in each card */
.taskstats__decor {
  position: absolute;
  top: -30%;
  right: -15%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.taskstats__card--earned .taskstats__decor {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
}

.taskstats__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.taskstats__icon svg {
  width: 20px;
  height: 20px;
}

.taskstats__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.taskstats__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.taskstats__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.taskstats__cur {
  font-size: 15px;
  font-weight: 700;
  margin-right: 1px;
}

/* ============================================================
   AD SHOWCASE — animated video-style hero on home
   Pure SVG/CSS — no real video file, scales to any device.
   ============================================================ */
.adshow {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(140% 100% at 0% 0%, rgba(16, 167, 102, 0.18) 0%, transparent 55%),
    radial-gradient(140% 100% at 100% 100%, rgba(212, 160, 23, 0.22) 0%, transparent 55%),
    linear-gradient(135deg, #0a2e22 0%, #0e3b2c 55%, #082a1f 100%);
  box-shadow: 0 18px 40px -16px rgba(14, 59, 44, 0.55);
  color: #f4f1e8;
}

.adshow__inner {
  position: relative;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.adshow__badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.adshow__live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d6d;
  box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.6);
  animation: adLive 1.6s ease-out infinite;
}

@keyframes adLive {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.6);
  }

  100% {
    box-shadow: 0 0 0 10px rgba(255, 77, 109, 0);
  }
}

/* --- Stage --- */
.adshow__stage {
  position: relative;
  height: 230px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(16, 167, 102, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.adshow__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  pointer-events: none;
}

.adshow__glow--a {
  width: 180px;
  height: 180px;
  top: -40px;
  left: -50px;
  background: rgba(16, 167, 102, 0.6);
  animation: adGlowFloat 7s ease-in-out infinite alternate;
}

.adshow__glow--b {
  width: 200px;
  height: 200px;
  bottom: -60px;
  right: -50px;
  background: rgba(212, 160, 23, 0.55);
  animation: adGlowFloat 9s ease-in-out infinite alternate-reverse;
}

@keyframes adGlowFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(20px, 20px) scale(1.15);
  }
}

/* --- Floating logos around the center --- */
.adshow__logos {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.adshow__logo {
  position: absolute;
  height: 30px;
  min-width: 30px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  animation: adLogoOrbit 5s ease-in-out infinite;
  white-space: nowrap;
}

.adshow__logo svg {
  width: auto;
  height: 18px;
  max-width: 56px;
  display: block;
}

.adshow__logo[data-brand="apple"] svg {
  width: 18px;
  height: 18px;
  color: #000;
}

.adshow__logo[data-brand="microsoft"] svg {
  width: 18px;
  height: 18px;
}

.adshow__logo[data-brand="lg"] svg {
  width: 22px;
  height: 22px;
}

.adshow__logo[data-brand="xiaomi"] svg {
  width: 22px;
  height: 22px;
}

.adshow__logo[data-brand="samsung"] {
  padding: 0 4px;
}

.adshow__logo[data-brand="samsung"] svg {
  height: 14px;
}

/* Distributed positions — 10 logos around the center brand */
.adshow__logo--1 {
  top: 10%;
  left: 6%;
  animation-delay: 0s;
}

.adshow__logo--2 {
  top: 6%;
  left: 38%;
  animation-delay: .4s;
}

.adshow__logo--3 {
  top: 12%;
  right: 8%;
  animation-delay: .8s;
}

.adshow__logo--4 {
  top: 38%;
  left: 2%;
  animation-delay: 1.2s;
}

.adshow__logo--5 {
  top: 40%;
  right: 4%;
  animation-delay: 1.6s;
}

.adshow__logo--6 {
  bottom: 28%;
  left: 6%;
  animation-delay: 2.0s;
}

.adshow__logo--7 {
  bottom: 30%;
  right: 6%;
  animation-delay: 2.4s;
}

.adshow__logo--8 {
  bottom: 8%;
  left: 18%;
  animation-delay: 2.8s;
}

.adshow__logo--9 {
  bottom: 6%;
  left: 48%;
  animation-delay: 3.2s;
}

.adshow__logo--10 {
  bottom: 10%;
  right: 14%;
  animation-delay: 3.6s;
}

@keyframes adLogoOrbit {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.92;
  }

  50% {
    transform: translateY(-8px) scale(1.06);
    opacity: 1;
  }
}

/* --- Center brand pulse --- */
.adshow__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
}

.adshow__centerRing {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(212, 160, 23, 0.6);
  animation: adRingPulse 2.4s ease-out infinite;
}

.adshow__centerRing::before,
.adshow__centerRing::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(212, 160, 23, 0.45);
  animation: adRingPulse 2.4s ease-out infinite;
}

.adshow__centerRing::before {
  animation-delay: 0.8s;
}

.adshow__centerRing::after {
  animation-delay: 1.6s;
}

@keyframes adRingPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.adshow__centerCore {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, #fbecc4 0%, #f6c862 40%, #d4a017 100%);
  box-shadow:
    0 10px 24px -6px rgba(212, 160, 23, 0.7),
    inset 0 2px 0 rgba(255, 255, 255, 0.6);
}

.adshow__centerLabel {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: #2c1f04;
  text-align: center;
  line-height: 1;
}

/* --- Cash flying out from center --- */
.adshow__cash {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: #4ee0a4;
  text-shadow: 0 0 12px rgba(78, 224, 164, 0.7);
  opacity: 0;
  pointer-events: none;
}

.adshow__cash--1 {
  animation: adCashFly1 3s ease-out infinite;
}

.adshow__cash--2 {
  animation: adCashFly2 3s ease-out infinite .8s;
}

.adshow__cash--3 {
  animation: adCashFly3 3s ease-out infinite 1.6s;
}

.adshow__cash--4 {
  animation: adCashFly4 3.2s ease-out infinite .4s;
}

.adshow__cash--5 {
  animation: adCashFly5 3.2s ease-out infinite 1.2s;
}

.adshow__cash--6 {
  animation: adCashFly6 3.4s ease-out infinite 2.0s;
}

@keyframes adCashFly1 {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translate(60px, -90px) scale(1.2);
    opacity: 0;
  }
}

@keyframes adCashFly2 {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translate(-90px, -60px) scale(1.2);
    opacity: 0;
  }
}

@keyframes adCashFly3 {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translate(20px, 80px) scale(1.2);
    opacity: 0;
  }
}

@keyframes adCashFly4 {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translate(110px, 30px) scale(1.3);
    opacity: 0;
  }
}

@keyframes adCashFly5 {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translate(-110px, 40px) scale(1.3);
    opacity: 0;
  }
}

@keyframes adCashFly6 {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translate(-30px, -110px) scale(1.4);
    opacity: 0;
  }
}

/* --- Auto-rotating captions --- */
.adshow__captions {
  height: 22px;
  overflow: hidden;
  position: relative;
}

.adshow__captionsTrack {
  display: flex;
  flex-direction: column;
  animation: adCaptionScroll 12s steps(1, end) infinite;
}

.adshow__caption {
  height: 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.005em;
  text-align: center;
  line-height: 22px;
}

@keyframes adCaptionScroll {

  0%,
  22% {
    transform: translateY(0);
  }

  25%,
  47% {
    transform: translateY(-22px);
  }

  50%,
  72% {
    transform: translateY(-44px);
  }

  75%,
  97% {
    transform: translateY(-66px);
  }

  100% {
    transform: translateY(-88px);
  }
}

/* --- CTA --- */
.adshow__cta {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45);
  transition: transform .25s var(--ease-spring);
  text-decoration: none;
}

.adshow__cta:active {
  transform: scale(0.96);
}

.adshow__cta svg {
  width: 14px;
  height: 14px;
}

/* Reduced motion — kill the heavier animations */
@media (prefers-reduced-motion: reduce) {

  .adshow__glow,
  .adshow__logo,
  .adshow__centerRing,
  .adshow__centerRing::before,
  .adshow__centerRing::after,
  .adshow__cash,
  .adshow__captionsTrack,
  .adshow__scanline,
  .adshow__voiceWave span,
  .adshow__live {
    animation: none;
  }
}

/* ============================================================
   ADSHOW — Voice listen button + scanline upgrade
   ============================================================ */
.adshow__voice {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 9px;
  background: linear-gradient(135deg, #ffd95e, #f0c14a);
  color: #2c1f04;
  border: 1px solid rgba(255, 247, 214, 0.6);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 6px 18px -4px rgba(212, 160, 23, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.06) inset;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s var(--ease-spring), box-shadow .25s ease;
  animation: adVoiceNudge 4s ease-in-out infinite;
}

.adshow__voice:active {
  transform: scale(0.94);
}

.adshow__voice:hover {
  box-shadow: 0 8px 22px -4px rgba(212, 160, 23, 0.9);
}

@keyframes adVoiceNudge {

  0%,
  92%,
  100% {
    transform: scale(1);
  }

  95% {
    transform: scale(1.08);
  }
}

.adshow__voiceIcon {
  position: relative;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
}

.adshow__voiceIcon svg {
  position: absolute;
  inset: 0;
  width: 14px;
  height: 14px;
  transition: opacity .2s ease;
}

.adshow__voicePause {
  opacity: 0;
}

.adshow__voice.is-playing .adshow__voicePlay {
  opacity: 0;
}

.adshow__voice.is-playing .adshow__voicePause {
  opacity: 1;
}

.adshow__voiceLabel {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.adshow__voice.is-playing .adshow__voiceLabel::after {
  content: "ing";
}

/* Sound-wave bars — animate when playing */
.adshow__voiceWave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  width: 0;
  overflow: hidden;
  transition: width .25s ease;
}

.adshow__voiceWave span {
  width: 2px;
  background: #2c1f04;
  border-radius: 2px;
  height: 30%;
}

.adshow__voice.is-playing .adshow__voiceWave {
  width: 18px;
  margin-right: 2px;
}

.adshow__voice.is-playing .adshow__voiceWave span {
  animation: adVoiceWave 0.7s ease-in-out infinite;
}

.adshow__voice.is-playing .adshow__voiceWave span:nth-child(1) {
  animation-delay: 0s;
}

.adshow__voice.is-playing .adshow__voiceWave span:nth-child(2) {
  animation-delay: .12s;
}

.adshow__voice.is-playing .adshow__voiceWave span:nth-child(3) {
  animation-delay: .24s;
}

.adshow__voice.is-playing .adshow__voiceWave span:nth-child(4) {
  animation-delay: .36s;
}

.adshow__voice.is-playing .adshow__voiceWave span:nth-child(5) {
  animation-delay: .48s;
}

@keyframes adVoiceWave {

  0%,
  100% {
    height: 30%;
  }

  50% {
    height: 100%;
  }
}

/* Subtle cinematic scan line sweeping across the stage */
.adshow__scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(255, 255, 255, 0) 48%,
      rgba(255, 255, 255, 0.12) 50%,
      rgba(255, 255, 255, 0) 52%,
      transparent 100%);
  background-size: 100% 200%;
  animation: adScanlineSweep 4.5s ease-in-out infinite;
  mix-blend-mode: overlay;
  z-index: 1;
}

@keyframes adScanlineSweep {
  0% {
    background-position: 0 -100%;
  }

  60% {
    background-position: 0 200%;
  }

  100% {
    background-position: 0 200%;
  }
}

/* ============================================================
   PARTNER LOGOS — replace text chips with real SVG marks
   ============================================================ */
.partner-logo {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 96px;
  height: 56px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease-out), border-color .25s ease;
}

.partner-logo:hover {
  transform: translateY(-2px);
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-md);
}

.partner-logo svg {
  max-width: 100%;
  max-height: 28px;
  width: auto;
  height: auto;
}

/* Apple mark wants a slightly smaller, ink-coloured rendering */
.partner-logo svg[viewBox="0 0 24 24"] {
  height: 24px;
}

/* ============================================================
   TXN STATUS LINE
   ------------------------------------------------------------
   The right column of each .txn row is now a vertical stack:

     ┌────────────────────────────┐
     │  +₦20,000                  │  ← .txn__amount
     │  ● Pending                 │  ← .txn__status (orange/green/red)
     └────────────────────────────┘

   The amount color is driven by the .txn--status-* class on the
   <li>, so a pending deposit shows the amount in orange and a
   completed one shows it in green — matching the status word.
   ============================================================ */

/* Right-side stack: amount + status, right-aligned */
.txn__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

/* Status line itself — a tiny dot/check + label */
.txn__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.txn__status svg {
  width: 11px;
  height: 11px;
  display: block;
  flex-shrink: 0;
}

.txn__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  display: inline-block;
}

/* ---- Pending: ORANGE everywhere ---- */
.txn__status--pending {
  color: #e07b00;
}

.txn__status--pending .txn__status-dot {
  background: #f59320;
  box-shadow: 0 0 0 0 rgba(245, 147, 32, 0.55);
  animation: txnPulse 1.6s ease-in-out infinite;
}

@keyframes txnPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 147, 32, 0.55);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(245, 147, 32, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 147, 32, 0);
  }
}

/* When pending, the AMOUNT itself goes orange too — overrides the
   default green/red coloring from .txn__amount--pos / --neg. */
.txn--status-pending .txn__amount,
.txn--status-pending .txn__amount--pos,
.txn--status-pending .txn__amount--neg {
  color: #f59320 !important;
}

/* Tone the title down a touch so the orange amount pops */
.txn--status-pending .txn__title {
  color: var(--ink-2);
}

/* ---- Completed: GREEN ---- */
.txn__status--completed {
  color: var(--green-2, #1f8a3b);
}

/* ---- Failed: RED + struck-through amount ---- */
.txn__status--failed {
  color: var(--red-2, #c53030);
}

.txn--status-failed .txn__amount,
.txn--status-failed .txn__amount--pos,
.txn--status-failed .txn__amount--neg {
  color: var(--ink-3) !important;
  text-decoration: line-through;
  opacity: 0.7;
}

.txn--status-failed .txn__title {
  color: var(--ink-2);
}

/* ============================================================
   PAYMENT METHOD PANEL — sits inside .menu__panel on profile.html
   Mirrors the .account-settings panel padding/look so it integrates
   cleanly with the existing menu list.
   ============================================================ */
.payment-method {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px 18px;
}

.payment-method .field {
  margin: 0;
}

.payment-method .form__error {
  margin: -4px 0 0;
  min-height: 16px;
}

.payment-method .btn--primary {
  margin-top: 4px;
}

/* Disabled / read-only fields on withdraw page when payment method
   is auto-filled — keep them readable but visually locked. */
.field__input[readonly],
.field__select:disabled {
  background: transparent;
  color: var(--ink-2);
  cursor: not-allowed;
}

/* ============================================================
   WITHDRAW — empty state (no payment method saved)
   ------------------------------------------------------------
   When the user opens the withdraw page without a saved payment
   method, the entire withdraw UI is replaced with a single
   centered red CTA. Clicking it sends them to profile.html.
   ============================================================ */
.withdraw-empty {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 24px 4px;
}

/* The HTML `hidden` attribute must always win over the display rule
   above. Without this, .withdraw-empty[hidden] would still render as
   flex and the empty-state would show alongside the withdraw form. */
.withdraw-empty[hidden] {
  display: none !important;
}

.withdraw-empty__msg {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  text-align: center;
  margin: 0;
}

/* Red button variant — used for the "Update Payment Method" CTA
   on the withdraw empty state. Matches the look-and-feel of the
   primary button system but uses the red palette. */
.btn--danger {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  border: none;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 6px 18px -6px var(--red-glow);
}

.btn--danger:hover:not(:disabled) {
  background: var(--red-2);
}

.btn--danger:active:not(:disabled) {
  transform: scale(0.98);
}


/* ============================================================
   FIX — Account Settings panel buttons (Reset / Fund Password)
   ------------------------------------------------------------
   The .btn--ghost variant is designed for a dark hero/topbar:
   near-white text on a translucent dark background. When that
   button is reused inside .menu__panel (which has a LIGHT cream
   surface, --surface-2: #f7f4ec), the near-white text becomes
   invisible — the user could click but saw a blank panel.
   This block re-skins .account-settings__btn so it stays
   readable on the light panel background. Scoped tightly so
   it doesn't leak into other .btn--ghost usages.
   ============================================================ */
.account-settings .account-settings__btn,
.account-settings .account-settings__btn.btn--ghost {
  /* Override the dark-context ghost colors */
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  /* Layout */
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14.5px;
  border-radius: var(--r-md);
  /* Push the icon to the left, label centred-ish */
  justify-content: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.12s ease;
}

.account-settings .account-settings__btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.account-settings .account-settings__btn:active {
  transform: scale(0.99);
}

.account-settings .account-settings__btn svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.account-settings .account-settings__btn:hover svg {
  color: var(--primary-2);
}

/* Make sure the label text inside the button can't pick up the
   ghost color by accident, e.g. through a more-specific rule. */
.account-settings .account-settings__btn>span {
  color: inherit;
}

/* ============================================================
   NEW — WITHDRAWAL AMOUNT OPTIONS
   ------------------------------------------------------------
   Fixed-amount selectable cards on withdraw.html. Six tiers:
   1k (Min), 3k, 5k, 10k, 30k, 50k. Cards lock when the value
   exceeds available balance.
   ============================================================ */
.amount-options {
  display: grid;
  /* 2 columns on phones; auto-fit at >=480px so 3 cols fit cleanly. */
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

@media (min-width: 480px) {
  .amount-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

.amount-option {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  /* Extra bottom padding leaves room for the .is-locked pill */
  padding: 18px 12px 18px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease,
    background 0.15s ease, box-shadow 0.15s ease,
    color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.amount-option:hover:not(.is-locked):not(.is-selected) {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.amount-option:active:not(.is-locked) {
  transform: scale(0.98);
}

.amount-option__currency {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.7;
}

.amount-option__value {
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* "Min" tag on the 1,000 card — small pill at top-right corner. */
.amount-option__tag {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Selected — solid primary fill. */
.amount-option.is-selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px -8px var(--primary-glow, rgba(14, 59, 44, 0.45));
}

.amount-option.is-selected .amount-option__currency {
  opacity: 0.9;
}

.amount-option.is-selected .amount-option__tag {
  background: #fff;
  color: var(--primary);
}

/* Locked — amount > available. Visually muted, non-clickable,
   and shows a small "Insufficient" pill so the user understands
   why the tier is greyed out. */
.amount-option.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--surface-2);
  color: var(--ink-3);
}

.amount-option.is-locked .amount-option__tag {
  display: none;
  /* hide the "Min" pill if the min itself is locked */
}

.amount-option.is-locked::after {
  content: "Insufficient";
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============================================================
   NEW — WITHDRAWAL FEE BREAKDOWN
   ------------------------------------------------------------
   Three-row receipt: Withdrawal Amount, 10% Fee, Final Amount.
   Hidden by default; revealed once the user picks an amount.
   ============================================================ */
.withdraw-breakdown {
  margin-top: 6px;
  padding: 16px 18px;
  background: var(--primary-soft);
  border: 1px solid var(--primary);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* subtle entrance when it goes from hidden to visible */
  animation: brkSlideIn 0.22s ease both;
}

@keyframes brkSlideIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.withdraw-breakdown__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink);
}

.withdraw-breakdown__label {
  color: var(--ink-2);
  font-weight: 500;
}

.withdraw-breakdown__value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.withdraw-breakdown__value--muted {
  color: #b91c1c;
}

.withdraw-breakdown__row--total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed rgba(14, 59, 44, 0.25);
}

.withdraw-breakdown__row--total .withdraw-breakdown__label {
  color: var(--ink);
  font-weight: 700;
}

.withdraw-breakdown__row--total .withdraw-breakdown__value {
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: 19px;
  font-weight: 800;
  color: var(--primary);
}

/* ============================================================
   NEW — PIN INPUT (fund password)
   ------------------------------------------------------------
   Shared style for the 4-digit PIN inputs in the fund-password
   modal (profile page) and the fund-password confirmation modal
   (withdraw page).
   ============================================================ */
.field__input--pin {
  letter-spacing: 0.6em;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
}

.field__input--pin::placeholder {
  letter-spacing: 0.4em;
  font-weight: 500;
  color: var(--ink-3);
}

/* Fund-password / fund-pin form spacing inside the .vip-modal sheet,
   matching the change-password form. */
.fund-password-form,
.fund-pin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
}

.fund-password-form .field__wrap,
.fund-pin-form .field__wrap {
  height: 54px;
}

.fund-password-form .form-error,
.fund-pin-form .form-error {
  margin: 0;
  padding: 0 4px;
  min-height: 16px;
  color: #b91c1c;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.fund-password-form .form-error.is-visible,
.fund-pin-form .form-error.is-visible {
  opacity: 1;
}

/* ============================================================
   FIX — global [hidden] enforcement
   ------------------------------------------------------------
   The HTML `hidden` attribute relies on the browser's UA
   stylesheet rule `[hidden] { display: none }`. Author rules
   like `.field { display: flex }` win on specificity and
   un-hide elements that should stay hidden. This forces
   hidden-ness back. Keeps the rest of the codebase honest —
   if you set `hidden`, the element is gone.
   ============================================================ */
[hidden] {
  display: none !important;
}

/* ============================================================
   NEW — Inline action link inside form errors
   ------------------------------------------------------------
   Used when the PIN modal needs to send the user somewhere to
   resolve the error (e.g. "you haven't set a fund password yet").
   ============================================================ */
.form-error--action {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  line-height: 1.4;
}

.form-error__link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-error__link:hover {
  color: var(--primary-2);
}

/* ============================================================
   EM PLANS  (NEW — EM-1 .. EM-6)
   ------------------------------------------------------------
   The new VIP system replaces Silver/Gold/Diamond with six EM
   plans grouped under three theme palettes:
     · EM-1, EM-2  -> silver palette (subtle, muted)
     · EM-3, EM-4  -> gold palette  (warm, prominent)
     · EM-5, EM-6  -> diamond palette (cool, premium)

   Each EM card reuses the existing .vip-card structure so the
   layout, spacing, ribbon, and CTA from the old system stay
   intact — only the surface colors change. Backgrounds are
   intentionally muted to avoid the loud, saturated look.
   ============================================================ */

/* Generic EM card baseline — used by all EM cards */
.vip-card--em {
  /* Slightly larger gap between perks for the 3-line layout */
}

.vip-card--em .vip-card__perks {
  gap: 8px;
}

/* ---- SILVER family (EM-1, EM-2) ------------------------------ */
.vip-card--em1,
.vip-card--em2 {
  border-color: #d4d8dc;
  background: linear-gradient(160deg, #f6f7f9 0%, #ecedf0 60%, #e0e3e7 100%);
}

.vip-card--em1 .vip-card__icon,
.vip-card--em2 .vip-card__icon {
  background: linear-gradient(135deg, #ffffff, #cdd2d8);
  color: #5a6470;
}

.vip-card--em1 .vip-card__perks svg,
.vip-card--em2 .vip-card__perks svg {
  color: #5a6470;
}

.vip-card--em1 .vip-card__cta,
.vip-card--em2 .vip-card__cta {
  background: linear-gradient(135deg, #5a6470, #3a4350);
  box-shadow: 0 6px 18px -6px rgba(58, 67, 80, 0.45);
}

/* EM-2 — slightly deeper silver to differentiate from EM-1 */
.vip-card--em2 {
  background: linear-gradient(160deg, #eef0f3 0%, #dee2e8 60%, #cdd2da 100%);
}

/* ---- GOLD family (EM-3, EM-4) -------------------------------- */
.vip-card--em3,
.vip-card--em4 {
  border-color: #e6c878;
  background: linear-gradient(160deg, #fff7da 0%, #f7dc8b 55%, #e0b22a 130%);
}

.vip-card--em3 .vip-card__icon,
.vip-card--em4 .vip-card__icon {
  background: linear-gradient(135deg, #ffffff, #f0c64a);
  color: #8a6500;
}

.vip-card--em3 .vip-card__ribbon {
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #fff;
  box-shadow: 0 4px 10px -3px rgba(184, 134, 11, 0.5);
}

.vip-card--em3 .vip-card__perks svg,
.vip-card--em4 .vip-card__perks svg {
  color: #8a6500;
}

.vip-card--em3 .vip-card__cta,
.vip-card--em4 .vip-card__cta {
  background: linear-gradient(135deg, #d4a017, #8a6500);
  box-shadow: 0 8px 22px -6px rgba(184, 134, 11, 0.55);
}

/* EM-4 — slightly deeper gold to differentiate from EM-3 */
.vip-card--em4 {
  background: linear-gradient(160deg, #ffefb8 0%, #f0c965 55%, #c69015 130%);
}

/* ---- DIAMOND family (EM-5, EM-6) ----------------------------- */
.vip-card--em5,
.vip-card--em6 {
  border-color: rgba(124, 92, 209, 0.35);
  background: linear-gradient(160deg, #1a2540 0%, #2a1a55 50%, #4a2a80 100%);
  color: #f0e8ff;
}

.vip-card--em5 .vip-card__tier,
.vip-card--em6 .vip-card__tier,
.vip-card--em5 .vip-card__price-amount,
.vip-card--em6 .vip-card__price-amount {
  color: #ffffff;
}

.vip-card--em5 .vip-card__price-currency,
.vip-card--em6 .vip-card__price-currency,
.vip-card--em5 .vip-card__tag,
.vip-card--em6 .vip-card__tag {
  color: #c4b8e8;
}

.vip-card--em5 .vip-card__icon,
.vip-card--em6 .vip-card__icon {
  background: linear-gradient(135deg, #ffffff, #c4b8e8);
  color: #2a1a55;
}

.vip-card--em5 .vip-card__perks li,
.vip-card--em6 .vip-card__perks li {
  color: #d8cff0;
}

.vip-card--em5 .vip-card__perks strong,
.vip-card--em6 .vip-card__perks strong {
  color: #ffffff;
}

.vip-card--em5 .vip-card__perks svg,
.vip-card--em6 .vip-card__perks svg {
  background: rgba(255, 255, 255, 0.15);
  color: #c4b8e8;
}

.vip-card--em5 .vip-card__ribbon--premium,
.vip-card--em6 .vip-card__ribbon--premium {
  background: linear-gradient(135deg, #7c5cd1, #3b75e0);
  color: #fff;
  box-shadow: 0 4px 12px -3px rgba(124, 92, 209, 0.6);
}

.vip-card--em5 .vip-card__cta,
.vip-card--em6 .vip-card__cta {
  background: linear-gradient(135deg, #7c5cd1, #3b75e0);
  box-shadow: 0 8px 22px -6px rgba(59, 117, 224, 0.6);
}

/* Subtle sparkle on diamond cards */
.vip-card--em5::after,
.vip-card--em6::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* EM-6 — slightly deeper diamond palette */
.vip-card--em6 {
  background: linear-gradient(160deg, #14172e 0%, #261544 50%, #4d2885 100%);
}

/* ---- Modal data-theme keys ---- */
.vip-modal[data-theme="silver"] .vip-modal__icon {
  background: linear-gradient(135deg, #8a939e, #4a5360);
  box-shadow: 0 8px 22px -6px rgba(74, 83, 96, 0.45);
}

.vip-modal[data-theme="gold"] .vip-modal__icon {
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #fff;
  box-shadow: 0 8px 22px -6px rgba(184, 134, 11, 0.5);
}

.vip-modal[data-theme="diamond"] .vip-modal__icon {
  background: linear-gradient(135deg, #7c5cd1, #3b75e0);
  box-shadow: 0 8px 22px -6px rgba(59, 117, 224, 0.5);
}

/* ============================================================
   TASKS — Daily limit banner
   ------------------------------------------------------------
   Lives at the top of the task list. Shows "X / Y today" and
   flips into a "limit reached" state when the user has hit
   their plan's daily allowance. Empty-state line styled below.
   ============================================================ */
.tasks__limit-banner {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin: 0 0 12px;
  border-radius: var(--r-lg);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid rgba(14, 59, 44, 0.08);
}

.tasks__limit-label {
  color: var(--primary);
  opacity: 0.85;
  font-weight: 500;
}

.tasks__limit-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--primary);
  margin-left: auto;
}

.tasks__limit-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--red-soft);
  color: var(--red-2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-left: 8px;
}

.tasks__limit-banner.is-reached {
  background: var(--red-soft);
  color: var(--red-2);
  border-color: rgba(232, 85, 63, 0.18);
}

.tasks__limit-banner.is-reached .tasks__limit-label,
.tasks__limit-banner.is-reached .tasks__limit-count {
  color: var(--red-2);
}

/* Empty-state line for the task list */
.tasks__empty {
  list-style: none;
  text-align: center;
  padding: 28px 18px;
  margin: 0;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 500;
}

/* Theme-aware accents — when a paying user is on the page,
   keep the limit banner's primary accent muted (per spec:
   "Do NOT make colors too loud"). */
body.vip-silver .tasks__limit-banner:not(.is-reached) {
  background: #eef0f3;
  color: #3a4350;
  border-color: #d6dae0;
}

body.vip-silver .tasks__limit-banner:not(.is-reached) .tasks__limit-label,
body.vip-silver .tasks__limit-banner:not(.is-reached) .tasks__limit-count {
  color: #3a4350;
}

body.vip-gold .tasks__limit-banner:not(.is-reached) {
  background: #fbecc4;
  color: #6e5210;
  border-color: rgba(180, 130, 20, 0.2);
}

body.vip-gold .tasks__limit-banner:not(.is-reached) .tasks__limit-label,
body.vip-gold .tasks__limit-banner:not(.is-reached) .tasks__limit-count {
  color: #6e5210;
}

body.vip-diamond .tasks__limit-banner:not(.is-reached) {
  background: #2a1a55;
  color: #d8cff0;
  border-color: rgba(124, 92, 209, 0.35);
}

body.vip-diamond .tasks__limit-banner:not(.is-reached) .tasks__limit-label,
body.vip-diamond .tasks__limit-banner:not(.is-reached) .tasks__limit-count {
  color: #ffffff;
}

/* ============================================================
   VIDEO TASK SYSTEM (premium ad-watch experience)
   ------------------------------------------------------------
   Adds the redesigned video task card (.task--video) and the
   fullscreen video modal (.vmodal). Coexists with the legacy
   .task styles above — selectors are scoped with .task--video
   so the original cards (if ever rendered elsewhere) keep
   working. Theme: deep green + gold, soft gradients, glass.
   ============================================================ */

:root {
  --vt-gold: #f5c451;
  --vt-gold-2: #e0a82e;
  --vt-gold-soft: rgba(245, 196, 81, 0.18);
  --vt-green-deep: #07261c;
  --vt-green: #0e3b2c;
  --vt-green-2: #134d3a;
  --vt-glass: rgba(255, 255, 255, 0.72);
  --vt-glass-dark: rgba(7, 38, 28, 0.72);
  --vt-shadow-card: 0 12px 32px -10px rgba(7, 38, 28, 0.28),
    0 4px 14px -6px rgba(7, 38, 28, 0.14);
  --vt-shadow-card-hover: 0 20px 44px -12px rgba(7, 38, 28, 0.38),
    0 6px 18px -6px rgba(7, 38, 28, 0.18);
  --vt-radius: 22px;
  --vt-radius-sm: 16px;
  --vt-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Video task card ---------- */
.tasks--video {
  gap: 16px;
}

.task--video {
  /* Override legacy .task layout; keep animation entry */
  padding: 0;
  gap: 0;
  border-radius: var(--vt-radius);
  border: 1px solid rgba(14, 59, 44, 0.08);
  background:
    linear-gradient(180deg, #ffffff 0%, #fafdf9 100%);
  box-shadow: var(--vt-shadow-card);
  overflow: hidden;
  transition: transform .35s var(--vt-ease),
    box-shadow .35s var(--vt-ease),
    border-color .25s ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .task--video:hover {
    transform: translateY(-2px);
    box-shadow: var(--vt-shadow-card-hover);
    border-color: rgba(14, 59, 44, 0.14);
  }
}

.task--video:active {
  transform: translateY(0) scale(0.992);
  transition-duration: .15s;
}

/* Thumbnail / video preview block */
.vtask__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 120% at 0% 0%, #14513c 0%, #07261c 60%, #051a13 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.vtask__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  /* Hidden until script.js confirms the video has a frame to show */
  opacity: 0;
  transition: opacity .4s ease;
}

.vtask__preview.is-ready {
  opacity: 1;
}

.vtask__thumb-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(245, 196, 81, 0.18) 0%, transparent 70%),
    linear-gradient(180deg, #134d3a 0%, #07261c 100%);
}

.vtask__thumb-fallback .task__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.vtask__thumb-fallback .task__icon svg {
  width: 30px;
  height: 30px;
}

/* Hide fallback once the preview <video> shows a real frame */
.vtask__preview.is-ready~.vtask__thumb-fallback {
  opacity: 0;
  transition: opacity .35s ease;
}

/* Subtle gradient veil on the thumb so overlays read clearly */
.vtask__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(0, 0, 0, 0) 35%,
      rgba(0, 0, 0, 0) 65%,
      rgba(0, 0, 0, 0.40) 100%);
}

/* Center play button (glassy, gold-tinted) */
.vtask__play {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.10) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  transition: transform .3s var(--vt-ease);
}

.vtask__play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
  /* visually center the triangle */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.task--video:hover .vtask__play {
  transform: scale(1.06);
}

.task--video[data-status="completed"] .vtask__play {
  background:
    linear-gradient(135deg, rgba(245, 196, 81, 0.4) 0%, rgba(245, 196, 81, 0.18) 100%);
  border-color: rgba(245, 196, 81, 0.55);
}

/* Status badge (top-left) */
.vtask__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  color: var(--vt-green);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.task--video[data-status="completed"] .vtask__badge {
  background: linear-gradient(135deg, var(--vt-gold) 0%, var(--vt-gold-2) 100%);
  color: #2a1a04;
}

.task--video[data-status="in_progress"] .vtask__badge,
.task--video[data-status="ready"] .vtask__badge,
.task--video[data-status="completing"] .vtask__badge {
  background: rgba(245, 196, 81, 0.95);
  color: #2a1a04;
}

/* Duration pill (bottom-right of thumb) */
.vtask__duration-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.vtask__duration-pill svg {
  width: 13px;
  height: 13px;
}

/* Body */
.vtask__body {
  padding: 14px 16px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vtask__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.task--video .task__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
  flex: 1;
  min-width: 0;
}

.task--video .task__desc {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

.task--video .task__reward {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 6px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--vt-gold) 0%, var(--vt-gold-2) 100%);
  color: #2a1a04;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow:
    0 4px 12px rgba(224, 168, 46, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.task--video .task__reward-cur {
  font-size: 12px;
  margin-right: 1px;
}

.vtask__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.task--video .task__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 59, 44, 0.06);
  color: var(--vt-green);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.vtask__hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* Hide legacy progress bar on video cards (we use modal progress) */
.task--video .task__progress {
  display: none;
}

/* Action button — make it span full card bottom */
.task--video .taskbtn {
  margin: 8px 16px 16px;
  width: calc(100% - 32px);
  border-radius: 14px;
  height: 46px;
  font-weight: 700;
  font-size: 14.5px;
  background: linear-gradient(135deg, var(--vt-green) 0%, var(--vt-green-2) 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 6px 16px -4px rgba(14, 59, 44, 0.4);
  transition: transform .15s ease, box-shadow .25s ease, opacity .25s ease;
}

.task--video .taskbtn:active:not(:disabled) {
  transform: scale(0.98);
}

.task--video[data-status="completed"] .taskbtn {
  background: rgba(14, 59, 44, 0.06);
  color: var(--vt-green);
  box-shadow: none;
}

.task--video[data-status="in_progress"] .taskbtn,
.task--video[data-status="ready"] .taskbtn {
  background: linear-gradient(135deg, var(--vt-gold) 0%, var(--vt-gold-2) 100%);
  color: #2a1a04;
  box-shadow: 0 6px 18px -4px rgba(224, 168, 46, 0.45);
}

/* ============================================================
   FULLSCREEN VIDEO MODAL
   ============================================================ */
.vmodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vmodal[hidden] {
  display: none;
}

.vmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 18, 13, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .35s var(--vt-ease);
}

.vmodal.is-open .vmodal__backdrop {
  opacity: 1;
}

.vmodal__shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 480px;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% 0%, #0e3b2c 0%, #051a13 80%);
  color: #fff;
  overflow: hidden;
  /* Open animation */
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  transition:
    transform .42s var(--vt-ease),
    opacity .32s ease;
  padding: max(env(safe-area-inset-top), 0px) 0 max(env(safe-area-inset-bottom), 0px);
}

@media (min-width: 600px) {
  .vmodal__shell {
    max-height: min(900px, 92vh);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  }
}

.vmodal.is-open .vmodal__shell {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Top bar */
.vmodal__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 10px;
}

.vmodal__close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}

.vmodal__close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.vmodal__close:active {
  transform: scale(0.94);
}

.vmodal__close svg {
  width: 18px;
  height: 18px;
}

.vmodal__topcenter {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vmodal__sponsored {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vt-gold);
  opacity: 0.9;
}

.vmodal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vmodal__reward {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--vt-gold) 0%, var(--vt-gold-2) 100%);
  color: #2a1a04;
  font-weight: 800;
  font-size: 13.5px;
  box-shadow: 0 4px 14px rgba(224, 168, 46, 0.4);
}

.vmodal__reward span {
  font-size: 11px;
}

.vmodal__reward strong {
  font-size: 14.5px;
}

/* Stage (video container) */
.vmodal__stage {
  flex: 1;
  position: relative;
  background: #000;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin: 4px 14px;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.55);
}

.vmodal__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  /* Disable native controls — we control playback */
  pointer-events: none;
}

/* Loader */
.vmodal__loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #000;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 500;
  z-index: 2;
  transition: opacity .3s ease;
}

.vmodal__loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.vmodal__spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(245, 196, 81, 0.18);
  border-top-color: var(--vt-gold);
  animation: vmSpin 0.85s linear infinite;
}

@keyframes vmSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Error fallback */
.vmodal__error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: #000;
  color: #fff;
  z-index: 3;
}

.vmodal__error[hidden] {
  display: none;
}

.vmodal__error svg {
  width: 44px;
  height: 44px;
  color: var(--vt-gold);
}

.vmodal__error strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.vmodal__error p {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 280px;
  line-height: 1.5;
}

.vmodal__retry {
  margin-top: 6px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--vt-gold) 0%, var(--vt-gold-2) 100%);
  color: #2a1a04;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

/* Countdown overlay */
.vmodal__countdown {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  padding: 7px 11px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.vmodal__countdown-label {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.75);
}

.vmodal__countdown strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--vt-gold);
  line-height: 1;
}

.vmodal.is-completed .vmodal__countdown strong {
  color: #6ee7b7;
}

/* Progress bar */
.vmodal__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  z-index: 4;
}

.vmodal__progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--vt-gold) 0%, #ffd97a 100%);
  box-shadow: 0 0 12px rgba(245, 196, 81, 0.6);
  transition: width .12s linear;
}

/* Footer */
.vmodal__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 18px;
}

.vmodal__replay {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}

.vmodal__replay:hover {
  background: rgba(255, 255, 255, 0.12);
}

.vmodal__replay:active {
  transform: scale(0.97);
}

.vmodal__replay svg {
  width: 16px;
  height: 16px;
}

.vmodal__replay[hidden] {
  display: none;
}

.vmodal__done {
  flex: 1;
  position: relative;
  height: 52px;
  border-radius: 14px;
  border: 0;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: not-allowed;
  overflow: hidden;
  transition:
    background .35s ease,
    color .35s ease,
    transform .15s ease,
    box-shadow .35s ease;
}

.vmodal__done.is-ready {
  background: linear-gradient(135deg, var(--vt-gold) 0%, var(--vt-gold-2) 100%);
  color: #2a1a04;
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(245, 196, 81, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  animation: vmGlowPulse 1.6s ease-in-out infinite;
}

.vmodal__done.is-ready:active {
  transform: scale(0.98);
}

.vmodal__done.is-loading {
  cursor: wait;
  animation: none;
}

.vmodal__done.is-loading .vmodal__done-label::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(42, 26, 4, 0.25);
  border-top-color: #2a1a04;
  vertical-align: -2px;
  margin-left: 8px;
  animation: vmSpin .8s linear infinite;
}

@keyframes vmGlowPulse {

  0%,
  100% {
    box-shadow:
      0 8px 24px rgba(245, 196, 81, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }

  50% {
    box-shadow:
      0 12px 36px rgba(245, 196, 81, 0.65),
      0 0 0 6px rgba(245, 196, 81, 0.10),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
}

.vmodal__done-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg,
      transparent 30%,
      rgba(255, 255, 255, 0.4) 50%,
      transparent 70%);
  transform: translateX(-100%);
  opacity: 0;
}

.vmodal__done.is-ready .vmodal__done-glow {
  opacity: 1;
  animation: vmShimmer 2.4s linear infinite;
}

@keyframes vmShimmer {
  to {
    transform: translateX(100%);
  }
}

/* Disable text selection while watching, prevent context menu hooks */
.vmodal__video,
.vmodal__stage {
  user-select: none;
  -webkit-user-select: none;
}

/* Lock body scroll while modal is open */
body.vmodal-open {
  overflow: hidden;
}

/* ============================================================
   VIP THEME OVERRIDES — keep video card legible on dark themes
   ============================================================ */
body.vip-gold .task--video,
body.vip-platinum .task--video,
body.vip-diamond .task--video {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
}

body.vip-gold .task--video .task__title,
body.vip-platinum .task--video .task__title,
body.vip-diamond .task--video .task__title {
  color: #fff;
}

body.vip-gold .task--video .task__desc,
body.vip-platinum .task--video .task__desc,
body.vip-diamond .task--video .task__desc {
  color: rgba(255, 255, 255, 0.65);
}

body.vip-gold .task--video .task__chip,
body.vip-platinum .task--video .task__chip,
body.vip-diamond .task--video .task__chip {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

body.vip-gold .task--video .vtask__hint,
body.vip-platinum .task--video .vtask__hint,
body.vip-diamond .task--video .vtask__hint {
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   LANDING PAGE — Clean professional fintech look
   ============================================================ */
.screen--landing {
  display: none;
  flex-direction: column;
  min-height: 100dvh;
  position: relative;
  color: #f4f1e8;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, #1a5840 0%, #0e3b2c 50%, #082a1f 100%);
  overflow: hidden;
}

.screen--landing.is-active {
  display: flex;
}

/* Subtle ambient glow — clean, no floating coins */
.screen--landing::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 168, 114, 0.35), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.screen--landing::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 175, 134, 0.22), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* -- Top navbar -- */
.landing-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(16px + var(--safe-top)) 20px 8px;
}

.landing-nav__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f4f1e8;
}

.landing-nav__logo {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

/* -- Main hero -- */
.landing {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: calc(28px + var(--safe-top)) 24px calc(24px + var(--safe-bot));
}

.landing__hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  padding: 24px 0;
}

.landing__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(244, 241, 232, 0.08);
  border: 1px solid rgba(244, 241, 232, 0.16);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(244, 241, 232, 0.85);
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.landing__pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

.landing__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 9.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #f4f1e8;
}

.landing__sub {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(244, 241, 232, 0.78);
  max-width: 32ch;
}

.landing__actions {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 340px;
}

/* Landing-specific button variants */
.btn--landing-primary {
  background: #f4f1e8;
  color: var(--primary);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
}

.btn--landing-primary:hover:not(:disabled) {
  background: #ffffff;
}

.btn--landing-ghost {
  background: transparent;
  color: rgba(244, 241, 232, 0.95);
  border: 1px solid rgba(244, 241, 232, 0.22);
}

.btn--landing-ghost:hover:not(:disabled) {
  background: rgba(244, 241, 232, 0.08);
}

/* -- Trust badges -- */
.trust-badges {
  margin: 32px 0 0;
  width: 100%;
  max-width: 380px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  background: rgba(244, 241, 232, 0.06);
  border: 1px solid rgba(244, 241, 232, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.trust-badge__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(244, 241, 232, 0.10);
  color: #c8e8d6;
}

.trust-badge__icon svg {
  width: 18px;
  height: 18px;
}

.trust-badge__label {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(244, 241, 232, 0.92);
  text-align: center;
  letter-spacing: -0.005em;
}

/* -- Footer note -- */
.landing__foot {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(244, 241, 232, 0.55);
}

.landing__foot a {
  color: rgba(244, 241, 232, 0.85);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(244, 241, 232, 0.3);
}

.landing__foot a:hover {
  color: #f4f1e8;
}

/* ============================================================
   HELP & SUPPORT PAGE
   ============================================================ */
.screen--help {
  background: var(--bg);
}

.page--help {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 20px calc(28px + var(--safe-bot));
}

.help-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-top: 6px;
}

.help-hero__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
}

.help-hero__icon svg {
  width: 26px;
  height: 26px;
}

.help-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.help-hero__sub {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

/* Big WhatsApp call-to-action button */
.help-cta {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #25d366;
  border-radius: 16px;
  color: #fff;
  text-align: left;
  box-shadow: 0 10px 22px -10px rgba(37, 211, 102, 0.55);
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.help-cta:hover {
  background: #1fb858;
}

.help-cta:active {
  transform: scale(0.98);
}

.help-cta__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  color: #fff;
}

.help-cta__icon svg {
  width: 24px;
  height: 24px;
}

.help-cta__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.help-cta__label {
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.005em;
}

.help-cta__sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.help-cta__arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

/* Quick info cards */
.help-info {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.help-info__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-info__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.help-info__icon svg {
  width: 18px;
  height: 18px;
}

.help-info__title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.help-info__desc {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.4;
  margin-top: 2px;
}

.help-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
  padding: 0 8px;
}

/* ============================================================
   FLOATING WHATSAPP BUTTON (FAB)
   Visible on signin, help and any page that includes .wa-fab
   ============================================================ */
.wa-fab {
  position: fixed;
  right: 18px;
  bottom: calc(20px + var(--safe-bot));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow:
    0 10px 24px -8px rgba(37, 211, 102, 0.55),
    0 6px 14px -6px rgba(0, 0, 0, 0.25);
  z-index: 60;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.25s ease, background 0.2s ease;
  animation: waPulse 2.4s ease-in-out infinite;
}

.wa-fab:hover {
  background: #1fb858;
  transform: scale(1.06);
}

.wa-fab:active {
  transform: scale(0.94);
}

.wa-fab svg {
  width: 28px;
  height: 28px;
}

@keyframes waPulse {

  0%,
  100% {
    box-shadow:
      0 10px 24px -8px rgba(37, 211, 102, 0.55),
      0 6px 14px -6px rgba(0, 0, 0, 0.25),
      0 0 0 0 rgba(37, 211, 102, 0.45);
  }

  50% {
    box-shadow:
      0 10px 24px -8px rgba(37, 211, 102, 0.55),
      0 6px 14px -6px rgba(0, 0, 0, 0.25),
      0 0 0 12px rgba(37, 211, 102, 0);
  }
}

/* Inside the desktop "phone" frame, anchor the FAB to the frame (not viewport) */
@media (min-width: 600px) {
  .wa-fab {
    position: absolute;
  }
}

/* ============================================================
   AUTH HELP LINK (accessible without login)
   Sits below the sign-in form
   ============================================================ */
.auth__help {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--primary);
  font-weight: 600;
  font-size: 13.5px;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.auth__help:hover {
  background: var(--primary-soft);
  border-color: var(--primary-soft);
}

.auth__help:active {
  transform: scale(0.97);
}

.auth__help svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   SUPPORT ICON BUTTON (replaces bell icon on home)
   ============================================================ */
.iconbtn--support {
  position: relative;
}

.iconbtn--support:hover {
  background: var(--primary-soft);
  color: var(--primary);
}


/* ============================================================
   IMAGE TASKS  (NEW — task.html)
   ------------------------------------------------------------
   Hardcoded 10-image grid replaces the legacy video task list.
   Theme: deep green + gold, glass cards, soft gradients.
   Selectors are scoped with .imgtask / .imgtasks so legacy
   .task / .tasks rules above are untouched.
   ============================================================ */

/* ---------- Daily progress strip ---------- */
.imgtask-strip {
  margin: 16px 16px 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0e3b2c 0%, #134d3a 100%);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(7, 38, 28, 0.45);
  position: relative;
  overflow: hidden;
}

.imgtask-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(245, 196, 81, 0.25) 0%, transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(245, 196, 81, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.imgtask-strip__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.imgtask-strip__cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.imgtask-strip__cell--right {
  text-align: right;
  align-items: flex-end;
}

.imgtask-strip__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.imgtask-strip__value {
  font-family: var(--font-display, 'Bricolage Grotesque', system-ui, sans-serif);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #fff;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.imgtask-strip__value--mono {
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 18px;
  letter-spacing: 0;
}

.imgtask-strip__sep {
  font-weight: 500;
  opacity: 0.55;
  font-size: 17px;
}

.imgtask-strip__bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.imgtask-strip__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f5c451 0%, #e0a82e 100%);
  box-shadow: 0 0 12px rgba(245, 196, 81, 0.5);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Upsell banner ---------- */
.imgtask-upsell {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 16px 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(245, 196, 81, 0.35);
  background:
    linear-gradient(135deg, rgba(245, 196, 81, 0.10) 0%, rgba(245, 196, 81, 0.04) 100%);
  color: var(--ink, #0a1d14);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.imgtask-upsell:active {
  transform: scale(0.99);
}

.imgtask-upsell__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5c451 0%, #e0a82e 100%);
  color: #2a1a04;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(224, 168, 46, 0.3);
}

.imgtask-upsell__icon svg {
  width: 20px;
  height: 20px;
}

.imgtask-upsell__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.imgtask-upsell__body strong {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink, #0a1d14);
  letter-spacing: -0.01em;
}

.imgtask-upsell__body span {
  font-size: 12.5px;
  color: var(--ink-2, #4a5a52);
  line-height: 1.35;
}

.imgtask-upsell__chev {
  font-size: 22px;
  color: #e0a82e;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: 4px;
}

/* ---------- Image task grid ---------- */
.imgtasks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 12px 16px 24px;
  list-style: none;
  margin: 0;
}

@media (min-width: 520px) {
  .imgtasks {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Image task card ---------- */
.imgtask {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid rgba(14, 59, 44, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #fafdf9 100%);
  box-shadow:
    0 12px 32px -10px rgba(7, 38, 28, 0.22),
    0 4px 14px -6px rgba(7, 38, 28, 0.12);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  animation: imgtaskIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes imgtaskIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) {
  .imgtask:hover {
    transform: translateY(-2px);
    box-shadow:
      0 20px 44px -12px rgba(7, 38, 28, 0.32),
      0 6px 18px -6px rgba(7, 38, 28, 0.16);
  }
}

/* Locked = beyond the user's plan dailyLimit. Hidden entirely. */
.imgtask.is-locked {
  display: none !important;
}

/* ---------- Media (image) ---------- */
.imgtask__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 120% at 0% 0%, #14513c 0%, #07261c 60%, #051a13 100%);
  overflow: hidden;
}

.imgtask__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .imgtask:hover .imgtask__img {
    transform: scale(1.04);
  }
}

/* Soft gradient veil so badges read clearly over any image */
.imgtask__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0) 35%,
      rgba(0, 0, 0, 0) 65%,
      rgba(0, 0, 0, 0.30) 100%);
}

/* Number badge (top-left) */
.imgtask__num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: var(--font-display, 'Bricolage Grotesque', system-ui, sans-serif);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0;
  color: #2a1a04;
  background: linear-gradient(135deg, #f5c451 0%, #e0a82e 100%);
  box-shadow:
    0 4px 12px rgba(224, 168, 46, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Status badge (top-right) */
.imgtask__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.95);
  color: #0e3b2c;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.imgtask[data-status="completed"] .imgtask__badge {
  background: linear-gradient(135deg, #f5c451 0%, #e0a82e 100%);
  color: #2a1a04;
}

.imgtask[data-status="claiming"] .imgtask__badge {
  background: rgba(245, 196, 81, 0.95);
  color: #2a1a04;
}

/* ---------- Body ---------- */
.imgtask__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.imgtask__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.imgtask__title {
  font-family: var(--font-display, 'Bricolage Grotesque', system-ui, sans-serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: var(--ink, #0a1d14);
  margin: 0;
}

.imgtask__reward {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 6px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5c451 0%, #e0a82e 100%);
  color: #2a1a04;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow:
    0 4px 12px rgba(224, 168, 46, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.imgtask__cur {
  font-size: 12px;
  margin-right: 1px;
}

.imgtask__desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2, #4a5a52);
  margin: 0;
}

/* ---------- Claim button ---------- */
.imgtask__btn {
  position: relative;
  margin-top: 4px;
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  background: linear-gradient(135deg, #0e3b2c 0%, #134d3a 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px -4px rgba(14, 59, 44, 0.4);
  transition: transform 0.15s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.imgtask__btn:active:not(:disabled) {
  transform: scale(0.98);
}

.imgtask__btn:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

.imgtask[data-status="completed"] .imgtask__btn {
  background: rgba(14, 59, 44, 0.06);
  color: #0e3b2c;
  box-shadow: none;
}

.imgtask[data-status="claiming"] .imgtask__btn {
  background: linear-gradient(135deg, #f5c451 0%, #e0a82e 100%);
  color: #2a1a04;
  box-shadow: 0 6px 16px -4px rgba(224, 168, 46, 0.5);
}

.imgtask__btn-spin {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(42, 26, 4, 0.25);
  border-top-color: #2a1a04;
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: -2px;
  animation: imgtaskSpin 0.8s linear infinite;
}

.imgtask[data-status="claiming"] .imgtask__btn-spin {
  display: inline-block;
}

@keyframes imgtaskSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Dark VIP themes — keep cards legible ---------- */
body.vip-gold .imgtask,
body.vip-platinum .imgtask,
body.vip-diamond .imgtask {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
}

body.vip-gold .imgtask__title,
body.vip-platinum .imgtask__title,
body.vip-diamond .imgtask__title {
  color: #fff;
}

body.vip-gold .imgtask__desc,
body.vip-platinum .imgtask__desc,
body.vip-diamond .imgtask__desc {
  color: rgba(255, 255, 255, 0.65);
}

body.vip-gold .imgtask__btn,
body.vip-platinum .imgtask__btn,
body.vip-diamond .imgtask__btn {
  background: linear-gradient(135deg, #f5c451 0%, #e0a82e 100%);
  color: #2a1a04;
}

body.vip-gold .imgtask[data-status="completed"] .imgtask__btn,
body.vip-platinum .imgtask[data-status="completed"] .imgtask__btn,
body.vip-diamond .imgtask[data-status="completed"] .imgtask__btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ============================================================
   IMAGE TASK — "ready" state (user viewed image, can now claim)
   ------------------------------------------------------------
   Picks up after .imgtask[data-status="completed"] / "claiming".
   The button gets a gold treatment so it visually screams
   "you can claim now!".
   ============================================================ */
.imgtask[data-status="ready"] .imgtask__badge {
  background: linear-gradient(135deg, #f5c451 0%, #e0a82e 100%);
  color: #2a1a04;
  animation: imgtaskBadgePulse 1.6s ease-in-out infinite;
}

@keyframes imgtaskBadgePulse {

  0%,
  100% {
    box-shadow: 0 2px 8px rgba(245, 196, 81, 0.4);
  }

  50% {
    box-shadow: 0 2px 14px rgba(245, 196, 81, 0.7);
  }
}

.imgtask[data-status="ready"] .imgtask__btn {
  background: linear-gradient(135deg, #f5c451 0%, #e0a82e 100%);
  color: #2a1a04;
  box-shadow: 0 6px 18px -4px rgba(224, 168, 46, 0.55);
  animation: imgtaskCtaGlow 2s ease-in-out infinite;
}

@keyframes imgtaskCtaGlow {

  0%,
  100% {
    box-shadow: 0 6px 18px -4px rgba(224, 168, 46, 0.55);
  }

  50% {
    box-shadow: 0 8px 26px -4px rgba(224, 168, 46, 0.85);
  }
}

/* Cursor on the image to hint it's tappable */
.imgtask[data-status="pending"] .imgtask__img,
.imgtask[data-status="ready"] .imgtask__img {
  cursor: pointer;
}

/* ============================================================
   IMAGE VIEWER (lightbox)
   ------------------------------------------------------------
   Fullscreen overlay shown when a user taps "View Task" on an
   image-task card. Forces them to actually look at the image
   (3-second timer) before the "Continue" button enables. On
   continue, the card flips to "ready" and the user can claim.
   ============================================================ */
.imgviewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.imgviewer[hidden] {
  display: none;
}

body.imgviewer-open {
  overflow: hidden;
}

.imgviewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 38, 28, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: imgviewerFadeIn 0.25s ease-out;
}

@keyframes imgviewerFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.imgviewer__shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: imgviewerSlideUp 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes imgviewerSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.imgviewer__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.15s ease;
}

.imgviewer__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.imgviewer__close:active {
  transform: scale(0.94);
}

.imgviewer__close svg {
  width: 20px;
  height: 20px;
}

.imgviewer__stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  overflow: hidden;
  background: #051a13;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  min-height: 50vh;
  max-height: 70vh;
  padding: 12px;
}

.imgviewer__img {
  /* Use max-width/max-height so the image scales within the stage
     while keeping its natural aspect ratio. width/height: 100% on
     a flex child of an auto-sized stage was collapsing to 0px on
     some browsers — that's why the image wasn't visible. */
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.imgviewer__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.imgviewer__hint {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.imgviewer__cta {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  background: linear-gradient(135deg, #f5c451 0%, #e0a82e 100%);
  color: #2a1a04;
  cursor: pointer;
  box-shadow: 0 8px 22px -6px rgba(224, 168, 46, 0.6);
  transition: transform 0.15s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.imgviewer__cta:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  box-shadow: none;
}

.imgviewer__cta:not(:disabled):active {
  transform: scale(0.98);
}

/* Mobile tweaks — give the stage more room */
@media (max-width: 520px) {
  .imgviewer__shell {
    padding: 12px;
    gap: 10px;
  }

  .imgviewer__stage {
    min-height: 55vh;
    max-height: 75vh;
    border-radius: 14px;
  }

  .imgviewer__close {
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
  }

  .imgviewer__foot {
    padding: 12px 14px;
  }
}

/* ============================================================
   COUNTRY CODE PICKER (signup phone field)
   ============================================================ */

/* The clickable prefix button — visually mirrors .field__prefix
   so the existing field layout keeps its proportions. */
.field__prefix--btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 6px 10px 6px 0;
  margin-right: 8px;
  border-right: 1.5px solid var(--line);
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: background .18s ease;
  border-radius: 8px 0 0 8px;
}

.field__prefix--btn:hover {
  background: var(--surface-2);
}

.field__prefix--btn:active {
  background: var(--bg-2);
}

.field__prefix--btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.field__prefix--btn .cc-flag {
  font-size: 18px;
  line-height: 1;
  display: inline-block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
}

.field__prefix--btn .cc-code {
  font-size: 15px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}

.field__prefix--btn .cc-caret {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
  flex-shrink: 0;
}

/* ---- Bottom sheet ----------------------------------------- */
.cc-sheet {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cc-sheet[hidden] {
  display: none;
}

.cc-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 29, 20, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: ccFadeIn .18s ease both;
}

.cc-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 86vh;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -12px 40px -8px rgba(10, 29, 20, 0.25);
  animation: ccSlideUp .26s cubic-bezier(.2, .8, .2, 1) both;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@keyframes ccFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes ccSlideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.cc-sheet__handle {
  width: 38px;
  height: 4px;
  background: var(--line-2);
  border-radius: 4px;
  margin: 8px auto 0;
  flex-shrink: 0;
}

.cc-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  flex-shrink: 0;
}

.cc-sheet__title {
  font-family: var(--font-display, inherit);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}

.cc-sheet__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 0;
  color: var(--ink-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .18s ease;
}

.cc-sheet__close:hover {
  background: var(--bg-2);
}

.cc-sheet__close svg {
  width: 18px;
  height: 18px;
}

.cc-sheet__searchwrap {
  position: relative;
  margin: 4px 16px 12px;
  flex-shrink: 0;
}

.cc-sheet__searchicon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  pointer-events: none;
}

.cc-sheet__searchicon svg {
  width: 18px;
  height: 18px;
}

.cc-sheet__search {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 42px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.cc-sheet__search::placeholder {
  color: var(--ink-3);
  font-weight: 400;
}

.cc-sheet__search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  background: var(--surface);
}

/* Hide native search clear button — we keep things consistent */
.cc-sheet__search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.cc-sheet__list {
  list-style: none;
  margin: 0;
  padding: 0 8px 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}

.cc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease;
}

.cc-item:hover {
  background: var(--surface-2);
}

.cc-item:active {
  background: var(--bg-2);
}

.cc-item.is-selected {
  background: var(--primary-soft);
}

.cc-item__flag {
  font-size: 22px;
  line-height: 1;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
}

.cc-item__name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-item__code {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.cc-item.is-selected .cc-item__code {
  color: var(--primary);
}

.cc-sheet__empty {
  padding: 24px 16px 28px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

/* Lock body scroll while sheet is open (added/removed via JS) */
body.cc-sheet-open {
  overflow: hidden;
}

/* Tighter sizing on small screens */
@media (max-width: 380px) {
  .field__prefix--btn {
    padding-right: 8px;
    gap: 4px;
  }

  .field__prefix--btn .cc-code {
    font-size: 14px;
  }

  .field__prefix--btn .cc-flag {
    font-size: 16px;
  }
}

/* ============================================================
   DARK MODE
   ------------------------------------------------------------
   Dark theme is the DEFAULT on first visit. Users can switch to
   light mode via the toggle in profile.html → Dark Mode menu
   item. The choice is persisted in localStorage and applied via
   <html data-theme="dark"> attribute set very early in script.js
   to avoid any flash of light content on page load.

   Strategy:
   1. Override the design-token CSS variables on the root when
      data-theme="dark" is set. Every component that already uses
      var(--bg), var(--surface), var(--ink), etc. adapts for free.
   2. A small number of components hardcode #fff or rely on
      specific light-palette colors — those get targeted overrides
      below.
   3. NOTHING in the existing stylesheet is modified; this entire
      block is purely additive.
   ============================================================ */

/* Smooth color transitions when the theme flips. Excluding transform
   so animations remain snappy. */
html[data-theme="dark"] body,
html[data-theme="dark"] .screen,
html[data-theme="dark"] .page,
html[data-theme="dark"] .menu__item,
html[data-theme="dark"] .menu__panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .field__input,
html[data-theme="dark"] .field__select,
html[data-theme="dark"] .appbar,
html[data-theme="dark"] .bottomnav {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

/* ---------- 1. Override design tokens ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] :root,
html[data-theme="dark"] body {
  /* Base surfaces */
  --bg: #0d1411;
  --bg-2: #131b17;
  --surface: #1a221e;
  --surface-2: #222b26;

  /* Text */
  --ink: #ecf2ef;
  --ink-2: #a8b3ae;
  --ink-3: #7a857f;

  /* Lines */
  --line: #2a342e;
  --line-2: #3a4640;

  /* Brand — slightly brighter to read on dark */
  --primary: #2d8a66;
  --primary-2: #3aa07a;
  --primary-soft: #1a3a2d;
  --primary-glow: rgba(58, 160, 122, 0.28);

  /* Action red */
  --red: #ef6b54;
  --red-2: #db5642;
  --red-soft: #3a1f1a;
  --red-glow: rgba(239, 107, 84, 0.40);

  /* Action green */
  --green: #1fbe7a;
  --green-2: #18a86b;
  --green-soft: #1a3a2a;
  --green-glow: rgba(31, 190, 122, 0.40);

  /* Money */
  --money: #1fbe7a;

  /* VIP gold */
  --gold: #e8b835;
  --gold-soft: #3a2f10;

  /* Accent palette — soft variants get dark backgrounds */
  --c-blue: #5e90ec;
  --c-blue-soft: #1c2840;
  --c-purple: #9c80e0;
  --c-purple-soft: #2a2240;
  --c-amber: #e6a23a;
  --c-amber-soft: #3a2c10;
  --c-teal: #1faea3;
  --c-teal-soft: #103330;

  /* Shadows — much lighter, since dark surfaces don't show shadows well */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.40), 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 4px 14px -4px rgba(0, 0, 0, 0.50), 0 2px 4px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 14px 36px -10px rgba(0, 0, 0, 0.70);
  --shadow-balance: 0 18px 40px -12px rgba(0, 0, 0, 0.65);
}

/* The :root selector above doesn't actually re-match when an attribute
   is on <html>, so we also redeclare directly on the html element. */
html[data-theme="dark"] {
  --bg: #0d1411;
  --bg-2: #131b17;
  --surface: #1a221e;
  --surface-2: #222b26;

  --ink: #ecf2ef;
  --ink-2: #a8b3ae;
  --ink-3: #7a857f;

  --line: #2a342e;
  --line-2: #3a4640;

  --primary: #2d8a66;
  --primary-2: #3aa07a;
  --primary-soft: #1a3a2d;
  --primary-glow: rgba(58, 160, 122, 0.28);

  --red: #ef6b54;
  --red-2: #db5642;
  --red-soft: #3a1f1a;
  --red-glow: rgba(239, 107, 84, 0.40);

  --green: #1fbe7a;
  --green-2: #18a86b;
  --green-soft: #1a3a2a;
  --green-glow: rgba(31, 190, 122, 0.40);

  --money: #1fbe7a;

  --gold: #e8b835;
  --gold-soft: #3a2f10;

  --c-blue: #5e90ec;
  --c-blue-soft: #1c2840;
  --c-purple: #9c80e0;
  --c-purple-soft: #2a2240;
  --c-amber: #e6a23a;
  --c-amber-soft: #3a2c10;
  --c-teal: #1faea3;
  --c-teal-soft: #103330;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.40), 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 4px 14px -4px rgba(0, 0, 0, 0.50), 0 2px 4px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 14px 36px -10px rgba(0, 0, 0, 0.70);
  --shadow-balance: 0 18px 40px -12px rgba(0, 0, 0, 0.65);
}

/* ---------- 2. Targeted overrides for hardcoded colors ---------- */

/* Anything hardcoded #fff in the stylesheet — point it at the surface
   token in dark mode. Cover the common patterns we found in audit. */
html[data-theme="dark"] body {
  background: var(--bg);
  color: var(--ink);
}

/* Account settings buttons explicitly set color: var(--ink) and
   background: var(--surface) — they already adapt. The hover state
   uses --primary-soft (now dark) + --primary border — still works. */

/* Form inputs / selects — make sure their background follows surface */
html[data-theme="dark"] .field__input,
html[data-theme="dark"] .field__select,
html[data-theme="dark"] .field__wrap {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

html[data-theme="dark"] .field__input::placeholder {
  color: var(--ink-3);
}

/* Read-only / disabled fields */
html[data-theme="dark"] .field__input[readonly],
html[data-theme="dark"] .field__select:disabled {
  color: var(--ink-3);
}

/* Disabled select option dropdown — browser default is white; for
   dark mode, color-scheme: dark above tells the browser to render
   native form widgets dark. */

/* Account-settings ghost buttons — they were hand-overridden in the
   light stylesheet because .btn--ghost was made for dark surfaces.
   In dark mode we want them to keep working on the dark panel too. */
html[data-theme="dark"] .account-settings .account-settings__btn,
html[data-theme="dark"] .account-settings .account-settings__btn.btn--ghost {
  color: var(--ink);
  background: var(--surface-2);
  border-color: var(--line);
}

html[data-theme="dark"] .account-settings .account-settings__btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-2);
}

/* The cream panel (--surface-2) used by menu__panel is now dark too,
   so this stays consistent. */

/* Bottom nav — uses var(--surface) so it inherits. Ensure border. */
html[data-theme="dark"] .bottomnav {
  border-top-color: var(--line);
}

/* Cards / menu items already use var(--surface). Borders use var(--line). */

/* Inputs that might have white background fixed — search & coerce */
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background-color: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

/* Autofill — Chrome forces yellow tint, override with shadow trick */
html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] input:-webkit-autofill:hover,
html[data-theme="dark"] input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset !important;
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--ink);
}

/* Modals / sheets / overlays — they all use var(--surface) or var(--bg).
   Make sure the dim backdrop is dark enough to read against dark UI. */
html[data-theme="dark"] .toast,
html[data-theme="dark"] .modal__card,
html[data-theme="dark"] .vmodal__panel,
html[data-theme="dark"] .install-modal__card,
html[data-theme="dark"] .cc-sheet {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

/* Backdrops — darken further so dark modals pop against dark page. */
html[data-theme="dark"] .modal__backdrop,
html[data-theme="dark"] .vmodal::before,
html[data-theme="dark"] .install-modal__backdrop {
  background: rgba(0, 0, 0, 0.70);
}

/* Tables, list separators, code blocks — anything using --line. Done by
   variable override. */

/* Primary buttons — already use var(--primary). The brighter dark-mode
   primary token gives good contrast. */

/* Hero / balance card uses gradient with var(--primary) and var(--primary-2).
   Token override handles it. */

/* Empty-state and ghost text uses var(--ink-2) / var(--ink-3). Covered. */

/* The VIP themed pages (body.vip-gold/platinum/diamond) override colors
   themselves with a darker palette — they remain visually distinct
   in dark mode without us changing anything. */

/* Adjust appbar contrast — make sure the title is readable on dark */
html[data-theme="dark"] .appbar,
html[data-theme="dark"] .appbar--simple {
  background: var(--bg);
  color: var(--ink);
}

html[data-theme="dark"] .appbar__title {
  color: var(--ink);
}

/* Profile-stat numbers — they typically inherit var(--ink), fine. */

/* Menu icons keep their soft accent backgrounds (now dark accent variants),
   icon stroke uses currentColor which is the accent. Looks great. */

/* ============================================================
   THEME TOGGLE SWITCH (used inside profile.html menu)
   ============================================================ */
.menu__item--toggle-switch {
  cursor: default;
}

/* Don't show the hover/press chevron behavior on the toggle item */
.menu__item--toggle-switch:hover {
  background: var(--surface);
}

.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.theme-switch input {
  /* Visually hidden but still focusable */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-switch__track {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  background: var(--line-2);
  border-radius: 999px;
  transition: background-color .22s ease;
}

.theme-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform .25s var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1)),
    background-color .22s ease;
}

.theme-switch input:checked+.theme-switch__track {
  background: var(--primary);
}

.theme-switch input:checked+.theme-switch__track .theme-switch__thumb {
  transform: translateX(20px);
}

.theme-switch input:focus-visible+.theme-switch__track {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* In dark mode the thumb stays bright white — gives a nice contrast */
html[data-theme="dark"] .theme-switch__track {
  background: var(--line-2);
}

/* ============================================================
   DARK MODE — HOME PAGE TARGETED FIXES
   ------------------------------------------------------------
   Two elements on home.html use hardcoded colors that don't
   adapt to dark mode:

   1. .welcome-intro__sub — hardcoded near-black rgba, becomes
      invisible on dark background. Re-color it for dark mode.

   2. .hero-slide__cta — has a permanent white background (sits
      on the colored hero gradient), but its text color uses
      var(--ink) which flips to near-white in dark mode, giving
      white-on-white. Force the text dark in dark mode since the
      pill itself stays white either way.
   ============================================================ */

html[data-theme="dark"] .welcome-intro__sub {
  color: rgba(236, 242, 239, 0.72);
}

html[data-theme="dark"] .welcome-intro__title {
  color: var(--ink);
}

html[data-theme="dark"] .hero-slide__cta {
  background: #fff;
  color: #0f1f17;
}

html[data-theme="dark"] .hero-slide__cta svg {
  color: #0f1f17;
}

/* The "Browse campaigns" pill button above the How It Works section.
   Same pattern as .hero-slide__cta — it has a permanent white pill on
   a colored gradient stage, but its text color uses var(--ink) which
   flips to near-white in dark mode, giving white-on-white. Force the
   text dark in dark mode so the label stays readable. */
html[data-theme="dark"] .adshow__cta {
  background: #fff;
  color: #0f1f17;
}

html[data-theme="dark"] .adshow__cta svg {
  color: #0f1f17;
}

/* ============================================================
   DARK MODE — TASK PAGE TARGETED FIXES
   ------------------------------------------------------------
   On task.html the .imgtask cards have a hardcoded white gradient
   background. In dark mode that left the cards bright white while
   the text colors flipped to white via var(--ink), producing
   white-on-white "Task 1, Task 2, …" titles and faint
   "View task and claim your reward" descriptions.

   The completed/idle "View Task" button also used a near-invisible
   tint (rgba(14, 59, 44, 0.06)) with dark-green text — basically
   invisible on a dark card.

   This block targets each problem element directly. Light mode is
   untouched.
   ============================================================ */

/* Card surface — flip the hardcoded white gradient to a dark one
   so the rest of the contents have proper contrast to land on. */
html[data-theme="dark"] .imgtask {
  background: linear-gradient(180deg, #1a221e 0%, #202924 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 12px 32px -10px rgba(0, 0, 0, 0.55),
    0 4px 14px -6px rgba(0, 0, 0, 0.35);
}

/* Title ("Task 1", "Task 2", …) — force pure white for max contrast
   on the dark card. var(--ink) is already near-white but this is
   crisper. */
html[data-theme="dark"] .imgtask__title {
  color: #f5f8f6;
}

/* Description ("View task and claim your reward.") — boost from the
   soft gray var(--ink-2) to something more readable. */
html[data-theme="dark"] .imgtask__desc {
  color: rgba(245, 248, 246, 0.72);
}

/* "View Task" / claim button in its default state — already dark
   green gradient with white text, looks great in dark mode. No
   change needed for the active state. */

/* COMPLETED state — was rgba(14,59,44,0.06) bg with #0e3b2c text,
   which becomes invisible dark-green-on-dark. Swap to a visible
   dark-mode treatment that still reads as a completed/muted state. */
html[data-theme="dark"] .imgtask[data-status="completed"] .imgtask__btn {
  background: rgba(31, 190, 122, 0.14);
  color: #1fbe7a;
  box-shadow: none;
}

/* Status badge top-right ("NEW" / "COMPLETED" / etc.) — its default
   white background works on dark cards too, but bump the text
   slightly to keep contrast crisp. */
html[data-theme="dark"] .imgtask__badge {
  background: rgba(255, 255, 255, 0.95);
  color: #0e3b2c;
}

/* ============================================================
   DARK MODE — VIP PAGE TARGETED FIXES
   ------------------------------------------------------------
   The .vip-card--silver and .vip-card--gold cards have hardcoded
   LIGHT gradient backgrounds (their brand identity — silver and
   gold are inherently light/bright). In dark mode the text inside
   was using var(--ink) which flips to near-white, giving
   white-on-light = invisible text on EM-1, EM-2, and EM-3 cards.

   Strategy: keep the cards visually branded (silver/gold gradients
   intact) but force the text colors to STAY DARK in dark mode,
   matching their light-mode appearance. The text contrast against
   the silver/gold backgrounds is already excellent in light mode,
   so we simply preserve it.

   The .vip-card--diamond card already has a dark purple gradient
   with explicit light text colors — it's untouched.

   Also a quick fix for the .vip-hero__sub which uses var(--ink-2)
   and reads too faded on the dark page background.
   ============================================================ */

/* Hero subtitle — boost contrast on the dark page bg */
html[data-theme="dark"] .vip-hero__sub {
  color: rgba(236, 242, 239, 0.78);
}

/* ---- SILVER family cards (EM-1, EM-2) ---- */
/* The HTML uses .vip-card--em1 / --em2 (defined later in the stylesheet
   around line 5605). Keep the silver gradient bg, force dark text. */
html[data-theme="dark"] .vip-card--em1 .vip-card__tier,
html[data-theme="dark"] .vip-card--em2 .vip-card__tier,
html[data-theme="dark"] .vip-card--em1 .vip-card__price-amount,
html[data-theme="dark"] .vip-card--em2 .vip-card__price-amount {
  color: #0a1d14;
}

html[data-theme="dark"] .vip-card--em1 .vip-card__tag,
html[data-theme="dark"] .vip-card--em2 .vip-card__tag,
html[data-theme="dark"] .vip-card--em1 .vip-card__price-currency,
html[data-theme="dark"] .vip-card--em2 .vip-card__price-currency {
  color: #3a4350;
}

html[data-theme="dark"] .vip-card--em1 .vip-card__perks li,
html[data-theme="dark"] .vip-card--em2 .vip-card__perks li {
  color: #1a2530;
}

html[data-theme="dark"] .vip-card--em1 .vip-card__perks strong,
html[data-theme="dark"] .vip-card--em2 .vip-card__perks strong {
  color: #0a1d14;
  font-weight: 800;
}

/* Silver card perks-checkmark badge — was a translucent white pill
   that nearly vanished on the light silver bg; pin it to solid white. */
html[data-theme="dark"] .vip-card--em1 .vip-card__perks svg,
html[data-theme="dark"] .vip-card--em2 .vip-card__perks svg {
  background: rgba(255, 255, 255, 0.95);
}

/* ---- GOLD family cards (EM-3, EM-4) ---- */
/* Same treatment — keep the gold gradient, force dark brown text. */
html[data-theme="dark"] .vip-card--em3 .vip-card__tier,
html[data-theme="dark"] .vip-card--em4 .vip-card__tier,
html[data-theme="dark"] .vip-card--em3 .vip-card__price-amount,
html[data-theme="dark"] .vip-card--em4 .vip-card__price-amount {
  color: #2a1a04;
}

html[data-theme="dark"] .vip-card--em3 .vip-card__tag,
html[data-theme="dark"] .vip-card--em4 .vip-card__tag,
html[data-theme="dark"] .vip-card--em3 .vip-card__price-currency,
html[data-theme="dark"] .vip-card--em4 .vip-card__price-currency {
  color: #4a3508;
}

html[data-theme="dark"] .vip-card--em3 .vip-card__perks li,
html[data-theme="dark"] .vip-card--em4 .vip-card__perks li {
  color: #2a1a04;
}

html[data-theme="dark"] .vip-card--em3 .vip-card__perks strong,
html[data-theme="dark"] .vip-card--em4 .vip-card__perks strong {
  color: #1a0f00;
  font-weight: 800;
}

html[data-theme="dark"] .vip-card--em3 .vip-card__perks svg,
html[data-theme="dark"] .vip-card--em4 .vip-card__perks svg {
  background: rgba(255, 255, 255, 0.95);
}

/* DIAMOND family (EM-5, EM-6) — already has dark purple gradient with
   explicit light text colors. Untouched. */

/* The .vip-card__ribbon on silver/gold cards uses bg rgba(255,255,255,0.92)
   with color: var(--ink). var(--ink) flips to near-white in dark mode,
   so the ribbon becomes white-on-white. Force dark text. */
html[data-theme="dark"] .vip-card--em1 .vip-card__ribbon,
html[data-theme="dark"] .vip-card--em2 .vip-card__ribbon,
html[data-theme="dark"] .vip-card--em3 .vip-card__ribbon,
html[data-theme="dark"] .vip-card--em4 .vip-card__ribbon {
  color: #0a1d14;
}

/* The default .vip-card__cta has background: var(--ink) — in dark mode
   this becomes near-white, which is fine, but its color is #fff, giving
   white-on-white. This only matters for the BASE cta (not the variant
   overrides for silver/gold/diamond, which all set their own bg). Some
   markup paths could fall through to the default; safer to override. */
html[data-theme="dark"] .vip-card__cta {
  background: linear-gradient(135deg, #0e3b2c 0%, #145740 100%);
  color: #ffffff;
}

/* Silver/Gold/Diamond CTAs explicitly redefine bg + box-shadow, so they
   are NOT affected by the override above — their styles still win due
   to specificity (.vip-card--silver .vip-card__cta etc). */

/* .vip-note (the "Important:" callout below the cards) uses
   var(--primary-soft) bg and var(--primary) text. In dark mode the
   primary-soft is now a dark green and the primary is brighter green —
   readable but the contrast is a bit muted. Bump slightly. */
html[data-theme="dark"] .vip-note {
  background: rgba(45, 138, 102, 0.18);
  color: #6ad2a5;
  border: 1px solid rgba(45, 138, 102, 0.30);
}