/* WXO shared UI — consistent shell, cards, buttons, badges across all pages */
:root {
  --wxo-red: #E31C23;
  --wxo-red-dark: #C4161C;
  --wxo-ink: #111214;
  --wxo-ink-soft: #4B5162;
  --wxo-muted: #8A90A2;
  --wxo-line: #E6E8EF;
  --wxo-bg: #F4F5F8;
  --wxo-card: #FFFFFF;
  --wxo-soft: #F7F8FA;
  --wxo-gold: #C99213;
  --wxo-green: #047857;
  --wxo-radius: 18px;
  --wxo-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  --wxo-ease: cubic-bezier(.22, 1, .36, 1);
}

/* Soft page canvas (keeps phone chrome dark outside .app) */
.app {
  background: var(--wxo-bg) !important;
}

.topbar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--wxo-line) !important;
}

.icon-btn {
  background: #fff !important;
  border: 1px solid var(--wxo-line);
  border-radius: 12px !important;
}

.pad {
  padding: 14px !important;
}

/* Cards */
.card,
.pool,
.room,
.bal-bar,
.action-card,
.how,
.howBox,
.refcard,
.wallet,
.referral,
.util,
.stat,
.id-card,
.hero-profile,
.apk-banner {
  box-shadow: var(--wxo-shadow);
}

.card {
  background: var(--wxo-card) !important;
  border: 1px solid var(--wxo-line) !important;
  border-radius: var(--wxo-radius) !important;
}

/* Primary red CTA */
.btn-red,
button.btn-red,
a.btn-red,
.join:not(.t-card .join),
.play:not(.g-body .play),
.btn-copy,
.add {
  background: var(--wxo-red) !important;
  color: #fff !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 18px rgba(227, 28, 35, 0.28);
  min-height: 44px;
}

.btn-red:active,
.join:active {
  background: var(--wxo-red-dark) !important;
}

.btn-ghost,
button.btn-ghost,
a.btn-ghost {
  background: #fff !important;
  color: var(--wxo-ink) !important;
  border: 1px solid var(--wxo-line) !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  min-height: 44px;
}

/* Filters / chips */
.filters button.on,
.chip.on,
.tabs button.on {
  background: var(--wxo-red) !important;
  color: #fff !important;
  border-color: var(--wxo-red) !important;
}

/* Live badges */
.live-pill,
.badge.live,
.round-badge.live {
  background: #D1FAE5 !important;
  color: var(--wxo-green) !important;
  font-weight: 900 !important;
}

/* Prize cream box */
.prize,
.win-box,
.winBox {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7) !important;
  border: 1px solid #FDE68A !important;
  border-radius: 14px !important;
}

/* Balance bar */
.bal-bar {
  background: #FFF8E7 !important;
  border: 1px solid #F5E0A8 !important;
  border-radius: 14px !important;
}

/* Share row helpers (WhatsApp / Telegram) */
.share-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.share-row a,
.share-row button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  border-radius: 12px;
  padding: 12px 8px;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.share-row .wa,
a.wa,
button.wa { background: #25D366 !important; color: #fff !important; }
.share-row .tg,
a.tg,
button.tg { background: #2AABEE !important; color: #fff !important; }

/* ID card — dark brand strip used on wallet/earn/profile */
.id-card {
  display: flex !important;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #111, #2a0a0c 80%) !important;
  color: #fff !important;
  border-radius: 18px !important;
  padding: 14px !important;
  margin-bottom: 12px;
  border: 0 !important;
  box-shadow: var(--wxo-shadow);
}
.id-card .k {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
.id-card .v {
  font-family: Montserrat, sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-top: 2px;
}
.id-card .copy,
.id-card button.copy {
  margin-left: auto;
  background: #fff !important;
  color: var(--wxo-red) !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  box-shadow: none !important;
  min-height: 0 !important;
}

/* Empty / loading */
.empty,
.state {
  text-align: center;
  color: var(--wxo-muted);
  font-weight: 600;
}

/* Section notes */
.sec-note {
  font-size: 12px;
  color: var(--wxo-muted);
  line-height: 1.45;
  margin: -4px 0 12px;
}

/* Toast */
.toast {
  border-radius: 999px !important;
  font-weight: 700 !important;
}

/* Inputs */
.field input,
.field select,
.field textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  border-radius: 12px !important;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #FECACA !important;
  outline: none;
}

/* Soft divider */
.soft-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #E5E7EB, transparent);
  margin: 12px 0 16px;
}

/* Match / tournament white cards (shared) */
.m-card {
  position: relative;
  background: var(--wxo-card);
  border: 1px solid var(--wxo-line);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--wxo-shadow);
}
.m-card .join {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--wxo-red);
  color: #fff;
  border-radius: 14px;
  padding: 13px;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(227, 28, 35, 0.28);
}
