/* Earnly — charcoal workspace. Poppins is served with the app. */
/* Services section */
.svc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.svc-cats { display: flex; gap: .5rem; flex-wrap: wrap; }
.svc-cat { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.6rem; padding: .5rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .9375rem; font-weight: 600; cursor: pointer; }
.svc-cat:hover { border-color: var(--purple); color: var(--text); }
.svc-cat.active { background: var(--purple); border-color: var(--purple); color: #171328; }
.svc-cat:focus-visible { outline-color: var(--purple); }
.svc-search { display: flex; align-items: center; gap: .55rem; flex: 1; min-width: 13rem; max-width: 22rem; min-height: 2.6rem; padding: 0 .9rem; border: 1px solid var(--line); border-radius: .875rem; background: var(--surface-2); }
.svc-search:focus-within { border-color: var(--purple); }
.svc-search .icon { flex: none; width: 1.1rem; height: 1.1rem; color: var(--faint); }
.svc-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: .9375rem; outline: none; }
.svc-search input::placeholder { color: var(--faint); }
.svc-subcats { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.25rem 0 1rem; }
.svc-sub { display: inline-flex; align-items: center; min-height: 2.25rem; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .875rem; font-weight: 500; cursor: pointer; }
.svc-sub:hover { border-color: var(--mint-deep); color: var(--text); }
.svc-sub.active { background: var(--mint-deep); border-color: var(--mint-deep); color: #123124; }
.svc-count { margin: 0 0 .75rem; color: var(--faint); font-size: .8125rem; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.svc-card { display: flex; flex-direction: column; gap: .65rem; margin: 0; padding: .75rem; border: 1px solid var(--line); border-radius: .875rem; background: var(--surface); overflow: hidden; cursor: pointer; transition: transform .15s, border-color .15s; }
.svc-card:hover { transform: translateY(-2px); border-color: var(--purple); }
.svc-card img { display: block; width: 100%; aspect-ratio: 240 / 320; height: auto; object-fit: cover; border-radius: .625rem; background: var(--surface-2); }
.svc-card figcaption { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.svc-card strong { font-size: .8125rem; font-weight: 600; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.svc-card figcaption span { color: var(--faint); font-size: .72rem; }
.svc-more-wrap { display: flex; justify-content: center; margin-top: 1.5rem; }
.svc-more-wrap[hidden] { display: none; }
.svc-empty { text-align: center; color: var(--faint); font-size: .9375rem; padding: 2.5rem 1rem; }
.svc-empty[hidden] { display: none; }
.svc-soon { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .75rem; padding: 3.5rem 1.5rem; }
.svc-soon-icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; color: var(--purple); background: var(--surface-2); }
.svc-soon h2 { margin: 0; font-size: 1.25rem; }
.svc-soon p { margin: 0; color: var(--muted); max-width: 32rem; }
@media (min-width: 700px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1360px) { .svc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1680px) { .svc-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('./fonts/poppins-400.woff2') format('woff2'), url('./fonts/poppins-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('./fonts/poppins-500.woff2') format('woff2'), url('./fonts/poppins-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('./fonts/poppins-600.woff2') format('woff2'), url('./fonts/poppins-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('./fonts/poppins-700.woff2') format('woff2'), url('./fonts/poppins-700.ttf') format('truetype');
}
:root {
  color-scheme: dark;
  --font: 'Poppins', sans-serif;
  --bg: #101218;
  --sidebar: #15171f;
  --surface: #1a1d27;
  --surface-2: #202430;
  --line: #2d3241;
  --text: #f1f3f8;
  --muted: #acb3c3;
  --faint: #98a2b6;
  --mint: #8ee3b5;
  --mint-deep: #6acb9a;
  --purple: #c1adff;
  --amber: #edc183;
  --blue: #99caff;
  --radius: 1.125rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 2rem; scrollbar-gutter: stable; }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font-family: var(--font); font-size: 1rem; font-weight: 400;
  line-height: 1.65; font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
.lang-trigger { min-height: 2.625rem; padding: .5rem .6rem; color: #c7c1d9; background: #1a1c27; border: 1px solid #343546; border-radius: .75rem; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.lang-trigger:hover { color: #f0ebff; border-color: #746993; background: #242433; }
.profile-menu-actions { display: flex; align-items: center; gap: .5rem; margin: .5rem .875rem .875rem; }
.profile-menu-actions .outline-button { flex: 1 1 auto; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-menu { display: none; flex: 1 1 auto; min-width: 0; width: auto; max-width: 55%; margin: 0; }
@media (max-width: 950px) { .top-actions .lang-top { display: none; } .lang-menu { display: block; } }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.4; font-weight: 600; }
strong, b { font-weight: 600; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
::selection { color: #112d21; background: var(--mint); }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 1.375rem; height: 1.375rem; flex: none; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-shell { display: flex; min-height: 100dvh; }
.sidebar {
  width: 16rem; flex: 0 0 16rem; height: 100dvh; overflow-y: auto;
  position: sticky; top: 0; display: flex; flex-direction: column;
  padding: 2rem 1.125rem 1.25rem; background: var(--sidebar); border-right: 1px solid var(--line);
}
.brand, .mobile-brand { display: flex; align-items: center; gap: .7rem; font-size: 1.625rem; font-weight: 600; letter-spacing: -.025em; }
.brand { padding: 0 .875rem; }
.brand-mark {
  display: block; width: 2.75rem; height: 2.75rem; flex: none;
  object-fit: contain;
}
.side-label { margin: 2.75rem .875rem 1rem; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 500; }
.side-label-bottom { margin-top: 2.25rem; }
.nav-list { display: grid; gap: .375rem; }
.nav-item {
  min-height: 3.125rem; display: flex; align-items: center; gap: .8rem;
  padding: .75rem .875rem; border-radius: .75rem; border: 1px solid transparent;
  background: transparent; color: var(--muted); font-size: .9375rem; text-align: left;
  transition: background .18s, color .18s, border-color .18s;
}
.nav-item:hover { color: var(--text); background: #20232d; }
.nav-item.active { color: var(--mint); background: #21332f; border-color: #304b40; font-weight: 500; }
.nav-badge { margin-left: auto; min-width: 1.375rem; height: 1.375rem; border-radius: .375rem; display: grid; place-items: center; color: var(--mint); background: #29443a; font-size: .75rem; }
.sidebar-footer { margin-top: auto; padding: 1.125rem .75rem 0; border-top: 1px solid var(--line); }
.mini-user { display: flex; align-items: center; gap: .65rem; }
.mini-user strong { display: block; font-size: .875rem; }
.mini-user div:nth-child(2) span { display: block; font-size: .75rem; color: var(--faint); }
.mini-user .dots { margin-left: auto; color: var(--muted); }
.avatar, .profile-avatar, .podium-avatar { flex: none; display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid #ffffff16; font-size: .8125rem; font-weight: 600; overflow: hidden !important; position: relative; padding: 0; vertical-align: middle; }
.avatar img, .profile-avatar img, .podium-avatar img { width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 50% !important; display: block !important; position: absolute; inset: 0; pointer-events: none; }
.avatar-small { width: 2.25rem; height: 2.25rem; font-size: .75rem; }
.avatar-green { background: #27483c; color: #a9e9c6; }
.avatar-purple { background: #393153; color: #d0c1ff; }
.avatar.coral { background: #4d3338; color: #f4b4af; }
.avatar.blue { background: #293e57; color: #a6cfff; }
.avatar.yellow { background: #493f2e; color: #edcd96; }
.main-content { flex: 1; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 15; min-height: 5rem; padding: 1rem clamp(1.5rem, 3vw, 3rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; border-bottom: 1px solid #252936; background: #101218f5; backdrop-filter: blur(16px); }
.topbar-start { min-width: 0; }
.breadcrumb { display: flex; align-items: center; gap: .75rem; min-width: 0; overflow: hidden; color: var(--faint); font-size: .875rem; white-space: nowrap; }
.breadcrumb strong { overflow: hidden; text-overflow: ellipsis; color: #d4d9e3; font-weight: 500; }
.crumb-slash { color: #5c6579; }
.top-actions { display: flex; align-items: center; justify-self: end; gap: 1rem; }
.navbar-balance { display: inline-flex; align-items: center; gap: .625rem; min-height: 3rem; max-width: 100%; padding: .5rem .875rem; border: 1px solid #38364f; border-radius: .875rem; background: #1b1c29; color: #eeecfa; transition: border-color .15s, background .15s; }
.navbar-balance:hover, .navbar-balance.active { border-color: #79709d; background: #252438; }
.navbar-balance:focus-visible { outline-color: #b5a4ff; }
.navbar-balance-icon { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: .625rem; color: #b5a4ff; background: #2b2841; }
.navbar-balance-icon .icon { width: 1.125rem; height: 1.125rem; }
.navbar-balance-copy { display: grid; gap: .125rem; line-height: 1.35; }
.navbar-balance-copy > span { color: #b1acc7; font-size: .75rem; white-space: nowrap; }
.navbar-balance-copy strong { color: #f0edff; font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.navbar-balance-copy small { margin-left: .2rem; color: #b1acc7; font-size: .75rem; font-weight: 500; }
.mobile-balance-pill { display: none; }
#pageStartEarning[hidden] { display: none; }
#profileTop { width: 2.75rem; height: 2.75rem; }
#profileTop:hover, #profileTop[aria-expanded="true"] { border-color: #ab9acb; box-shadow: 0 0 0 3px #c1adff16; }
.membership-badge { display: flex; align-items: center; gap: .625rem; color: var(--mint); background: #1d2d28; border: 1px solid #354d41; padding: .4rem .75rem; border-radius: .75rem; }
.membership-symbol { width: 1.25rem; height: 1.25rem; }
.membership-copy { display: grid; gap: .125rem; line-height: 1.35; }
.membership-label { color: var(--muted); font-size: .75rem; }
.membership-copy strong { font-size: .8125rem; font-weight: 600; }
[data-member-badge][data-level="vip"] { color: #f1d296; background: #3c3222; border-color: #796440; }
.icon-button { min-width: 2.625rem; min-height: 2.625rem; display: grid; place-items: center; border-radius: .75rem; background: var(--surface); border: 1px solid var(--line); color: var(--muted); position: relative; }
.icon-button:hover { color: var(--text); background: var(--surface-2); }
.icon-button i { position: absolute; width: .375rem; height: .375rem; background: var(--mint); border-radius: 50%; right: .625rem; top: .5rem; border: 1px solid var(--surface); }
.mobile-brand, .mobile-nav { display: none !important; }
.page { max-width: 90rem; margin: 0 auto; padding: 2.5rem clamp(1.5rem, 3vw, 3rem) 3.5rem; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.page-heading > div { min-width: 0; }
.eyebrow { display: block; color: var(--faint); font-size: .75rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; }
.page-heading h1 { margin: .5rem 0; font-size: clamp(1.625rem, 2.3vw, 2rem); font-weight: 600; letter-spacing: -.025em; }
.page-subtitle { color: var(--muted); font-size: 1rem; }
.primary-button, .outline-button, .task-button, .balance-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .625rem;
  min-height: 2.875rem; padding: .75rem 1.125rem; border-radius: .75rem;
  font-size: .875rem; font-weight: 500; line-height: 1.5;
  transition: background .18s, border-color .18s, color .18s;
}
.primary-button { border: 1px solid var(--mint); background: var(--mint); color: #142d23; }
.primary-button:hover { background: #a9edc9; border-color: #a9edc9; }
.page-heading .primary-button { flex: none; }
.primary-button .icon { width: 1.125rem; height: 1.125rem; }
.full-width { width: 100%; margin-top: 1.5rem; }
.outline-button { background: var(--surface-2); border: 1px solid #3d465a; color: #e0e5ee; }
.outline-button:hover { border-color: #688075; background: #293a34; color: var(--mint); }
.balance-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.25rem; }
.balance-card, .stat-card, .panel, .task-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.balance-card { padding: 1.5rem; background: linear-gradient(125deg, #234b3f 0%, #17362d 100%); border-color: #3b6453; position: relative; overflow: hidden; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.card-label { font-size: .875rem; color: var(--muted); }
.balance-card .card-label { color: #c6ded1; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .375rem; padding: .3rem .6rem; border-radius: .5rem; font-size: .75rem; font-weight: 500; line-height: 1.4; }
.pill.success, .mint-pill, .status-tag { color: #a1e8bf; background: #253e34; }
.pill i { width: .3rem; height: .3rem; border-radius: 50%; background: currentColor; }
.currency-pill { color: #d9ece1; background: #ffffff0c; border: 1px solid #ffffff24; letter-spacing: .04em; }
.balance-value { font-size: 3rem; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; margin: 1.1rem 0 .6rem; font-variant-numeric: tabular-nums; color: #f2fff7; }
.balance-value > b { font-size: inherit; font-weight: inherit; }
.balance-value > span { font-size: 2rem; color: #b4d8c5; margin-right: .15rem; }
.balance-foot { display: flex; align-items: center; gap: .5rem .875rem; flex-wrap: wrap; color: #c2d9cb; font-size: .8125rem; }
.trend-up { color: #b6f0ce; font-weight: 500; }
.trend-down { color: #ffb4a8; font-weight: 500; }
.balance-link { justify-content: space-between; border: 1px solid #ffffff24; margin-top: 1.25rem; min-height: 2.5rem; width: 100%; padding: .6rem .875rem; color: #e0f7e9; background: #ffffff09; }
.balance-link:hover { background: #ffffff14; }
.balance-link .icon { width: 1rem; height: 1rem; }
.stat-card { padding: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; }
.stat-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .875rem; margin-bottom: 1rem; }
.stat-card strong { display: block; font-size: 2rem; line-height: 1.35; letter-spacing: -.015em; margin: .5rem 0 1rem; font-variant-numeric: tabular-nums; }
.stat-note { color: var(--muted); font-size: .8125rem; margin-top: auto; }
.amber-text { color: var(--amber); }
.dot-mint { display: none; }
.mint, .green { color: var(--mint); background: #243b32; }
.amber { color: var(--amber); background: #3c3228; }
.purple { color: var(--purple); background: #332c49; }
.blue { color: var(--blue); background: #27364e; }
.orange { color: #efb28d; background: #3f3029; }
.section-row { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; margin: 2.25rem 0 1.25rem; }
.section-row h2, .panel h2 { font-size: 1.125rem; letter-spacing: -.01em; }
.section-note { color: var(--muted); font-size: .875rem; margin: .25rem 0 0; }
.text-link { display: inline-flex; align-items: center; gap: .625rem; font-size: .875rem; font-weight: 500; color: var(--mint); white-space: nowrap; }
.text-link:hover { color: #c0f6d9; }
.text-link span { font-size: 1.125rem; }
.task-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
.task-card { padding: 1.375rem; display: flex; flex-direction: column; transition: border-color .18s, background .18s; }
.task-card:hover { border-color: #4b5964; background: #1e222d; }
.featured-task { border-color: #3c544a; }
.task-topline { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1.25rem; }
.task-symbol { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .9rem; }
.task-symbol .icon { width: 1.5rem; height: 1.5rem; }
.task-time { display: flex; align-items: center; gap: .375rem; font-size: .75rem; color: var(--muted); }
.task-time .icon { width: .875rem; height: .875rem; }
.task-content { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.task-title h3 { font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.task-title p { font-size: .8125rem; color: var(--muted); margin-top: .375rem; }
.reward-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin: 1.25rem 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.reward-row > span { font-size: .75rem; color: var(--faint); }
.reward-row strong { font-size: 1.25rem; font-weight: 600; color: var(--mint); font-variant-numeric: tabular-nums; }
.task-button { width: 100%; justify-content: space-between; margin-top: auto; background: #272c39; color: #e8edf5; border: 1px solid #3c4456; }
.task-button:hover { background: #303a45; border-color: #657d70; }
.featured-task .task-button { background: var(--mint); border-color: var(--mint); color: #142d23; }
.featured-task .task-button:hover { background: #a9edc9; }
.task-button:disabled, .outline-button:disabled { color: var(--mint); background: #243b32; border-color: #3e5e50; }
.lower-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.prize-pool-panel { margin-top: 1.25rem; padding: 1.5rem; background: linear-gradient(160deg, #1c2a2a, #16121f); border: 1px solid #3a5848; }
.prize-pool-panel .panel-heading { margin-bottom: 1rem; }
.prize-pool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; }
.prize-pool-card { display: grid; gap: .25rem; padding: 1rem; border-radius: .75rem; background: #12101b; border: 1px solid var(--line); }
.prize-pool-card .pp-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.prize-pool-card strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.prize-pool-card.weekly strong { color: #a1e8bf; }
.prize-pool-card.monthly strong { color: #f4d58d; }
.prize-pool-card.rank strong { color: #9ec1ff; }
.prize-pool-card small { font-size: .78rem; opacity: .75; }
@media (max-width: 640px) { .prize-pool-grid { grid-template-columns: 1fr; } }
.panel { padding: 1.5rem; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.panel-heading > div { min-width: 0; }
.more-button { border: 0; background: transparent; color: var(--muted); min-width: 2rem; min-height: 2rem; }
.activity-list, .leader-list { margin-top: .875rem; }
.activity-item, .leader-item, .history-item { display: flex; align-items: center; gap: .875rem; padding: 1rem 0; }
.activity-item, .history-item { border-bottom: 1px solid var(--line); }
.activity-item:last-child, .history-item:last-child { border-bottom: none; }
.activity-icon, .history-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .75rem; flex: none; }
.activity-icon .icon, .history-icon .icon { width: 1.125rem; height: 1.125rem; }
.activity-item > div, .leader-item > div:nth-child(3), .history-item > div { min-width: 0; display: grid; gap: .15rem; }
.activity-item strong, .leader-item strong, .history-item strong, .referral-row strong { font-size: .875rem; font-weight: 500; }
.activity-item div > span, .leader-item div > span, .history-item div > span, .referral-row div > span { font-size: .75rem; color: var(--faint); }
.activity-item b, .leader-item b { font-size: .875rem; font-weight: 500; margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.positive { color: var(--mint); }
.rank-num { flex: none; width: 1.5rem; font-size: .8125rem; font-weight: 500; color: var(--faint); }
.gold { color: #edc887; }
.silver { color: #c5d0df; }
.bronze { color: #dda98e; }
.leader-item { padding: .75rem 0; gap: .625rem; }
.your-rank { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .875rem; padding: .875rem 1rem; border-radius: .75rem; background: #232c2a; color: var(--muted); font-size: .8125rem; }
.your-rank strong { color: var(--mint); }
.your-rank small { color: var(--muted); margin-left: .35rem; font-size: .75rem; font-weight: 400; }
.view { display: none; }
.view.active-view { display: block; animation: arrive .22s ease-out; }
@keyframes arrive { from { opacity: .6; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.earn-banner, .rank-hero { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2rem; border: 1px solid #354b41; border-radius: var(--radius); background: linear-gradient(115deg, #21352e, #1a2525); }
.earn-banner h2, .rank-hero h2 { font-size: 1.625rem; margin: .75rem 0 .5rem; letter-spacing: -.015em; }
.earn-banner p, .rank-hero p { color: var(--muted); font-size: 1rem; max-width: 40rem; }
.progress-ring { width: 6.25rem; height: 6.25rem; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 6px solid #3f584b; border-top-color: var(--mint); border-radius: 50%; }
.progress-ring strong { font-size: 1.375rem; color: var(--mint); }
.progress-ring span { font-size: .75rem; color: var(--muted); }
.filter-chip { border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: .5rem .875rem; border-radius: .625rem; font-size: .8125rem; white-space: nowrap; }
.filter-chip span { margin-left: .875rem; }
.all-task-list { display: grid; gap: .875rem; }
.offer-row { display: grid; grid-template-columns: 3rem minmax(0,1fr) auto auto; align-items: center; gap: 1.25rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.offer-logo { width: 3rem; height: 3rem; border-radius: .875rem; display: grid; place-items: center; font-size: 1.125rem; }
.offer-info { min-width: 0; display: grid; gap: .25rem; }
.offer-info strong { font-size: 1rem; font-weight: 500; }
.offer-info span { font-size: .8125rem; color: var(--muted); }
.offer-row > b { color: var(--mint); font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.offer-row .outline-button { min-width: 5.5rem; }
.rank-hero { background: linear-gradient(115deg, #2b263e, #1f2332); border-color: #454059; }
.rank-hero .eyebrow { color: var(--purple); }
.rank-hero .rank-pool { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.1rem; }
.rank-pool-card { display: flex; align-items: center; gap: .7rem; min-width: 11.5rem; padding: .8rem 1.1rem; border-radius: .9rem; background: linear-gradient(140deg, #453a5e, #2c2740); border: 1px solid #5a5178; box-shadow: 0 12px 26px rgba(10, 8, 20, .35); }
.rank-pool-card .rp-emoji { font-size: 1.5rem; line-height: 1; }
.rank-pool-card .rp-text { display: grid; gap: .1rem; }
.rank-pool-card .rp-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; opacity: .72; }
.rank-pool-card strong { font-size: 1.45rem; line-height: 1.15; color: #f4d58d; font-variant-numeric: tabular-nums; }
.rank-pool-card.mint { background: linear-gradient(140deg, #1e3c34, #16261f); border-color: #35544a; }
.rank-pool-card.mint strong { color: #a1e8bf; }
.rank-pool-card small { font-size: .72rem; opacity: .7; }
.rank-trophy { flex: none; display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 1.25rem; color: var(--purple); background: #3a3150; }
.rank-trophy .icon { width: 2.75rem; height: 2.75rem; }
.podium-panel {
  margin-top: 1.5rem; padding: 1.5rem 1.5rem 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 20%, #e8c78008, transparent 65%), var(--surface);
  overflow: hidden;
}
.podium-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.podium-heading h2 { font-size: 1.125rem; }
.podium-heading > span { color: var(--muted); font-size: .8125rem; }
.leader-podium {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end;
  gap: 1rem; max-width: 52rem; margin: 3rem auto 0; padding: 0; list-style: none;
}
.podium-entry { grid-row: 1; min-width: 0; text-align: center; }
.podium-first {
  grid-column: 2; --podium-color: #edcc8b; --podium-rgb: 237, 204, 139; --podium-height: 9.5rem;
}
.podium-second {
  grid-column: 1; --podium-color: #c7d7eb; --podium-rgb: 199, 215, 235; --podium-height: 7rem;
}
.podium-third {
  grid-column: 3; --podium-color: #e1ad8b; --podium-rgb: 225, 173, 139; --podium-height: 5.5rem;
}
.podium-person { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.podium-avatar-wrap { position: relative; margin-bottom: 1rem; }
.podium-avatar {
  width: 4rem; height: 4rem; border: 2px solid var(--podium-color);
  outline: 5px solid rgba(var(--podium-rgb), .06); font-size: 1.125rem;
}
.podium-first .podium-avatar { box-shadow: 0 0 28px rgba(var(--podium-rgb), .12); }
.podium-crown {
  position: absolute; top: -2rem; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center; width: 1.625rem; height: 1.625rem;
  color: var(--podium-color);
}
.podium-crown .icon { width: 1.5rem; height: 1.5rem; }
.podium-person h3 { max-width: 100%; font-size: 1rem; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.podium-country { margin-top: .125rem; font-size: .8125rem; color: var(--muted); }
.podium-earnings {
  margin-top: .625rem; color: var(--podium-color); font-size: 1.375rem;
  font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums;
}
.podium-step {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: var(--podium-height); margin-top: 1.25rem; padding: .75rem .5rem;
  border: 1px solid rgba(var(--podium-rgb), .26); border-bottom: 0;
  border-top: 3px solid var(--podium-color); border-radius: .875rem .875rem 0 0;
  background: linear-gradient(180deg, rgba(var(--podium-rgb), .14), rgba(var(--podium-rgb), .025));
}
.podium-position { color: var(--podium-color); font-size: 2.5rem; font-weight: 600; line-height: 1.2; }
.podium-first .podium-position { font-size: 3.25rem; }
.podium-tasks { margin-top: .375rem; color: var(--muted); font-size: .8125rem; }
@media (max-width: 680px) {
  .podium-panel { padding: 1.25rem .75rem 0; }
  .podium-heading { flex-wrap: wrap; padding-inline: .375rem; gap: .25rem; }
  .podium-heading h2 { font-size: 1rem; }
  .podium-heading > span { font-size: .75rem; }
  .leader-podium { gap: .375rem; margin-top: 2.75rem; }
  .podium-first { --podium-height: 8rem; }
  .podium-second { --podium-height: 6.25rem; }
  .podium-third { --podium-height: 5rem; }
  .podium-avatar { width: 3rem; height: 3rem; font-size: .875rem; outline-width: 3px; }
  .podium-avatar-wrap { margin-bottom: .75rem; }
  .podium-person h3 { min-height: 3em; display: grid; align-content: center; font-size: .875rem; }
  .podium-country { display: none; }
  .podium-earnings { margin-top: .375rem; font-size: 1rem; }
  .podium-step { margin-top: .875rem; border-radius: .625rem .625rem 0 0; padding-inline: .25rem; }
  .podium-position { font-size: 2rem; }
  .podium-first .podium-position { font-size: 2.75rem; }
  .podium-tasks { font-size: .75rem; }
}
.rank-tabs { display: flex; gap: 1.75rem; margin: 1.5rem 0; border-bottom: 1px solid var(--line); }
.rank-tabs button { padding: .875rem .25rem; border: none; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: .875rem; }
.rank-tabs button.active { color: var(--mint); border-bottom-color: var(--mint); }
.full-panel { padding: 0; overflow: hidden; }
.table-head, .table-row { display: grid; grid-template-columns: 3.5rem minmax(0,1.5fr) 5rem minmax(0,1fr) 5.5rem; align-items: center; gap: 1rem; padding: 1.125rem 1.5rem; }
.table-head { color: var(--faint); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; background: #20232e; }
.table-row { color: var(--muted); font-size: .875rem; border-top: 1px solid var(--line); }
.table-row b { color: var(--mint); font-weight: 500; font-variant-numeric: tabular-nums; }
.table-row > :last-child, .table-head > :last-child { text-align: right; }
.table-head > :nth-child(n+3), .table-row > span:not(.rank-num), .table-row > b { text-align: right; justify-self: end; }
.table-row .prize-cell { color: var(--mint); font-weight: 700; font-variant-numeric: tabular-nums; }
.table-row .prize-cell.none { color: var(--faint); font-weight: 500; }
.table-row.you-row .prize-cell { color: #f4d58d; }
.table-row .tasks-extra { color: var(--faint); font-weight: 500; font-size: .72rem; }
.member-cell { min-width: 0; display: flex; align-items: center; gap: .875rem; color: var(--text); }
.member-cell strong { font-size: .875rem; font-weight: 500; }
.you-row { background: #21312b; }
.invite-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; padding: 2.5rem; background: #1b2624; border: 1px solid #33493d; border-radius: var(--radius); }
.invite-copy h2 { font-size: clamp(1.75rem, 2.9vw, 2.5rem); letter-spacing: -.025em; line-height: 1.3; margin: 1rem 0; }
.invite-copy h2 em { color: var(--mint); font-style: normal; }
.invite-copy > p { color: var(--muted); font-size: 1rem; }
.invite-stat { border-left: 2px solid var(--mint); padding-left: 1rem; margin-top: 1.75rem; display: grid; }
.invite-stat strong { font-size: 1.75rem; }
.invite-stat span { color: var(--muted); font-size: .8125rem; }
.invite-card { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.invite-card-top { display: flex; justify-content: space-between; align-items: center; }
.invite-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; background: #2d4539; color: var(--mint); border-radius: .875rem; }
.invite-card h3 { margin: 1.125rem 0 .5rem; font-size: 1.125rem; }
.invite-card p { font-size: .875rem; color: var(--muted); }
.copy-box { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .625rem .75rem; margin-top: 1.125rem; background: #242a35; border: 1px solid #3c4555; border-radius: .75rem; }
.copy-box > span { min-width: 0; overflow-wrap: anywhere; font-size: .875rem; }
.copy-box button { background: transparent; border: none; display: grid; place-items: center; color: var(--mint); width: 2.5rem; height: 2.5rem; flex: none; }
.referral-progress { margin-top: 1.5rem; }
.referral-progress > div:first-child { display: flex; justify-content: space-between; gap: .5rem; color: var(--muted); font-size: .8125rem; }
.referral-progress b { color: var(--mint); }
.progress-bar { height: .5rem; background: #33423a; border-radius: 1rem; margin: .625rem 0; overflow: hidden; }
.progress-bar i { display: block; height: 100%; border-radius: inherit; background: var(--mint); }
.referral-progress small { color: var(--muted); font-size: .75rem; }
.referral-list { padding: .375rem 1.5rem; }
.referral-row { display: grid; grid-template-columns: 2.25rem minmax(0,1fr) auto auto; align-items: center; gap: 1rem; padding: 1.125rem 0; border-bottom: 1px solid var(--line); }
.referral-row:last-child { border: none; }
.referral-row > div:nth-child(2) { display: grid; gap: .25rem; }
.referral-row b { color: var(--mint); font-size: .875rem; }
.status-tag { display: inline-block; font-size: .8125rem; padding: .25rem .65rem; border-radius: .5rem; }
.status-tag.review { color: #f4d58d; background: #3b3117; }
.status-tag.warn { color: #ffb4a8; background: #3d2320; }
.status-tag.paid { color: #a1e8bf; background: #243b32; }
.withdraw-layout { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; gap: 1.25rem; }
.withdraw-panel .panel-heading { flex-wrap: wrap; }
.withdraw-balance { display: grid; gap: .3rem; padding: 1.5rem; margin: 1.5rem 0 1rem; background: #22382f; border: 1px solid #3a5848; border-radius: .875rem; }
.withdraw-panel > .full-width { margin-top: 0; }
.withdraw-balance > span { color: #bdd6c5; font-size: .875rem; }
.withdraw-balance strong { color: #c0f5d6; font-size: 2.5rem; line-height: 1.4; }
.withdraw-balance small { color: #b0c4b8; font-size: .8125rem; }
.field-label { display: block; font-size: .875rem; font-weight: 500; color: var(--text); }
.payment-options { display: grid; gap: .75rem; margin-top: .875rem; }
.payment-option { display: flex; align-items: center; gap: .875rem; padding: 1rem; text-align: left; background: #202430; border: 1px solid #3a4356; border-radius: .75rem; }
.payment-option.selected { background: #23382f; border-color: #688c75; }
.payment-option > span:nth-child(2) { min-width: 0; display: grid; gap: .125rem; }
.payment-option strong { font-size: .875rem; font-weight: 500; }
.payment-option small { font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; }
.payment-logo { width: 2.25rem; height: 2.25rem; flex: none; display: grid; place-items: center; font-size: 1rem; font-weight: 600; border-radius: .625rem; }
.paypal, .gcash { color: #aecffc; background: #294465; }
.bank { color: #d0d6e1; background: #3a4150; }
.check-circle, .empty-circle { display: grid; place-items: center; margin-left: auto; width: 1.25rem; height: 1.25rem; flex: none; border-radius: 50%; font-size: .75rem; }
.check-circle { background: var(--mint); color: #172f22; }
.empty-circle { border: 1px solid #77849a; color: transparent; }
.secure-note { display: flex; align-items: flex-start; gap: .5rem; color: var(--faint); font-size: .75rem; margin-top: 1rem; }
.secure-note .icon { width: 1rem; height: 1rem; margin-top: .125rem; }
.history-item { flex-wrap: wrap; }
.history-item .status-tag { margin-left: auto; }
body.has-withdraw-dialog, body.has-profile-menu { overflow: hidden; }
.profile-menu {
  position: fixed; inset: var(--profile-top, 5.5rem) var(--profile-right, 1.5rem) auto auto;
  width: min(22rem, calc(100% - 2rem)); max-width: none;
  max-height: calc(100dvh - var(--profile-top, 5.5rem) - 1rem);
  margin: 0; padding: .5rem; overflow-y: auto; overscroll-behavior: contain;
  color: var(--text); background: #1a1e28; border: 1px solid #3c4556;
  border-radius: 1.25rem; box-shadow: 0 20px 70px #0008;
}
.profile-menu::backdrop { background: #070a1129; }
.profile-menu[open] { animation: profile-menu-enter .18s ease-out; }
.profile-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .125rem .375rem .25rem .875rem; }
.profile-menu-heading h2 { font-size: .875rem; font-weight: 500; color: #c9d1df; }
.profile-menu-close { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border: 0; border-radius: .75rem; color: var(--muted); background: transparent; }
.profile-menu-close:hover { background: #2a303e; color: var(--text); }
.profile-menu-close svg { width: 1.125rem; height: 1.125rem; }
.profile-menu-identity { display: flex; align-items: center; gap: .75rem; padding: .375rem .875rem 1rem; }
.profile-menu-identity .avatar { width: 3rem; height: 3rem; font-size: .9375rem; }
.profile-menu-identity > div:last-child { min-width: 0; }
.profile-menu-identity strong { display: block; font-size: .9375rem; }
.profile-menu-identity > div > span { display: block; margin-top: .125rem; font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; }
.profile-membership { min-height: 5rem; margin: .25rem .75rem 1rem; padding: 1rem; gap: .75rem; }
.profile-membership:hover { filter: brightness(1.12); }
.profile-membership-icon { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; background: #ffffff09; border: 1px solid #ffffff14; border-radius: .75rem; }
.profile-membership .membership-copy { min-width: 0; gap: .25rem; }
.profile-membership .membership-copy strong { font-size: 1rem; }
.profile-membership-detail { display: flex; align-items: center; gap: .5rem; margin-left: auto; font-size: .75rem; color: #c1d0c8; white-space: nowrap; }
.profile-membership-detail > span { font-size: 1.375rem; line-height: 1; }
.profile-menu-links { margin: 0 .375rem .375rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.profile-menu-link { display: flex; align-items: center; gap: .75rem; min-height: 4.25rem; padding: .75rem; border: 1px solid transparent; border-radius: .875rem; transition: background .15s, border-color .15s; }
.profile-menu-link:hover, .profile-menu-link:focus-visible { background: #252d3b; border-color: #3c485c; outline-offset: 0; }
.profile-menu-link > span:nth-child(2) { display: grid; gap: .125rem; min-width: 0; }
.profile-menu-link strong { font-size: .875rem; font-weight: 500; }
.profile-menu-link small { color: var(--muted); font-size: .75rem; }
.profile-link-icon { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; color: #c1cbdc; background: #272e3c; border-radius: .75rem; }
.profile-link-icon .icon { width: 1.125rem; height: 1.125rem; }
.profile-menu-link.active .profile-link-icon { color: var(--mint); background: #294237; }
.profile-link-arrow { margin-left: auto; color: var(--faint); font-size: 1.375rem; line-height: 1; }
@keyframes profile-menu-enter { from { opacity: 0; transform: translateY(-.375rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes profile-sheet-enter { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: translateY(0); } }
.withdraw-dialog {
  width: min(30rem, calc(100% - 2rem)); max-width: none;
  max-height: calc(100dvh - 2rem); margin: auto; padding: 1.75rem;
  color: var(--text); background: var(--surface); border: 1px solid #3c4554;
  border-radius: 1.5rem; box-shadow: 0 28px 100px #0008;
  overflow-y: auto; overscroll-behavior: contain;
}
.withdraw-dialog::backdrop { background: #070a11b8; backdrop-filter: blur(7px); }
.withdraw-dialog[open] { animation: withdraw-enter .2s ease-out; }
.withdraw-dialog-heading { display: flex; align-items: center; gap: .875rem; margin-bottom: 1.5rem; }
.withdraw-dialog-heading > div { min-width: 0; flex: 1; }
.withdraw-dialog-heading h2 { font-size: 1.25rem; letter-spacing: -.025em; }
.withdraw-dialog-heading p { margin-top: .2rem; font-size: .8125rem; color: var(--muted); }
.withdraw-dialog-icon { display: grid; place-items: center; flex: none; width: 2.875rem; height: 2.875rem; color: var(--mint); background: #263d34; border: 1px solid #355646; border-radius: .875rem; }
.dialog-close { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; margin: -.5rem -.5rem 0 0; align-self: flex-start; border: 0; background: transparent; border-radius: .75rem; color: var(--muted); }
.dialog-close:hover { color: var(--text); background: var(--surface-2); }
.dialog-close svg { width: 1.25rem; height: 1.25rem; }
.modal-balance { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem .75rem; margin-bottom: 1.5rem; padding: .875rem 1rem; background: #22372f; border: 1px solid #385444; border-radius: .875rem; }
.modal-balance span { color: #c0d7c8; font-size: .8125rem; }
.modal-balance strong { color: #b6f0ce; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.amount-label-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .625rem; font-size: .875rem; font-weight: 500; }
.amount-label-row > span { font-size: .75rem; letter-spacing: .06em; color: var(--faint); }
.amount-field { display: flex; align-items: center; gap: .625rem; padding: .5rem 1rem; border: 1px solid #465267; border-radius: .875rem; background: #12161e; transition: border-color .15s, box-shadow .15s; }
.amount-field:focus-within { border-color: var(--mint); box-shadow: 0 0 0 3px #8ee3b518; }
.amount-field > span { font-size: 1.75rem; font-weight: 500; color: var(--muted); }
.amount-field input { width: 100%; min-width: 0; padding: .125rem 0; border: 0; background: transparent; outline: none; box-shadow: none; font-size: 2.5rem; font-weight: 500; letter-spacing: -.035em; line-height: 1.5; font-variant-numeric: tabular-nums; caret-color: var(--mint); }
.amount-field input::placeholder { color: #7f8b9d; opacity: 1; }
.amount-field.is-invalid { border-color: #e99595; }
.amount-field.is-invalid:focus-within { box-shadow: 0 0 0 3px #e9959515; }
.amount-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .625rem; margin-top: .75rem; }
.amount-presets button { min-height: 2.75rem; padding: .5rem .375rem; border: 1px solid #3a4456; border-radius: .625rem; color: #c9d1df; background: #222835; font-size: .875rem; font-weight: 500; transition: background .15s, border-color .15s, color .15s; }
.amount-presets button:hover { background: #2a3c34; border-color: #658b75; color: var(--mint); }
.amount-presets button[aria-pressed="true"] { color: #b6f0ce; background: #294639; border-color: var(--mint); }
.amount-help { color: var(--faint); font-size: .75rem; margin-top: .625rem; }
.amount-error { min-height: 1.25rem; margin-top: .2rem; font-size: .75rem; line-height: 1.5; color: #ffb2b2; }
.modal-payment { margin: .5rem 0 1.25rem; }
.modal-payment .payment-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .625rem; margin-top: .625rem; }
.modal-payment .payment-option { position: relative; flex-direction: column; justify-content: flex-start; align-items: center; gap: .5rem; padding: .875rem .375rem; }
.modal-payment .payment-option:hover { border-color: #688c75; }
.modal-payment .payment-option > span:nth-child(2) { text-align: center; }
.modal-payment .payment-option strong { font-size: .8125rem; line-height: 1.4; }
.modal-payment .payment-option small { display: none; }
.modal-payment .payment-logo { width: 2rem; height: 2rem; }
.modal-payment .payment-logo img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: .45rem; }
.modal-payment .check-circle, .modal-payment .empty-circle { position: absolute; top: .375rem; right: .375rem; width: .875rem; height: .875rem; font-size: .625rem; }
.withdraw-summary { margin: .75rem 0 1.5rem; font-size: .8125rem; }
.withdraw-summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .625rem; }
.withdraw-summary dt { color: var(--muted); flex: none; }
.withdraw-summary dd { margin: 0; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.withdraw-summary dd strong { display: block; font-size: .875rem; font-weight: 500; }
.withdraw-summary dd span { display: block; color: var(--faint); font-size: .75rem; margin-top: .125rem; }
.withdraw-summary .withdraw-total { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--line); align-items: center; }
.withdraw-total dt { color: var(--text); font-size: .875rem; }
.withdraw-total dd { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.withdraw-dialog-actions { display: grid; grid-template-columns: 1fr 1.8fr; gap: .75rem; }
.withdraw-dialog-actions button { min-height: 3rem; padding-inline: .625rem; }
.withdraw-dialog-actions .primary-button:disabled { background: #303a47; border-color: #424e60; color: #b3bdcc; cursor: not-allowed; }
.withdraw-demo-note { margin-top: 1rem; text-align: center; color: var(--faint); font-size: .75rem; }
@keyframes withdraw-enter { from { opacity: 0; transform: translateY(.625rem) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 480px) {
  .withdraw-dialog { padding: 1.25rem; border-radius: 1.25rem; }
  .withdraw-dialog-heading { gap: .625rem; }
  .withdraw-dialog-heading h2 { font-size: 1.125rem; }
  .withdraw-dialog-heading p { font-size: .75rem; }
  .withdraw-dialog-icon { width: 2.5rem; height: 2.5rem; }
  .amount-field input { font-size: 2.125rem; }
  .withdraw-dialog-actions { grid-template-columns: 1fr 1.9fr; gap: .5rem; }
  .withdraw-dialog-actions .primary-button .icon { display: none; }
}
.profile-top { display: flex; align-items: center; gap: 1.25rem; }
.profile-avatar { width: 4.25rem; height: 4.25rem; font-size: 1.25rem; border-radius: 1.25rem; }
.profile-top h2 { font-size: 1.5rem; margin: .3rem 0; }
.profile-top p { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.profile-rank-badge { display: flex; align-items: center; gap: .625rem; margin-left: auto; padding: .625rem .875rem; border: 1px solid #675737; border-radius: .875rem; color: #f2d596; background: #332b1f; }
.profile-rank-badge > .icon { width: 1.5rem; height: 1.5rem; }
.profile-rank-badge > span { display: grid; line-height: 1.35; }
.profile-rank-badge small { color: #b9a57c; font-size: .6875rem; letter-spacing: .06em; }
.profile-rank-badge strong { font-size: 1rem; }
.profile-top .outline-button { margin-left: auto; flex: none; }
.profile-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.25rem; margin-top: 1.25rem; }
.details-list { margin-top: 1rem; }
.details-list > div { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); padding: 1rem 0; font-size: .875rem; }
.details-list > div:last-child { border: none; }
.details-list > div > span { color: var(--muted); }
.details-list strong { font-weight: 400; text-align: right; overflow-wrap: anywhere; }
.details-list .detail-value { display: inline-flex; align-items: center; justify-content: flex-end; gap: .5rem; color: inherit; }
.detail-edit { border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: .72rem; padding: .2rem .6rem; border-radius: 999px; cursor: pointer; transition: color .15s, border-color .15s; }
.detail-edit:hover { color: var(--mint); border-color: var(--mint); }
.detail-name-input { min-width: 0; flex: 1; max-width: 14rem; padding: .35rem .6rem; border-radius: .5rem; border: 1px solid var(--line); background: #12101b; color: inherit; font: inherit; font-size: .875rem; text-align: right; }
.detail-name-input:focus { outline: 2px solid var(--mint); outline-offset: 1px; }
.detail-save, .detail-cancel { border-radius: .5rem; padding: .3rem .7rem; font-size: .78rem; cursor: pointer; }
.detail-save { border: none; background: var(--mint); color: #0c1310; font-weight: 600; }
.detail-cancel { border: 1px solid var(--line); background: transparent; color: var(--muted); }
.profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .75rem; margin-top: 1.75rem; }
.profile-stats > div { display: grid; align-content: center; gap: .5rem; text-align: center; padding: 1.25rem .5rem; background: #222936; border-radius: .75rem; }
.profile-stats strong { color: var(--mint); font-size: 1.375rem; }
.profile-stats span { color: var(--muted); font-size: .75rem; }
.toast { position: fixed; z-index: 30; right: 1.5rem; bottom: 1.5rem; max-width: min(28rem, calc(100vw - 3rem)); display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; color: #d6f5e2; background: #263d33; border: 1px solid #638773; border-radius: .875rem; box-shadow: 0 12px 40px #0005; font-size: .875rem; opacity: 0; visibility: hidden; transform: translateY(1rem); transition: opacity .2s, transform .2s, visibility .2s; }
.toast.show { opacity: 1; visibility: visible; transform: translateY(0); }
.toast-icon { flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--mint); color: #1c3729; font-size: .875rem; }
@media (max-width: 1200px) {
  .sidebar { width: 14.25rem; flex-basis: 14.25rem; padding-inline: .875rem; }
  .page { padding-inline: 1.5rem; }
  .topbar { padding-inline: 1.5rem; }
  .balance-grid, .task-grid, .lower-grid { gap: 1rem; }
  .balance-card, .stat-card, .task-card, .panel { padding: 1.25rem; }
  .balance-grid { grid-template-columns: 1.25fr 1fr 1fr; }
  .balance-value { font-size: 2.625rem; }
  .task-title h3 { min-height: 2.8em; }
  .lower-grid, .profile-grid { grid-template-columns: 1fr; }
  .full-panel { padding: 0; }
  .invite-layout { padding: 1.5rem; gap: 1.5rem; }
  .withdraw-layout { grid-template-columns: 1fr; }
}
@media (max-width: 950px) {
  .sidebar { display: none; }
  .top-actions > .navbar-balance { display: none; }
  .mobile-balance-pill { display: inline-flex !important; }
  .app-shell { display: block; }
  /* Mobile topbar: brand + compact balance on left, actions on right */
  .topbar { grid-template-columns: 1fr auto; gap: .5rem; }
  .topbar-start { display: flex; align-items: center; gap: .625rem; min-width: 0; }
  /* Compact balance pill next to brand */
  .topbar-start > .mobile-balance-pill {
    padding: .35rem .65rem;
    min-height: unset;
    border-radius: .75rem;
    gap: .4rem;
    flex-shrink: 0;
  }
  .topbar-start > .mobile-balance-pill .navbar-balance-icon { width: 1.5rem; height: 1.5rem; border-radius: .45rem; }
  .topbar-start > .mobile-balance-pill .navbar-balance-icon .icon { width: .9rem; height: .9rem; }
  .topbar-start > .mobile-balance-pill .navbar-balance-copy > span { display: none; }
  .topbar-start > .mobile-balance-pill .navbar-balance-copy strong { font-size: .875rem; }
  .topbar-start > .mobile-balance-pill .navbar-balance-copy small { font-size: .7rem; }
  .mobile-brand { display: flex; font-size: 1.375rem; }
  .mobile-brand .brand-mark { width: 2.25rem; height: 2.25rem; }
  .breadcrumb { display: none; }
  .mobile-nav { position: fixed; z-index: 50; bottom: 0; left: 0; right: 0; width: 100%; display: flex !important; justify-content: space-around !important; align-items: center !important; padding: .35rem .2rem max(.5rem, env(safe-area-inset-bottom)) !important; border-top: 1px solid rgba(255, 255, 255, 0.08); background: rgba(18, 16, 28, 0.96) !important; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45); box-sizing: border-box !important; }
  .mobile-nav a, .mobile-nav > button { flex: 1 1 0 !important; min-width: 0 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: .2rem !important; min-height: 3rem; padding: .25rem .1rem !important; border: 0; background: transparent; border-radius: .75rem; color: #8f8b9d; text-decoration: none; transition: all .2s cubic-bezier(0.4, 0, 0.2, 1); box-sizing: border-box !important; }
  .mobile-nav a span:last-child, .mobile-nav > button span:last-child { font-size: .625rem !important; font-weight: 500; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; text-align: center; }
  .mobile-nav a:hover, .mobile-nav > button:hover { color: #f4f5f8; background: rgba(255, 255, 255, 0.04); }
  .mobile-nav a.active, .mobile-nav > button.active { color: var(--mint, #4be0a5); background: rgba(75, 224, 165, 0.12); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(75, 224, 165, 0.2); }
  .mobile-nav .icon { width: 1.25rem; height: 1.25rem; flex: none; display: grid; place-items: center; }
  .mobile-nav .icon svg { width: 100%; height: 100%; }
  .mobile-nav a.active .icon { transform: scale(1.08); }
  .profile-menu { inset: auto 0 max(1rem, env(safe-area-inset-bottom)) 0; width: min(26rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem - env(safe-area-inset-bottom)); margin: 0 auto; padding: .625rem; border-radius: 1.5rem; }
  .profile-menu::backdrop { background: #070a118a; backdrop-filter: blur(3px); }
  .profile-menu[open] { animation-name: profile-sheet-enter; }
  .profile-stats { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: .75rem !important; }
  .profile-stats > div { display: grid; align-content: center; gap: .375rem; text-align: center; padding: 1rem .5rem; background: #222936; border-radius: .75rem; min-width: 0; }
  .profile-stats > div:last-child { grid-column: 1 / -1 !important; }
  .profile-stats strong { color: var(--mint); font-size: clamp(0.95rem, 3.5vw, 1.25rem); line-height: 1.25; word-break: break-word; overflow-wrap: anywhere; }
  .profile-stats span { color: var(--muted); font-size: .75rem; }
  .toast { bottom: 6.5rem; }
}
@media (max-width: 680px) {
  .topbar { min-height: 4.5rem; padding: .875rem 1.125rem; }
  .top-actions { gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
  .currency-trigger { min-width: 3.25rem; }
  .page { padding: 1.75rem 1.125rem 7rem; }
  .page-heading { flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1.5rem; }
  .page-heading .primary-button { width: 100%; }
  .page-heading h1 { font-size: 1.625rem; }
  .eyebrow { letter-spacing: .06em; }
  .balance-grid { grid-template-columns: 1fr; gap: .875rem; }
  .balance-card { grid-column: 1/-1; padding: 1.5rem; }
  .balance-value { font-size: 3rem; }
  .stat-card { padding: 1rem; }
  .stat-card strong { font-size: 1.625rem; }
  .stat-icon { width: 2.5rem; height: 2.5rem; }
  .stat-note { font-size: .75rem; }
  .card-label { font-size: .875rem; }
  .section-row { gap: .75rem; align-items: flex-start; margin-top: 2rem; }
  .section-row .section-note { max-width: 16rem; }
  .section-row .text-link { font-size: .8125rem; }
  .task-grid { grid-template-columns: 1fr; }
  .task-card { padding: 1.25rem; }
  .task-topline { margin-bottom: 1rem; }
  .task-title h3 { min-height: 0; font-size: 1.0625rem; }
  .reward-row { margin: 1rem 0; padding-top: .875rem; }
  .lower-grid { margin-top: 1.5rem; }
  .panel { padding: 1.25rem; }
  .panel-heading { gap: .5rem; }
  .panel-heading .text-link { font-size: .8125rem; }
  .activity-item, .leader-item { gap: .5rem; }
  .leader-item b { font-size: .8125rem; }
  .leader-item .rank-num { width: 1.125rem; }
  .leader-item strong { font-size: .8125rem; }
  .leader-item .avatar { width: 2rem; height: 2rem; }
  .activity-item > b { font-size: .8125rem; }
  .earn-banner, .rank-hero { padding: 1.5rem; flex-wrap: wrap; }
  .earn-banner h2, .rank-hero h2 { font-size: 1.5rem; }
  .progress-ring { width: 5rem; height: 5rem; }
  .offer-row { grid-template-columns: 2.75rem minmax(0,1fr) auto; gap: .75rem; padding: 1.125rem; }
  .offer-logo { width: 2.75rem; height: 2.75rem; }
  .offer-info strong { font-size: .875rem; }
  .offer-info span { font-size: .75rem; }
  .offer-row > b { font-size: 1rem; }
  .offer-row .outline-button { grid-column: 1/-1; width: 100%; }
  .rank-trophy { width: 4rem; height: 4rem; }
  .rank-trophy .icon { width: 2rem; height: 2rem; }
  .rank-tabs { gap: 1.5rem; }
  .full-panel { padding: 0; }
  .table-head, .table-row { grid-template-columns: 2rem minmax(0,1fr) auto; gap: .5rem; padding: 1rem; }
  .table-head > :nth-child(3), .table-row > :nth-child(3),
  .table-head > :nth-child(4), .table-row > :nth-child(4) { display: none; }
  .member-cell { gap: .5rem; }
  .member-cell strong { font-size: .8125rem; }
  .member-cell .avatar { width: 1.75rem; height: 1.75rem; }
  .table-row b { font-size: .8125rem; }
  .invite-layout { grid-template-columns: 1fr; padding: 1.25rem; }
  .invite-card { padding: 1.25rem; }
  .invite-copy h2 { font-size: 1.875rem; }
  .referral-row { grid-template-columns: 2.25rem minmax(0,1fr) auto; gap: .75rem; }
  .referral-row .status-tag { grid-column: 2; justify-self: start; }
  .profile-top { flex-wrap: wrap; gap: 1rem; }
  .profile-top > div:nth-child(2) { flex: 1; min-width: 0; }
  .profile-rank-badge { width: 100%; margin-left: 0; justify-content: center; }
  .profile-top h2 { font-size: 1.125rem; }
  .profile-top .eyebrow { font-size: .75rem; }
  .profile-top .outline-button { width: 100%; margin-left: 0; }
  .profile-avatar { width: 3.5rem; height: 3.5rem; }
  .details-list > div { grid-template-columns: 1fr; gap: .375rem; }
  .details-list strong { text-align: left; }
  .details-list .detail-value { justify-content: flex-start; }
  .detail-name-input { text-align: left; }
  .profile-stats { gap: .5rem !important; grid-template-columns: 1fr 1fr !important; }
  .profile-stats > div { padding: .875rem .4rem; min-width: 0; }
  .profile-stats > div:last-child { grid-column: 1 / -1 !important; }
  .profile-stats strong { font-size: clamp(0.9rem, 3.8vw, 1.15rem); line-height: 1.25; word-break: break-word; overflow-wrap: anywhere; }
  .profile-stats span { font-size: .6875rem; }
}
@media (max-width: 560px) {
  .topbar { column-gap: .625rem; padding-block: .75rem; }
}
@media (max-width: 360px) {
  .page, .topbar { padding-inline: .875rem; }
  .topbar .mobile-brand { gap: .5rem; }
  .topbar .mobile-brand .brand-mark { width: 2rem; height: 2rem; }
  .topbar .mobile-brand > span { display: none; }
  .section-row { flex-wrap: wrap; }
  .mobile-nav { padding-inline: .25rem; }
  .panel, .task-card { padding: 1rem; }
  .profile-membership { padding: .875rem .75rem; margin-inline: .375rem; gap: .625rem; }
  .profile-membership-detail { font-size: .6875rem; gap: .25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.boot-splash #authPage,.boot-splash #appShell,.boot-splash #mobileNavigation{display:none!important}
#bootHold{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:var(--bg,#101218);color:#8f89ad;font-weight:600;letter-spacing:.4em;font-size:1.125rem}

/* Member tiers: Starter / Bronze / Silver / Gold / Diamond */
.tier-block { display: flex; flex-direction: column; gap: .25rem; align-items: flex-start; width: 100%; }
.tier-chip { display: inline-flex; align-items: center; gap: .375rem; padding: .1875rem .625rem; border-radius: 999px; font-size: .75rem; font-weight: 600; border: 1px solid; white-space: nowrap; }
.tier-starter { color: #b5b2c9; border-color: #3a3950; background: #20202e; }
.tier-bronze { color: #e2a06a; border-color: #6b4a2f; background: #2a1f18; }
.tier-silver { color: #d7dbe6; border-color: #5a6172; background: #23262f; }
.tier-gold { color: #ffd679; border-color: #8a6d2f; background: linear-gradient(135deg, #33290f, #1d1a12); box-shadow: 0 0 14px #ffd67926; }
.tier-diamond { color: #9beaff; border-color: #37788d; background: linear-gradient(135deg, #0f2c33, #12303f); box-shadow: 0 0 16px #9beaff2e; }
.tier-progress { display: block; width: min(14rem, 100%); height: .375rem; border-radius: 999px; background: #26263a; overflow: hidden; }
.tier-progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4831d4, #b4a5ff); transition: width .5s ease; }
[data-tier="gold"] .tier-progress i { background: linear-gradient(90deg, #b98a2f, #ffd679); }
[data-tier="diamond"] .tier-progress i { background: linear-gradient(90deg, #2e6a7d, #9beaff); }
[data-tier="bronze"] .membership-badge, [data-tier="silver"] .membership-badge, [data-tier="gold"] .membership-badge, [data-tier="diamond"] .membership-badge { border-color: #4a3f6e; }
.tier-note { font-size: .6875rem; color: #8f89ad; font-weight: 500; }
#profileMemberDetails { display: flex; flex-direction: column; gap: .375rem; align-items: flex-start; }
#profileMemberDetails strong { font-weight: 500; }
