:root {
  --brand-900: #0a0a0a;
  --brand-800: #111111;
  --brand-700: #1c1c1c;
  --brand-600: #2a2a2a;
  --brand-500: #3d3d3d;
  --brand-400: #525252;
  --brand-300: #737373;
  --brand-200: #d4d4d4;
  --brand-100: #f0f0f0;
  --green-900: var(--brand-900);
  --green-800: var(--brand-800);
  --green-700: var(--brand-700);
  --green-600: var(--brand-600);
  --green-500: var(--brand-500);
  --green-400: var(--brand-400);
  --green-300: var(--brand-300);
  --green-200: var(--brand-200);
  --green-100: var(--brand-100);
  --bg: #f4f4f4;
  --card: #ffffff;
  --text: #0d0d0d;
  --muted: #667085;
  --line: #ececec;
  --success: #1f8f57;
  --danger: #e85d6a;
  --warn: #f59e0b;
  --nav-h: 64px;
  --app-w: 480px;
  --z-nav: 100;
  --z-fab: 120;
  --z-modal: 20000;
  --z-toast: 30000;
  --gold: #d4a017;
  --pix: #0077b6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  min-height: 100dvh;
  background: #e6e6e6;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

#app {
  min-height: 100dvh;
}

.app-shell {
  max-width: var(--app-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow-x: clip;
}

.app-shell--auth {
  background: #fff;
}

.page {
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
}

.page--auth {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

/* ---------- Auth ---------- */
.auth-header {
  position: relative;
  padding: 58px 24px 72px;
  background: linear-gradient(135deg, #111111 0%, #2a2a2a 55%, #3d3d3d 100%);
  text-align: center;
  color: #fff;
}

.auth-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 36px;
  background: #fff;
  border-radius: 32px 32px 0 0;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.auth-brand__logo {
  width: 40px;
  height: 40px;
  padding: 5px;
  object-fit: contain;
  background: #fff;
  border-radius: 9px;
}

.auth-sub {
  margin-top: 8px;
  font-size: 15px;
  opacity: 0.95;
}

.auth-card {
  margin-top: -20px;
  padding: 8px 28px 32px;
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 32px 32px 0 0;
}

.auth-card h1 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
}

.input-group {
  margin-bottom: 14px;
}

.input-pill {
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  border: 1px solid #dcdcdc;
  border-radius: 26px;
  background: #fff;
  overflow: hidden;
}

.input-pill:focus-within {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(38, 214, 147, 0.15);
}

.input-pill__prefix {
  flex-shrink: 0;
  padding: 0 14px 0 18px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  border-right: 1px solid #e8e8e8;
  height: 28px;
  line-height: 28px;
}

.input-pill input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 16px;
  font-size: 16px;
  color: #333;
  background: transparent;
}

.input-hint {
  font-size: 11px;
  color: #9ca3af;
  margin: 6px 0 4px 18px;
}

.toggle-pass {
  flex-shrink: 0;
  min-width: 52px;
  height: 100%;
  border: none;
  background: none;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  padding-right: 12px;
}

.invite-box {
  background: #fef9c3;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.invite-box__label {
  font-size: 14px;
  font-weight: 600;
  color: #78716c;
  margin-bottom: 10px;
}

.captcha-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.captcha-row .input-pill {
  flex: 1;
}

.captcha-box {
  flex-shrink: 0;
  width: 120px;
  height: 52px;
  border-radius: 26px;
  border: 1px solid #dcdcdc;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--green-800);
  cursor: pointer;
  user-select: none;
}

.reward-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #f4f4f4;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #111111;
}

.auth-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.auth-footer a,
.link {
  color: var(--green-800);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 26px;
  height: 48px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
}

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

.btn-primary {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #111111 0%, #2a2a2a 55%, #3d3d3d 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.btn-dark {
  background: #111;
  color: #fff;
}

.btn-ghost {
  background: #f4f4f4;
  color: #333;
}

.btn-outline {
  background: #fff;
  color: var(--green-800);
  border: 1px solid #d6d6d6;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-row .btn {
  flex: 1;
  min-width: 120px;
}

/* ---------- Home ---------- */
.home-top {
  background: linear-gradient(180deg, #111111 0%, #1c1c1c 55%, #f4f4f4 100%);
  padding: 16px 14px 0;
}

.balance-card {
  background: linear-gradient(135deg, #0a0a0a 0%, #1c1c1c 45%, #2a2a2a 100%);
  border-radius: 20px;
  padding: 20px 18px 16px;
  color: #fff;
  margin-bottom: 14px;
}

.balance-card__label {
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0.85;
  font-weight: 600;
}

.balance-card__amount {
  font-size: 32px;
  font-weight: 700;
  margin: 8px 0 16px;
  line-height: 1.2;
}

.balance-card__stats {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.balance-card__stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
}

.balance-card__stat-label {
  font-size: 11px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.balance-card__stat-value {
  font-size: 15px;
  font-weight: 700;
}

.balance-card__stat-value--up {
  color: #ffffff;
}

.balance-card__footer {
  font-size: 12px;
  opacity: 0.75;
}

.quick-actions {
  display: flex;
  justify-content: space-between;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 18px 8px 14px;
}

.quick-actions button,
.quick-actions a {
  flex: 1;
  text-align: center;
  background: none;
  border: none;
  color: #333;
  text-decoration: none;
}

.quick-actions__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-actions__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.quick-actions__icon--recharge { background: #f0f0f0; }
.quick-actions__icon--withdraw { background: #fff3e6; }
.quick-actions__icon--team { background: #e8f0ff; }
.quick-actions__icon--activity { background: #fff8e6; }

.quick-actions__label {
  font-size: 12px;
  font-weight: 500;
  color: #444;
}

.home-body {
  padding: 0 14px 14px;
}

.guide-scroll,
.products-scroll,
.h-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.guide-scroll::-webkit-scrollbar,
.products-scroll::-webkit-scrollbar,
.h-scroll::-webkit-scrollbar {
  display: none;
}

.guide-card {
  flex: 0 0 110px;
  background: #fff;
  border-radius: 14px;
  padding: 16px 14px;
  border: none;
  text-align: left;
  color: inherit;
}

.guide-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.guide-card__num {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-card__title {
  font-size: 12px;
  font-weight: 700;
}

.guide-card__desc {
  font-size: 11px;
  color: #9ca3af;
}

.invest-banner,
.list-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: linear-gradient(135deg, rgb(11, 46, 31) 0%, rgb(30, 75, 58) 40%, rgb(30, 131, 90) 100%);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 8px 0 14px;
  border: none;
  color: #fff;
  text-align: left;
}

.invest-banner__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.invest-banner__icon img {
  width: 22px;
  height: 22px;
}

.invest-banner__text {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}

.rewards-card,
.card {
  display: block;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  border: none;
  text-align: left;
  color: inherit;
}

.rewards-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.rewards-card__head img {
  width: 30px;
  height: 30px;
}

.rewards-card__title,
.section-title {
  font-size: 16px;
  font-weight: 700;
}

.muted {
  font-size: 13px;
  color: var(--muted);
}

.progress {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin: 10px 0 8px;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 3px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 12px;
}

.section-head .link {
  font-size: 14px;
}

.product-card {
  flex: 0 0 280px;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  border: none;
  border-left: 3px solid var(--brand-800);
  overflow: hidden;
  text-align: left;
  color: inherit;
  padding: 10px 10px 10px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-card--full {
  flex: none;
  width: 100%;
  margin-bottom: 12px;
}

.product-card__thumb {
  width: 72px;
  height: 72px;
  margin: 0 10px 0 6px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--brand-800);
  flex-shrink: 0;
}

.product-card__body {
  flex: 1;
  min-width: 0;
  padding: 2px 4px;
}

.product-card__name {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.product-card__profit {
  font-size: 18px;
  font-weight: 800;
  color: var(--success);
}

.product-card__profit span {
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
}

.product-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #8a93a0;
  margin-top: 6px;
}

.product-card__chev {
  color: #c5c5c5;
  flex-shrink: 0;
  display: flex;
}

.product-card__chev svg {
  width: 18px;
  height: 18px;
}

.product-card__meta .badge-roi {
  border-radius: 10px;
  padding: 2px 7px;
  font-size: 11px;
}

/* ---------- Catalog (Produtos) ---------- */
.page--catalog {
  background: var(--bg);
}

.cat-hero {
  background: var(--brand-800);
  padding: 18px 16px 40px;
}

.cat-hero__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.cat-hero h1 {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.cat-saldo {
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.cat-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 16px 8px;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  text-align: center;
  color: inherit;
}

.cat-summary:active {
  transform: scale(0.99);
}

.cat-summary span {
  display: block;
  font-size: 11px;
  color: #9aa3ad;
  font-weight: 700;
  letter-spacing: 0.7px;
  margin-bottom: 6px;
}

.cat-summary b {
  font-size: 18px;
  font-weight: 800;
  color: #111;
}

.cat-summary b.is-gain {
  color: var(--success);
}

.cat-list {
  padding: 20px 14px 8px;
}

@media (max-width: 360px) {
  .cat-summary b { font-size: 15px; }
  .cat-saldo { font-size: 11px; padding: 6px 10px; }
  .product-card__thumb { width: 64px; height: 64px; }
  .product-card__profit { font-size: 16px; }
}

.ticker {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  height: 42px;
  overflow: hidden;
}

.ticker-track {
  animation: ticker 18s linear infinite;
}

.ticker-item {
  font-size: 12px;
  color: #555;
  height: 22px;
  line-height: 22px;
}

@keyframes ticker {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.invite-section {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
}

.invite-section img {
  width: 35px;
  height: 35px;
}

.invite-section__info {
  flex: 1;
  min-width: 0;
}

.invite-section__title {
  font-size: 14px;
  font-weight: 600;
}

.invite-section .btn {
  height: 36px;
  padding: 0 16px;
  font-size: 12px;
  flex-shrink: 0;
  width: auto;
}

/* ---------- Nav ---------- */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-w);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  z-index: var(--z-nav);
}

.bottom-nav button {
  flex: 1;
  border: none;
  background: none;
  color: #4f5b6d;
  font-size: 11px;
  padding-top: 8px;
}

.bottom-nav button.is-active {
  color: var(--brand-800);
}

.bottom-nav svg {
  display: block;
  margin: 0 auto 4px;
  width: 22px;
  height: 22px;
}

/* ---------- Subpages ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar h1 {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content {
  padding: 14px;
}

.profile-hero {
  background: linear-gradient(135deg, #111111 0%, #2a2a2a 100%);
  color: #fff;
  padding: 24px 16px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}

.menu-list button,
.menu-list a {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 16px;
  text-align: left;
  font-size: 15px;
}

.menu-list button span:last-child,
.chev {
  margin-left: auto;
  color: #bbb;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.stat-box {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
}

.stat-box strong {
  display: block;
  font-size: 18px;
  margin-top: 4px;
}

.tx-item,
.mission-item,
.member-item {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tx-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tx-in { color: var(--success); font-weight: 700; }
.tx-out { color: var(--danger); font-weight: 700; }

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.chip {
  flex-shrink: 0;
  border: none;
  background: #fff;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.chip.is-on {
  background: var(--green-800);
  color: #fff;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.amount-grid button {
  height: 44px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 12px;
  font-weight: 700;
}

.amount-grid button.is-on {
  border-color: var(--green-400);
  color: var(--green-800);
  background: #f4f4f4;
}

.field {
  width: 100%;
  height: 48px;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  padding: 0 14px;
  margin: 8px 0 14px;
  outline: none;
}

.field:focus {
  border-color: var(--green-300);
}

.code-box {
  background: #111;
  color: #fff;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 20px;
  margin: 10px 0;
}

/* ---------- States ---------- */
.state {
  padding: 40px 20px;
  text-align: center;
  color: #666;
}

.state h2 {
  font-size: 16px;
  margin: 8px 0;
  color: #111;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e5e5e5;
  border-top-color: var(--brand-800);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin .8s linear infinite;
}

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

.skel {
  background: linear-gradient(90deg, #eee 25%, #f7f7f7 37%, #eee 63%);
  background-size: 400% 100%;
  animation: skel 1.2s ease infinite;
  border-radius: 12px;
}

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

/* ---------- Modal (root-cause fix: portal, flex, no !important hide hacks) ---------- */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-root[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(90dvh, 640px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 16px;
  margin: 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
}

.modal-dialog--center {
  border-radius: 16px;
  margin: 16px;
  max-width: calc(100% - 32px);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-right: 36px;
}

.modal-body {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 16px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: #ececec;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: #111;
  z-index: 2;
  cursor: pointer;
}

.modal-root:has(.modal-dialog--welcome) {
  align-items: center;
  padding: 16px;
}

.modal-dialog--welcome {
  width: min(100%, 400px);
  max-height: min(88dvh, 640px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  margin: 0;
  padding: 22px 20px 18px;
  animation: welcomeIn 0.22s ease;
}

.modal-dialog--welcome .modal-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #111;
  flex-shrink: 0;
}

.modal-dialog--welcome .modal-body {
  margin-bottom: 0;
  color: #222;
  overflow: auto;
  min-height: 0;
  flex: 1;
  padding-right: 2px;
}

.modal-dialog--pix {
  width: min(100%, 400px);
  max-height: min(88dvh, 640px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-dialog--pix .modal-body {
  overflow: auto;
  min-height: 0;
  flex: 1;
}

.modal-dialog--pix .btn-row {
  flex-shrink: 0;
  flex-wrap: wrap;
}

.welcome p {
  margin-bottom: 10px;
  color: #222;
}

.welcome-logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.welcome-list {
  list-style: none;
  margin: 6px 0 16px;
}

.welcome-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  color: #222;
}

.welcome-dot {
  width: 8px;
  height: 8px;
  margin: 7px 4px 0;
  flex-shrink: 0;
}

.btn-welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  height: auto;
  padding: 10px 16px;
  border: none;
  border-radius: 24px;
  background: var(--brand-800);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  margin-bottom: 10px;
}

.btn-welcome:active {
  transform: scale(0.99);
}

.welcome-note {
  font-size: 11px;
  color: #9aa3ad;
  text-align: center;
  margin: 4px 0 0;
  line-height: 1.4;
}

.pix-deposit {
  text-align: center;
}

.pix-deposit__amt {
  font-size: 22px;
  font-weight: 800;
  margin: 4px 0 12px;
  color: #111;
}

.pix-deposit__qr {
  display: block;
  width: min(220px, 70vw);
  height: auto;
  aspect-ratio: 1;
  margin: 8px auto 14px;
  background: #fff;
}

.pix-deposit__fail {
  margin: 16px 0;
  font-weight: 700;
  color: #b45309;
}

.pix-deposit__code {
  text-align: left;
  font-size: 12px;
  word-break: break-all;
  max-height: 140px;
}

@keyframes welcomeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

body.modal-open {
  overflow: hidden;
}

@media (min-width: 480px) {
  .modal-root {
    align-items: center;
  }
  .modal-dialog {
    border-radius: 16px;
    margin: 0;
  }
}

/* ---------- Toast ---------- */
.toast-root {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  width: calc(100% - 40px);
  max-width: 400px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
}

.toast.is-error {
  border-color: #f3c4c8;
}

.toast.is-ok {
  border-color: #d6d6d6;
}

.fab {
  position: fixed;
  right: max(10px, calc(50% - var(--app-w) / 2 + 10px));
  bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom, 0px));
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 16px;
  background: #fff;
  z-index: var(--z-fab);
  padding: 0;
}

.fab img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.checkin-fab {
  bottom: calc(var(--nav-h) + 76px + env(safe-area-inset-bottom, 0px));
  background: var(--green-800);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.group-fab-wrap {
  position: fixed;
  right: max(10px, calc(50% - var(--app-w) / 2 + 10px));
  bottom: calc(var(--nav-h) + 136px + env(safe-area-inset-bottom, 0px));
  z-index: calc(var(--z-fab) + 2);
  width: 50px;
}

.group-fab {
  position: static;
  width: 50px;
  height: 50px;
  background: var(--brand-800);
  color: #fff;
}

.group-fab svg {
  width: 22px;
  height: 22px;
  margin: 0 auto;
}

.group-pop {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(220px, calc(100vw - 28px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  z-index: 2;
}

.group-pop p {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #111;
}

.group-pop .btn {
  width: 100%;
}

.badge {
  display: inline-block;
  background: #ff3838;
  color: #fff;
  border-radius: 10px;
  font-size: 10px;
  padding: 1px 6px;
  margin-left: 6px;
}

.note {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 10px;
  line-height: 1.4;
}

@media (max-width: 360px) {
  .balance-card__amount { font-size: 26px; }
  .auth-card { padding-left: 18px; padding-right: 18px; }
  .product-card { flex-basis: 230px; }
  .qa-grid { gap: 8px; }
  .pd-stat span { font-size: 10px; }
  .pd-stat strong { font-size: 12px; }
  .pd-hero { min-height: 200px; height: 38vh; }
  .btn-buy { padding: 0 12px; font-size: 13px; }
  .pd-journey-card { margin-left: 10px; margin-right: 10px; }
  .pd-node b { font-size: 11px; }
  .btn-share { font-size: 13px; }
}

/* ---------- Topbar variants ---------- */
.topbar--green h1 {
  color: var(--green-800);
  font-size: 17px;
}

.topbar--plain {
  background: var(--bg);
  border-bottom: none;
}

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

.icon-btn--card {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: var(--green-800);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

/* ---------- Support popover ---------- */
.fab-kefu {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid #d6d6d6;
  color: var(--brand-800);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.fab-kefu svg {
  width: 26px;
  height: 26px;
}

.kefu[hidden] {
  display: none;
}

.kefu {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-fab) + 10);
}

.kefu-mask {
  position: absolute;
  inset: 0;
  border: none;
  background: transparent;
}

.kefu-menu {
  position: absolute;
  right: max(10px, calc(50% - var(--app-w) / 2 + 10px));
  bottom: calc(var(--nav-h) + 74px + env(safe-area-inset-bottom, 0px));
  width: min(268px, calc(100vw - 28px));
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  animation: kefuIn 0.18s ease;
}

.page:has(.checkin-fab) .kefu-menu {
  bottom: calc(var(--nav-h) + 134px + env(safe-area-inset-bottom, 0px));
}

@keyframes kefuIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.kefu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  padding: 14px 14px;
  text-align: left;
}

.kefu-item:last-child {
  border-bottom: none;
}

.kefu-item:active {
  background: #f7f8f8;
}

.kefu-item__label {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.kefu-item .chev {
  width: 18px;
  color: #c5c5c5;
}

.tg-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2aabee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tg-ico svg {
  width: 16px;
  height: 16px;
}

/* ---------- Profile (Meu) ---------- */
.page--profile {
  background: var(--bg);
}

.me-hero {
  background: linear-gradient(180deg, #111111 0%, #1c1c1c 70%, var(--bg) 100%);
  padding: 20px 14px 8px;
}

.me-user {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  margin-bottom: 14px;
}

.me-user strong {
  display: block;
  font-size: 18px;
}

.me-user p {
  opacity: 0.85;
  font-size: 13px;
  margin-top: 2px;
}

.avatar--crown {
  background: linear-gradient(135deg, #f5d76e, #c9a227);
  color: #5c4300;
}

.avatar--crown svg {
  width: 28px;
  height: 28px;
}

.vip-chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: linear-gradient(135deg, #ffe08a, #d4a017);
  color: #5c4300;
  border-radius: 20px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 0 18px rgba(212, 160, 23, 0.55);
}

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

.me-balance {
  background: linear-gradient(135deg, #0a0a0a 0%, #2a2a2a 100%);
  border-radius: 20px;
  padding: 18px 16px 16px;
  color: #fff;
}

.me-balance__label {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.8;
  font-weight: 700;
}

.me-balance__amount {
  font-size: 30px;
  font-weight: 800;
  margin: 6px 0 14px;
}

.me-balance__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.me-balance__stats > div {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
}

.me-balance__stats span {
  display: block;
  font-size: 11px;
  opacity: 0.75;
  margin-bottom: 4px;
}

.me-balance__stats b {
  color: #ffffff;
  font-size: 15px;
}

.me-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pill-btn {
  height: 42px;
  border: none;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}

.pill-btn svg {
  width: 18px;
  height: 18px;
}

.pill-btn--mint {
  background: var(--brand-800);
  color: #fff;
}

.pill-btn--ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.section-kicker {
  font-size: 11px;
  letter-spacing: 0.8px;
  color: #9aa3ad;
  font-weight: 700;
  margin: 8px 0 10px;
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.qa-cell {
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 16px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #333;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.qa-ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-ico svg {
  width: 20px;
  height: 20px;
}

.qa-ico--teal { background: #f0f0f0; color: #3d3d3d; }
.qa-ico--blue { background: #e8f1ff; color: #3b82f6; }
.qa-ico--orange { background: #fff1e6; color: #f59e0b; }
.qa-ico--red { background: #fdecec; color: #e85d6a; }
.qa-ico--gray { background: #f1f2f4; color: #6b7280; }

.menu-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.menu-card button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 15px 14px;
  text-align: left;
  font-size: 15px;
}

.menu-card button:last-child {
  border-bottom: none;
}

.menu-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-ico svg {
  width: 18px;
  height: 18px;
}

.menu-ico--green { background: #f0f0f0; color: #111111; }
.menu-ico--teal { background: #f0f0f0; color: #3d3d3d; }
.menu-ico--orange { background: #fff1e6; color: #f59e0b; }
.menu-ico--gray { background: #f1f2f4; color: #6b7280; }

.btn-logout {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 16px;
  background: var(--green-800);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  margin: 8px 0 24px;
}

/* ---------- VIP levels ---------- */
.level-rules {
  background: linear-gradient(135deg, #111111 0%, #2a2a2a 100%);
  color: #fff;
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 12px;
}

.level-rules h2 {
  font-size: 13px;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.level-rules p {
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.95;
  margin-bottom: 8px;
}

.level-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.level-stats > div {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}

.level-stats span {
  display: block;
  font-size: 10px;
  color: #9aa3ad;
  margin-bottom: 4px;
}

.level-stats b {
  color: var(--green-800);
  font-size: 15px;
}

.vip-row {
  display: flex;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
  min-height: 92px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.vip-badge {
  width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.vip-badge__n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.vip-row__body {
  flex: 1;
  min-width: 0;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
}

.vip-row__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.vip-row__meta span {
  display: block;
  font-size: 11px;
  color: #9aa3ad;
}

.vip-row__meta b {
  font-size: 14px;
}

.is-gold {
  color: var(--gold);
}

.vip-progress {
  height: 4px;
  background: #eee;
  border-radius: 4px;
  margin-top: 12px;
  overflow: hidden;
}

.vip-progress span {
  display: block;
  height: 100%;
  background: var(--green-400);
  border-radius: 4px;
}

.vip-progress__n {
  text-align: right;
  font-size: 11px;
  color: #9aa3ad;
  margin-top: 4px;
}

/* ---------- Team ---------- */
.page--team {
  background: var(--bg);
}

.invite-card__label {
  font-size: 11px;
  letter-spacing: 0.8px;
  color: #9aa3ad;
  font-weight: 700;
}

.invite-card {
  overflow: visible;
}

.invite-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.invite-card__head strong {
  display: block;
  font-size: clamp(20px, 6vw, 26px);
  letter-spacing: 0.3px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.btn-share {
  width: 100%;
  height: 48px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 15px;
  color: #fff;
}

.btn-share__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.btn-share svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
}

.icon-btn--ghost {
  color: #6b7280;
  flex-shrink: 0;
}

.invite-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.invite-pills--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.invite-n1 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pill--mint-soft {
  background: #d1fae5;
  color: #065f46;
}

.pill {
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.pill--mint {
  background: var(--brand-800);
  color: #fff;
}

.pill--gray {
  background: #eceff1;
  color: #333;
}

.invite-pills .pill {
  white-space: nowrap;
}

.accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: none;
  border: none;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
}

.accordion__head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.accordion__body {
  display: none;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.55;
  padding-top: 12px;
}

.accordion__body p {
  margin-bottom: 8px;
}

.accordion.is-open .accordion__body {
  display: block;
}

.accordion.is-open .accordion__chev {
  transform: rotate(90deg);
}

.accordion__chev {
  display: inline-flex;
  color: #9ca3af;
  transform: rotate(-90deg);
  transition: transform 0.2s ease;
}

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

.team-panel {
  padding-bottom: 8px;
}

.team-title {
  text-align: center;
  margin: 0 0 14px;
  font-size: 18px;
}

.team-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.team-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--brand-800);
  color: #fff;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.team-bar span {
  min-width: 0;
  font-size: 11px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.team-bar b {
  flex-shrink: 0;
  font-size: 14px;
  color: #fff;
}

.team-circles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
  margin-bottom: 18px;
  gap: 6px;
}

.ring {
  width: 68px;
  height: 68px;
  margin: 0 auto 8px;
  border: 3px solid #d7dde3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #111;
}

.ring--mint {
  border-color: #737373;
}

.ring--dark {
  border-color: #111;
  border-width: 3.5px;
}

.team-circles span {
  font-size: 11px;
  color: #6b7280;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.team-members-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.team-members-head strong {
  font-size: 14px;
}

.seg {
  display: flex;
  gap: 6px;
}

.seg button {
  min-width: 44px;
  height: 30px;
  border: none;
  border-radius: 15px;
  background: #f1f2f4;
  color: #4b5563;
  font-weight: 700;
  font-size: 12px;
}

.seg button.is-on {
  background: #111;
  color: #fff;
}

.empty-soft {
  text-align: center;
  color: #6b7280;
  padding: 18px 8px 8px;
  font-size: 14px;
}

.empty-dash {
  text-align: center;
  color: #9aa3ad;
  padding: 18px 8px 10px;
  font-size: 18px;
  letter-spacing: 2px;
  font-weight: 600;
}

/* ---------- Product detail (hero + sheet) ---------- */
.app-shell--flush .page {
  padding-bottom: 0;
}

.page--product {
  padding-bottom: 0;
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.pd-hero {
  position: relative;
  height: 42vh;
  min-height: 240px;
  max-height: 380px;
  background: #1b4d36;
  overflow: hidden;
}

.pd-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.pd-back {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  left: 12px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.42);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.pd-back svg {
  width: 22px;
  height: 22px;
}

.pd-sheet {
  position: relative;
  z-index: 3;
  margin-top: -28px;
  background: #fff;
  border-radius: 24px 24px 16px 16px;
  padding: 22px 18px 18px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  flex: none;
}

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

.pd-sheet__titles {
  min-width: 0;
}

.pd-card__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pd-card__title-row h1 {
  font-size: 20px;
  font-weight: 800;
  color: #2b2b2b;
}

.pd-card__price {
  font-size: 28px;
  font-weight: 800;
  margin-top: 8px;
  color: #111;
}

.badge-roi {
  background: #f0f0f0;
  color: #111111;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}

.badge-status {
  background: #f0f0f0;
  color: #111111;
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.pd-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 18px 0 14px;
}

.pd-stat {
  background: #f4f6f7;
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  min-width: 0;
}

.pd-stat span {
  display: block;
  font-size: 11px;
  color: #8a93a0;
  margin-bottom: 6px;
  line-height: 1.25;
}

.pd-stat strong {
  font-size: 13px;
  word-break: break-word;
}

.pd-reward {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f4f4f4;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
}

.pd-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-800);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pd-check svg {
  width: 14px;
  height: 14px;
}

.pd-features {
  list-style: none;
  background: #f4f4f4;
  border-radius: 14px;
  padding: 4px 14px;
}

.pd-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  font-size: 14px;
  color: #4b5563;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.pd-features li:last-child {
  border-bottom: none;
}

.pd-journey-card {
  background: #fff;
  border-radius: 16px;
  margin: 12px 14px 16px;
  padding: 18px 12px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.pd-journey-card h2 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 18px;
  color: #111;
}

.pd-journey {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  position: relative;
  text-align: center;
  gap: 2px;
}

.pd-journey::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 5px;
  height: 3px;
  background: linear-gradient(90deg, #111 0 18%, #525252 32%, #f59e0b 62%, #111 100%);
  border-radius: 2px;
}

.pd-node {
  position: relative;
  padding-top: 18px;
  min-width: 0;
}

.pd-node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 3px #fff;
}

.pd-node--green::before { background: var(--success); }
.pd-node--orange::before { background: #f59e0b; }

.pd-node b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  word-break: break-word;
}

.pd-node span {
  display: block;
  font-size: 10px;
  color: #9aa3ad;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-top: 4px;
}

.is-gain { color: var(--success); }
.is-orange { color: #f59e0b; }
.is-low { color: var(--danger); font-style: normal; font-weight: 700; }

.buy-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-w);
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
}

.buy-bar--solo {
  position: sticky;
  left: auto;
  transform: none;
  width: 100%;
  max-width: none;
  bottom: 0;
  margin-top: auto;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.06);
}

.buy-bar__label {
  display: block;
  font-size: 12px;
  color: #8a93a0;
}

.buy-bar__info strong {
  display: block;
  font-size: 18px;
  margin: 1px 0;
}

.buy-bar__saldo {
  font-size: 12px;
  color: #8a93a0;
}

.btn-buy {
  height: 48px;
  padding: 0 18px;
  border: none;
  border-radius: 12px;
  background: var(--brand-800);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  width: auto;
  flex-shrink: 0;
}

/* ---------- Withdraw feed + receipt ---------- */
.wd-item {
  width: 100%;
  display: flex;
  gap: 12px;
  background: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  text-align: left;
}

.wd-n {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-800);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.wd-item__body {
  min-width: 0;
}

.wd-item__body strong {
  display: block;
}

.wd-item__body em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: #9aa3ad;
}

.wd-item__body p {
  margin-top: 4px;
  font-size: 13px;
}

.modal-dialog--receipt {
  align-self: center;
  margin: 16px;
  width: min(100% - 24px, 420px);
  max-height: 90dvh;
  overflow: auto;
  padding: 8px 8px 16px;
  border-radius: 16px;
}

.modal-dialog--receipt .modal-body {
  padding: 0;
}

.receipt {
  position: relative;
  padding: 4px 8px 12px;
  text-align: center;
}

.receipt__bar {
  display: flex;
  justify-content: space-between;
}

.receipt__x,
.receipt__share {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--pix);
  font-size: 22px;
}

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

.receipt__mark {
  display: flex;
  justify-content: center;
  margin: 4px 0 8px;
}

.receipt__ok {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.receipt__ok svg {
  width: 28px;
  height: 28px;
}

.receipt h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.receipt__row {
  margin: 16px 0 8px;
}

.receipt__row span,
.receipt__meta span {
  display: block;
  font-size: 12px;
  color: #9aa3ad;
}

.receipt__row strong {
  font-size: 28px;
}

.receipt__meta,
.receipt__from {
  text-align: left;
  border-top: 1px solid #eee;
  padding: 10px 0;
}

.receipt__meta b {
  display: block;
  font-size: 13px;
  word-break: break-all;
}

.receipt__from p {
  font-size: 13px;
}

.btn-share-pix {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 24px;
  background: var(--pix);
  color: #fff;
  font-weight: 800;
  margin-top: 8px;
}

.receipt__bonus {
  position: absolute;
  left: 0;
  bottom: 56px;
  background: #ff7a18;
  color: #fff;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}

.chev svg {
  width: 16px;
  height: 16px;
}

.lede {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.45;
  margin-bottom: 12px;
}

.field-label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  margin: 4px 0 2px;
}

.field--area {
  height: 110px;
  padding: 12px;
  resize: vertical;
  margin-bottom: 8px;
}

.pub-list {
  margin-top: 14px;
}

.pub-card {
  width: 100%;
  display: flex;
  gap: 12px;
  background: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  text-align: left;
  color: inherit;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.pub-card__img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: #f4f4f4;
  flex-shrink: 0;
}

.pub-card__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
}

.pub-card__img--empty svg {
  width: 22px;
  height: 22px;
}

.pub-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pub-card__cat {
  display: inline-block;
  width: fit-content;
  background: #f0f0f0;
  color: #111111;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

.pub-card__meta {
  font-size: 12px;
  color: #6b7280;
}

.pub-detail img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.pub-detail h3 {
  margin: 8px 0 4px;
  font-size: 18px;
}

.pub-detail__text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

/* ---------- Meus produtos ---------- */
.page--mine {
  background: #fff;
}

.mine-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 14px;
  border-bottom: 1px solid #f0f0f0;
}

.mine-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.mine-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 8px 10px;
  font-size: 14px;
  font-weight: 600;
  color: #9aa3ad;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mine-tab.is-on {
  color: var(--brand-800);
  border-bottom-color: var(--brand-800);
}

.mine-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #eceff1;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mine-tab.is-on .mine-count {
  background: var(--brand-800);
  color: #fff;
}

.mine-sort {
  flex-shrink: 0;
  max-width: 108px;
  height: 32px;
  border: none;
  background: none;
  color: #9aa3ad;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mine-sort svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mine-list {
  min-height: 52vh;
  padding: 12px 14px 16px;
}

.mine-empty {
  text-align: center;
  padding: 48px 16px 24px;
}

.mine-empty__ico {
  width: 86px;
  height: 86px;
  margin: 0 auto 16px;
  border-radius: 22px;
  background: #f0f0f0;
  color: var(--brand-800);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mine-empty__ico svg {
  width: 40px;
  height: 40px;
}

.mine-empty p {
  color: #9aa3ad;
  font-size: 15px;
  margin: 8px 0 28px;
}

.btn-outline-mint {
  width: auto;
  min-width: 160px;
  height: 44px;
  margin: 0 auto;
  background: #fff;
  color: var(--brand-800);
  border: 1px solid #d6d6d6;
  border-radius: 22px;
  padding: 0 22px;
}

.mine-card {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid #f1f2f4;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.mine-card__thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--brand-800);
  flex-shrink: 0;
}

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

.mine-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mine-card__head strong {
  font-size: 15px;
}

.mine-card__st {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  background: #f1f2f4;
  color: #6b7280;
}

.mine-card__st.is-on {
  background: #f0f0f0;
  color: #111111;
}

.mine-card__price {
  font-size: 16px;
  font-weight: 800;
  margin: 4px 0;
}

.mine-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #8a93a0;
}

/* ---------- Compartilhamentos ---------- */
.page--share,
.page--share-new {
  background: var(--bg);
}

.page--share-new {
  background: #fff;
}

.share-list {
  padding: 12px 14px 88px;
}

.share-card {
  width: 100%;
  display: block;
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  text-align: left;
  color: inherit;
  cursor: default;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.share-card__user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.share-card__n {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-800);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.share-card__user strong {
  display: block;
  font-size: 14px;
}

.share-card__user em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: #9aa3ad;
}

.share-card__msg {
  font-size: 14px;
  margin-bottom: 10px;
  color: #333;
}

.share-card__photo {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  background: #f4f4f4;
}

.share-receipt {
  background: #f7f8f8;
  border-radius: 12px;
  padding: 18px 12px 16px;
  text-align: center;
}

.share-receipt__ok {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-receipt__ok svg {
  width: 20px;
  height: 20px;
}

.share-receipt__title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.share-receipt__date {
  font-size: 12px;
  color: #8a93a0;
  margin-bottom: 12px;
}

.share-receipt__label {
  font-size: 12px;
  color: #8a93a0;
}

.share-receipt__value {
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
}

.share-fab {
  position: fixed;
  right: max(16px, calc(50% - var(--app-w) / 2 + 16px));
  bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom, 0px));
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--brand-800);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 92, 59, 0.35);
  z-index: var(--z-fab);
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-fab svg {
  width: 26px;
  height: 26px;
}

.share-lock {
  background: linear-gradient(180deg, #111111 0%, #2a2a2a 100%);
  color: #fff;
  border-radius: 16px;
  padding: 22px 16px 18px;
  text-align: center;
}

.share-lock__ico {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.share-lock__ico svg {
  width: 36px;
  height: 36px;
}

.share-lock strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.share-lock p {
  font-size: 13px;
  opacity: 0.95;
  line-height: 1.4;
}

.share-lock .btn {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.soon-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 18px 22px;
  text-align: center;
  border: 1px solid var(--line);
}

.soon-card__badge {
  display: inline-block;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.soon-card h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.soon-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.share-form .lede {
  margin-bottom: 14px;
}

.share-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1.5px dashed #d6d6d6;
  border-radius: 16px;
  padding: 28px 12px;
  margin-bottom: 12px;
  background: #f4f4f4;
  color: var(--brand-800);
  cursor: pointer;
}

.share-drop__ico svg {
  width: 28px;
  height: 28px;
}

.share-drop span {
  font-size: 12px;
  color: #8a93a0;
}

.share-preview {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #f4f4f4;
}

#sharePreviewWrap[hidden] {
  display: none;
}

@media (max-width: 360px) {
  .mine-tab { font-size: 13px; padding-left: 4px; padding-right: 4px; }
  .mine-sort { max-width: 84px; }
  .share-receipt__value { font-size: 18px; }
}

/* ---------- Recarga ---------- */
.page--deposit {
  background: var(--bg);
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}

.dep-hero {
  background: linear-gradient(180deg, #111111 0%, #1c1c1c 100%);
  padding: 22px 18px 48px;
  color: #fff;
}

.dep-hero__label {
  font-size: 13px;
  opacity: 0.9;
}

.dep-hero__amt {
  font-size: 28px;
  font-weight: 800;
  margin-top: 4px;
}

.dep-sheet {
  background: #fff;
  border-radius: 20px 20px 0 0;
  margin-top: -24px;
  padding: 18px 16px 20px;
  position: relative;
  z-index: 2;
}

.dep-input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
}

.dep-input span {
  font-weight: 700;
  color: #111;
}

.dep-input input {
  flex: 1;
  border: none;
  outline: none;
  text-align: right;
  font-size: 20px;
  font-weight: 800;
  min-width: 0;
  background: transparent;
}

.dep-min {
  text-align: center;
  font-size: 12px;
  color: #9aa3ad;
  margin: 10px 0 14px;
}

.dep-amts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.dep-amts button {
  height: 40px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-weight: 700;
  font-size: 13px;
}

.dep-amts button.is-on {
  background: var(--brand-800);
  border-color: var(--brand-800);
  color: #fff;
}

.dep-sheet h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

.dep-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--brand-800);
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
}

.pag-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.dep-radio {
  margin-left: auto;
  width: 18px;
  height: 18px;
  border: 5px solid var(--brand-800);
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}

.dep-dock {
  background: #fff;
  padding: 8px 14px 12px;
}

.dep-dock__bar {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.dep-dock__bar h1 {
  flex: 1;
  text-align: center;
  font-size: 16px;
}

.dep-confirm {
  width: 100%;
  height: 50px;
}

@media (min-width: 400px) {
  .dep-amts { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Cartão / Pix ---------- */
.page--bank {
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.bank-empty {
  flex: 1;
  text-align: center;
  padding: 48px 24px 16px;
}

.bank-empty__ico {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  color: #c5c5c5;
}

.bank-empty__ico svg {
  width: 64px;
  height: 64px;
}

.bank-empty h2 {
  font-size: 17px;
  margin-bottom: 8px;
}

.bank-empty p {
  color: #9aa3ad;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 28px;
}

.bank-empty .btn {
  width: min(100%, 320px);
}

.bank-notes {
  margin: 12px 16px 18px;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}

.bank-notes > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
}

.bank-notes > div + div {
  border-top: 1px solid #eee;
}

.bank-notes svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.pix-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #f1f2f4;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

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

.pix-card__del {
  width: auto;
  height: 36px;
  padding: 0 12px;
  flex-shrink: 0;
  font-size: 13px;
}

.modal-root:has(.modal-dialog--sheet) {
  align-items: center;
}

.modal-dialog--sheet {
  width: min(100%, 420px);
  margin: 0;
  border-radius: 16px;
  padding: 18px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  max-height: min(92dvh, 720px);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #d9d9d9;
  margin: 6px auto 14px;
}

.pix-sheet h2 {
  font-size: 18px;
  margin-bottom: 14px;
  padding-right: 36px;
}

.pix-sheet .field {
  margin: 0 0 12px;
}

.field--select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%239aa3ad' stroke-width='2'><path d='M6 8l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.pix-hint {
  font-size: 12px;
  color: #9aa3ad;
  margin: -4px 0 16px;
}

