:root {
  --orange: #ff6a00;
  --orange-bright: #ff861a;
  --orange-dark: #e55f00;
  --orange-deep: #c2410c;
  --ink: #1a120c;
  --ink-soft: #2b1810;
  --bg: #fff7f1;
  --card: #ffffff;
  --text: #1f1410;
  --muted: #6b5648;
  --line: #f0ddd0;
  --ok: #16a34a;
  --warn: #f59e0b;
  --bad: #ef4444;
  --info: #ea580c;
  --shadow: 0 8px 28px rgba(194, 65, 12, .10);
  --shadow-lift: 0 16px 40px rgba(255, 106, 0, .22);
  --radius: 16px;
  --font: "Poppins", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-display: "Poppins", "Noto Sans SC", "PingFang SC", sans-serif;
  --page-accent: #ff6a00;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(255, 106, 0, .22), transparent 55%),
    radial-gradient(700px 380px at 96% 4%, rgba(255, 180, 80, .18), transparent 50%),
    radial-gradient(600px 300px at 50% 100%, rgba(194, 65, 12, .06), transparent 55%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 22px,
      rgba(255, 106, 0, .025) 22px,
      rgba(255, 106, 0, .025) 23px
    ),
    var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 100% - 2rem); margin: 0 auto; }

.site-deal-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem .7rem;
  background: linear-gradient(90deg, #14532d, #166534 45%, #15803d);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  padding: .5rem .9rem;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  position: relative;
  z-index: 47;
}
.site-deal-kicker {
  display: inline-block;
  background: rgba(255, 255, 255, .16);
  color: #bbf7d0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .18rem .5rem;
  border-radius: 999px;
}
.site-deal-copy { max-width: 52rem; }
@media (max-width: 720px) {
  .site-deal-notice {
    font-size: 12px;
    padding: .45rem .65rem;
    gap: .3rem .45rem;
  }
}
  background: #1a120c;
  color: #fde68a;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.35;
  padding: .4rem .75rem;
  border-bottom: 1px solid rgba(253, 230, 138, .22);
  position: relative;
  z-index: 46;
}
@media (max-width: 720px) {
  .site-tech-notice {
    font-size: 11.5px;
    padding: .35rem .55rem;
  }
}

/* Top promo / bumper stickers */
.top-banner {
  background: linear-gradient(90deg, #1a120c, #3d2314 50%, #1a120c);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  padding: .55rem 1rem;
  text-align: center;
  position: relative;
  z-index: 45;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}
.top-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem .65rem;
  max-width: min(1200px, 100%);
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.top-banner-copy {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: .2rem .45rem;
  min-width: 0;
  max-width: 100%;
}
.top-banner-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem .5rem;
  min-width: 0;
  max-width: 100%;
}
.top-banner-title {
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.top-banner-desc {
  opacity: .92;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.top-banner-desc::before {
  content: "·";
  margin-right: .3rem;
  opacity: .75;
}
.top-banner a,
.top-banner-cta {
  color: #ffd7b5;
  text-decoration: underline;
  font-weight: 700;
  white-space: nowrap;
}
.top-banner-cta {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  text-decoration: none;
  flex: 0 0 auto;
}
.top-banner-cta:hover { background: rgba(255, 255, 255, .24); }
.top-banner-timer {
  font-weight: 600;
  white-space: nowrap;
}
.top-banner-timer strong {
  font-variant-numeric: tabular-nums;
  color: #fef08a;
  letter-spacing: .03em;
}

/* Header */
.site-header {
  background: linear-gradient(180deg, #fff 0%, #fffaf6 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(255, 106, 0, .06);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #ffb347, #ff6a00 40%, #c2410c 80%, #ff861a);
}
.header-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: .85rem 0;
}
.logo {
  order: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -.02em;
  color: var(--orange);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--ink); font-weight: 600; }
.search-wrap {
  order: 2;
  flex: 1 1 auto;
  min-width: 12rem;
  display: flex;
  border: 2px solid var(--orange);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(255, 106, 0, .12);
  transition: box-shadow .2s ease;
}
.search-wrap:focus-within {
  box-shadow: 0 6px 20px rgba(255, 106, 0, .22);
}
.search-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 0;
  padding: .7rem 1rem;
  font-size: 15px;
  outline: none;
  background: transparent;
}
.search-wrap button {
  flex-shrink: 0;
  background: linear-gradient(180deg, #ff861a, #ff6a00);
  color: #fff;
  border: 0;
  padding: 0 1.4rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.header-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
  margin-left: auto;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  background: linear-gradient(180deg, #ff861a 0%, #ff6a00 55%, #e55f00 100%);
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  padding: .65rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 6px 16px rgba(255, 106, 0, .28);
}
.btn:hover {
  background: linear-gradient(180deg, #ff952f 0%, #ff7414 55%, #d45500 100%);
  transform: translateY(-1px);
}
.btn-outline {
  background: #fff;
  color: var(--orange) !important;
  border: 1.5px solid var(--orange);
  box-shadow: none;
}
.btn-outline:hover {
  background: #fff4ec;
  box-shadow: none;
}
.btn-sm { padding: .4rem .85rem; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.nav-links {
  display: flex;
  gap: 1.1rem;
  padding: 0 0 .75rem;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
.nav-links a {
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a.is-active {
  color: #1a1a1a;
  font-weight: 800;
  background: #f0c14b;
  border-bottom: 2px solid #e8b53a;
  padding: .2rem .55rem .25rem;
  border-radius: 6px 6px 0 0;
}
/* Mobile header side CTA — Profile only when logged in (guest Sign In is via bottom Profile) */
.header-side-btn {
  display: none;
  order: 2;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: .35rem;
  padding: .42rem .85rem;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #fff !important;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 55%, #15803d 100%);
  box-shadow: 0 4px 12px rgba(22, 163, 74, .35);
  white-space: nowrap;
  text-decoration: none;
}
.header-row.is-authed .header-side-btn {
  background: linear-gradient(180deg, #ff861a 0%, #ff6a00 55%, #e55f00 100%);
  box-shadow: 0 4px 12px rgba(255, 106, 0, .32);
}

/* Mobile hamburger (3 lines) */
.nav-burger {
  display: none;
  order: 3;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1.5px solid var(--orange);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: none;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-nav-panel {
  display: none;
  padding: 0 0 .85rem;
}
.mobile-nav-panel:not([hidden]) { display: block; }
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(255, 106, 0, .12);
}
.mobile-nav-links a {
  display: block;
  padding: .85rem 1rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background .15s ease, color .15s ease;
}
.mobile-nav-links a:last-child { border-bottom: 0; }
.mobile-nav-links a:hover {
  background: #fff4ec;
  color: var(--orange);
}
/* Mobile dropdown: current page = yellow (client request) */
.mobile-nav-links a.is-active,
.mobile-nav-links a.active {
  background: #f0c14b;
  color: #1a1a1a;
  font-weight: 800;
}
.mobile-nav-links a.is-active:hover,
.mobile-nav-links a.active:hover {
  background: #e8b53a;
  color: #1a1a1a;
}
.mobile-nav-links a.is-active.task-done-blink {
  color: #1a1a1a;
  animation: none;
}

/* Menu Sign In / Log Out button (admin red or green) */
.nav-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border: 0;
  border-radius: 999px;
  padding: .85rem 1.75rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  white-space: nowrap;
}
.nav-signin-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.nav-signin-btn--green {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 55%, #15803d 100%);
  box-shadow: 0 8px 20px rgba(22, 163, 74, .35);
}
.nav-signin-btn--red {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
  box-shadow: 0 8px 20px rgba(220, 38, 38, .35);
}
.desktop-nav-end {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}
.desktop-nav .nav-signin-btn {
  margin-left: 0;
  align-self: center;
}
.mobile-nav-signin {
  padding: .75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.mobile-nav-signin .nav-signin-btn {
  display: flex;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  border-radius: 14px;
}
.mobile-nav-signin a.is-active,
.mobile-nav-signin a.active {
  background: #f0c14b !important;
  color: #1a1a1a !important;
  box-shadow: 0 8px 20px rgba(212, 160, 23, .35);
  filter: none;
}

/* Home marketplace hero */
.market-hero {
  position: relative;
  margin: 0 0 1rem;
  border-radius: 0;
  overflow: hidden;
  min-height: clamp(280px, 58vh, 520px);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(118deg, rgba(20, 10, 4, .94) 0%, rgba(90, 40, 8, .72) 42%, rgba(255, 106, 0, .58) 100%),
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(255, 180, 60, .35), transparent 55%),
    linear-gradient(160deg, #2a1408 0%, #ff6a00 55%, #ffb347 100%);
  box-shadow: 0 22px 56px rgba(26, 18, 12, .32);
  animation: heroFade .7s ease both;
}
/* Photo layer — sits under the glow/scrim, absolute so it never shifts layout */
.market-hero-media {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.market-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  animation: heroMediaIn 1.2s ease both;
}
.market-hero-glow {
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(circle at 22% 40%, rgba(255, 200, 80, .28), transparent 42%),
    radial-gradient(circle at 78% 55%, rgba(255, 106, 0, .32), transparent 48%);
  animation: heroGlowDrift 9s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}
.market-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 28px,
      rgba(255, 255, 255, .03) 28px,
      rgba(255, 255, 255, .03) 29px
    ),
    radial-gradient(ellipse 82% 78% at 50% 48%, rgba(8, 4, 1, .6) 0%, rgba(8, 4, 1, .44) 58%, rgba(8, 4, 1, .68) 100%),
    linear-gradient(180deg, rgba(10, 5, 2, .32) 0%, rgba(12, 6, 2, .6) 100%);
  pointer-events: none;
  z-index: 2;
}
.market-hero-inner {
  position: relative;
  z-index: 3;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
  width: 100%;
  max-width: min(780px, 100%);
  min-width: 0;
  margin: 0 auto;
  color: #fff;
  text-align: center;
  box-sizing: border-box;
}
.market-hero-inner .market-sub {
  margin-left: auto;
  margin-right: auto;
}
.market-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 7vw, 4rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: #ffc078;
  line-height: 1.08;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  animation: brandRise .85s cubic-bezier(.2, .8, .2, 1) both;
  text-shadow: 0 10px 36px rgba(0, 0, 0, .35);
}
.market-brand span { color: #fff; }
.market-title {
  margin: .85rem 0 .5rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  animation: brandRise .95s .08s cubic-bezier(.2, .8, .2, 1) both;
}
.market-sub {
  margin: 0;
  color: rgba(255, 245, 235, .9);
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.55;
  max-width: min(34em, 100%);
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  animation: brandRise 1.05s .14s cubic-bezier(.2, .8, .2, 1) both;
}
.market-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.25rem;
  animation: brandRise 1.1s .2s cubic-bezier(.2, .8, .2, 1) both;
}
.market-cta-center {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: none;
}
.dashboard-hero-actions {
  gap: .75rem;
  justify-content: center;
}
.dashboard-hero-actions .btn-dashboard-action {
  width: auto;
  min-width: min(160px, 42vw);
  max-width: 220px;
  margin-top: 0;
}
.market-cta-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: center;
  margin-top: .15rem;
}
.market-cta-secondary .btn-buy {
  width: auto;
  min-width: 160px;
  margin-top: 0;
  text-transform: none;
  font-size: 1rem;
  padding: .7rem 1.25rem;
}
.btn-deposit-hero {
  min-width: min(280px, 92vw);
  padding: .95rem 1.75rem;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: .03em;
  border-radius: 999px;
  text-transform: none;
  color: #1a1408 !important;
  background: linear-gradient(165deg, #ffe08a 0%, #f0c14b 38%, #d4a017 72%, #b8860b 100%);
  box-shadow:
    0 0 0 2px rgba(255, 236, 170, .45),
    0 10px 28px rgba(212, 160, 23, .45),
    inset 0 1px 0 rgba(255, 255, 255, .55);
  animation: depositPulse 2.6s ease-in-out infinite;
}
.btn-deposit-hero:hover {
  background: linear-gradient(165deg, #ffe9a8 0%, #f5cc5a 38%, #e0b020 72%, #c9950e 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 2px rgba(255, 245, 200, .55),
    0 14px 32px rgba(212, 160, 23, .55),
    inset 0 1px 0 rgba(255, 255, 255, .65);
}
@keyframes depositPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 236, 170, .45), 0 10px 28px rgba(212, 160, 23, .45), inset 0 1px 0 rgba(255, 255, 255, .55); }
  50% { box-shadow: 0 0 0 4px rgba(255, 236, 170, .3), 0 12px 34px rgba(15, 118, 110, .35), inset 0 1px 0 rgba(255, 255, 255, .55); }
}
.market-cta-ghost {
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, .55);
  backdrop-filter: blur(4px);
}
.market-cta-ghost:hover {
  background: rgba(255, 255, 255, .2) !important;
}

.cat-rail {
  display: none;
}

/* Homepage mid-page Wallet/Profile strip removed — account links live in desktop header */
.desk-account-rail {
  display: none !important;
}
.desk-account-rail a {
  flex: 0 1 200px;
  max-width: 240px;
  text-align: center;
  font-size: 12px;
  color: #666;
  font-weight: 500;
  padding: .5rem .9rem .45rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf6, #fff);
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(255, 106, 0, .08);
  transition: color .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.desk-account-rail .ico {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: .12rem;
}
.desk-account-rail a:hover,
.desk-account-rail a.is-active,
.desk-account-rail a.active {
  color: var(--orange);
  font-weight: 700;
  border-color: rgba(255, 106, 0, .4);
  background: #fff4ec;
}
.home-cat-fold { display: none; }
.cat-pill {
  flex: 0 0 auto;
  padding: .45rem .95rem;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--line);
  color: #4a3428;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}
.cat-pill:hover, .cat-pill.active {
  border-color: var(--orange);
  color: var(--orange);
  background: #fff4ec;
  transform: translateY(-1px);
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes brandRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroGlowDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.06); }
}
@keyframes heroMediaIn {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .market-hero-media img { animation: none; }
  .market-hero-glow { animation: none; }
}

/* Layout */
.home-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  margin: 0 0 2rem;
}
.sidebar {
  background: linear-gradient(180deg, #fff 0%, #fff8f2 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 106, 0, .12);
  padding: .75rem;
}
.sidebar h4 { margin: .3rem .4rem .6rem; font-size: 14px; color: var(--ink); }
.cat-item {
  display: block;
  padding: .55rem .65rem;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  transition: background .15s ease, color .15s ease;
}
.cat-item:hover, .cat-item.active { background: #fff4ec; color: var(--orange); }

.welcome-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0 0 .85rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #1a120c 0%, #2b1810 55%, #3d2314 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(26,18,12,.28);
  border: 1px solid rgba(255,106,0,.35);
}
.welcome-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}
.dashboard-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  width: 100%;
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(255,106,0,.28);
}
.dashboard-quick-actions--panel {
  margin-top: .75rem;
  padding-top: 0;
  border-top: none;
}
.btn-dashboard-action {
  width: 100%;
  margin: 0;
  padding: 1rem .85rem;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-align: center;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(255,106,0,.4);
}
.dashboard-idle-panel {
  border: 1px solid rgba(255,106,0,.25);
  background: linear-gradient(180deg, #fff 0%, #fff8f2 100%);
}
.task-completed-panel {
  border: 1px solid rgba(34, 197, 94, .35);
  background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
  padding: 1rem .85rem;
  border-radius: 14px;
}
.task-completed-panel .task-completed-title {
  margin: .45rem 0 .25rem;
  font-size: 1.05rem;
}
.task-completed-inline {
  display: inline-flex;
  align-items: center;
  padding: .65rem 1rem;
  font-size: .92rem;
  font-weight: 700;
  color: #15803d;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .35);
  border-radius: 14px;
}
.welcome-label {
  margin: 0;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #ffc499;
  font-weight: 700;
}
.welcome-name {
  margin: .15rem 0 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}
.welcome-wallet {
  text-align: right;
  background: rgba(255,106,0,.14);
  border: 1px solid rgba(255,106,0,.35);
  border-radius: 12px;
  padding: .55rem .85rem;
}
.welcome-wallet strong {
  display: block;
  color: #ffb070;
  font-size: 1.15rem;
  margin-top: .1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
}
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card img { width: 100%; height: 160px; object-fit: cover; background: #eee; }
.product-card .body { padding: .75rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-card .title { font-size: 14px; font-weight: 600; line-height: 1.35; min-height: 2.5em; }
.product-card .price { color: var(--orange); font-weight: 800; font-size: 1.05rem; }
.product-card .meta { color: var(--muted); font-size: 12px; }

/* NFT-style product cards — Alibaba orange / China ink */
.nft-card {
  position: relative;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(160deg, #ff8a2b, #ff6a00 40%, #8b4513) border-box;
  border: 2px solid transparent;
  box-shadow: 0 12px 28px rgba(26,18,12,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.nft-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.nft-card.is-featured {
  box-shadow: 0 14px 34px rgba(255,106,0,.28);
}
.nft-card .nft-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #1a120c;
}
.nft-card .nft-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.nft-card:hover .nft-media img {
  transform: scale(1.04);
}
.nft-chip {
  position: absolute;
  left: .65rem;
  top: .65rem;
  z-index: 2;
  background: rgba(26,18,12,.82);
  color: #ffb070;
  border: 1px solid rgba(255,106,0,.55);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .28rem .55rem;
  border-radius: 8px;
}
.nft-card .body {
  padding: .9rem .85rem 1rem;
  gap: .4rem;
  background: linear-gradient(180deg, #fff 0%, #fff8f2 100%);
}
.nft-card .title {
  font-size: 15px;
  font-weight: 750;
  min-height: 2.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nft-card .meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nft-card .body .btn-buy {
  margin-top: auto;
}
.nft-card .price {
  font-size: 1.2rem;
}
.btn-buy {
  width: 100%;
  margin-top: .35rem;
  padding: .9rem 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .02em;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff861a 0%, #ff6a00 55%, #e55f00 100%);
  box-shadow: 0 8px 18px rgba(255,106,0,.35);
  text-transform: uppercase;
}
.btn-buy:hover {
  background: linear-gradient(180deg, #ff952f 0%, #ff7414 55%, #d45500 100%);
}
.nft-view {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: .15rem;
  text-decoration: underline;
}

.badge { display: inline-block; padding: .15rem .45rem; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: capitalize; }
.badge.ok { background: #dcfce7; color: #166534; }
.badge.warn { background: #fef3c7; color: #92400e; }
.badge.bad { background: #fee2e2; color: #991b1b; }
.badge.info { background: #fff0e4; color: #9a3412; }

.task-highlight {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #fff7f0, #fff);
  border: 1px solid #ffd7b8;
  border-radius: var(--radius);
  padding: 1rem;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 1rem;
  align-items: center;
}
.task-highlight img { width: 160px; height: 120px; object-fit: cover; border-radius: 10px; }
.task-highlight.nft-task {
  background:
    linear-gradient(135deg, #fffaf5 0%, #fff 45%, #fff4ec 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 14px 32px rgba(255,106,0,.16);
  outline: 2px solid rgba(255,106,0,.35);
  outline-offset: -2px;
  grid-template-columns: 180px 1fr minmax(160px, 200px);
  padding: 1.1rem;
}
.nft-task .nft-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #1a120c;
  box-shadow: inset 0 0 0 1px rgba(255,106,0,.25);
}
.nft-task .nft-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.nft-cta {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  width: 100%;
}
.nft-cta .btn-buy { width: 100%; }

.panel {
  background: linear-gradient(180deg, #fff 0%, #fffaf6 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 106, 0, .08);
  padding: 1rem;
  margin-bottom: 1rem;
}
.muted { color: var(--muted); }
.small { font-size: 13px; }
.user-fund-notice {
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fb923c;
    color: #7c2d12;
}
.user-fund-notice strong { display: block; margin-bottom: .4rem; font-size: 1.05rem; }
.user-fund-notice p { margin: 0; line-height: 1.5; }
.flash { padding: .75rem 1rem; border-radius: 10px; margin: 1rem 0; }
.flash.success { background: #dcfce7; }
.flash.error { background: #fee2e2; }
.signup-success-panel {
  max-width: 480px;
  margin: 1.25rem auto 1rem;
  padding: 1.35rem 1.4rem 1.45rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid #86efac;
  background:
    radial-gradient(120% 80% at 50% 0%, #ecfdf5 0%, #dcfce7 55%, #f0fdf4 100%);
  box-shadow: 0 10px 28px rgba(22, 163, 74, .12);
  animation: signup-success-in .45s ease-out;
}
.signup-success-icon {
  font-size: 2.35rem;
  line-height: 1;
  margin-bottom: .55rem;
}
.signup-success-title {
  margin: 0;
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #14532d;
}
.signup-success-lead {
  margin: .4rem 0 .55rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #166534;
}
.signup-success-sub { margin: 0; font-size: 14px; line-height: 1.45; }
.signup-welcome-banner {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin: 0 0 .85rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid #86efac;
  background: linear-gradient(135deg, #ecfdf5 0%, #dcfce7 100%);
  animation: signup-success-in .4s ease-out;
}
.signup-welcome-emoji { font-size: 1.6rem; line-height: 1; }
.signup-welcome-banner strong {
  display: block;
  font-family: var(--font);
  font-size: 1.02rem;
  color: #14532d;
}
.verify-gate-banner {
  max-width: 480px;
  margin: 1rem auto .85rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid #fdba74;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #9a3412;
}
.verify-gate-banner strong {
  font-family: var(--font);
  font-size: 1.02rem;
}
@keyframes signup-success-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-group { margin-bottom: .85rem; }
.form-group label { display: block; font-size: 13px; margin-bottom: .3rem; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

/* Wallet */
.wallet-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1.25rem 1.35rem;
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(135deg, #1a120c 0%, #3d2314 50%, #ff6a00 140%);
  color: #fff;
  box-shadow: 0 14px 36px rgba(26, 18, 12, .3);
  border: 1px solid rgba(255, 106, 0, .4);
}
.wallet-total {
  margin: .35rem 0 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .2rem .4rem;
}
.wallet-hero-name-block {
  margin: 0;
  min-width: 0;
}
.wallet-hero-name-label {
  margin: 0 0 .12rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 196, 153, .78);
  line-height: 1.2;
}
.wallet-hero-name-row {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin: 0;
  min-width: 0;
}
.wallet-hero-name {
  color: #ffd7b3;
  text-transform: none;
  letter-spacing: .01em;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  max-width: min(100%, 18rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wallet-privacy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 215, 179, .9);
  cursor: pointer;
  line-height: 0;
  transition: color .15s ease, opacity .15s ease;
}
.wallet-privacy-btn:hover,
.wallet-privacy-btn:focus-visible {
  background: transparent;
  color: #fff;
  outline: none;
  opacity: 1;
}
.wallet-privacy-btn--balance {
  width: 22px;
  height: 22px;
  margin-top: 0;
  color: rgba(255, 255, 255, .85);
}
.wallet-privacy-btn.is-masked {
  background: transparent;
  color: rgba(255, 255, 255, .95);
}
.wallet-privacy-icon {
  width: 18px;
  height: 18px;
  display: block;
}
.wallet-privacy-icon[hidden] { display: none !important; }
.wallet-hero .eyebrow { color: #ffc499; }
.wallet-hero .muted { color: rgba(255, 230, 210, .75) !important; }
.wallet-hero .muted.small { font-size: 12.5px; }
.wallet-hero-meta {
  margin-top: .4rem;
}
.wallet-hero-meta__note {
  margin: 0 0 .45rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  color: rgba(255, 220, 190, .82);
}
.wallet-hero-level-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .65rem;
  max-width: 100%;
  min-width: 0;
}
.wallet-hero-level__badge {
  display: inline-flex;
  align-items: center;
  padding: .42rem .95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .42);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .28);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.wallet-hero-level__actions {
  margin: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.wallet-hero .level-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2;
  color: #fff !important;
  padding: .5rem 1.15rem;
  min-width: 7.25rem;
  border: none;
  border-radius: 999px;
  background: #16a34a;
  text-decoration: none;
  cursor: pointer;
  transition: filter .15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.wallet-hero .level-more-btn:hover {
  filter: brightness(.95);
  background: #16a34a;
}
.wallet-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.wallet-hero-actions .btn-outline {
  background: rgba(255,255,255,.1);
  color: #fff !important;
  border-color: rgba(255,255,255,.5);
}
.balance-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .08);
  background: #fafafa;
  transition: transform .18s ease, box-shadow .18s ease;
}
.balance-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  border-radius: 4px 0 0 4px;
}
.balance-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.balance-card.accent-main::before { background: #ff6a00; }
.balance-card.accent-bonus::before { background: #f5c518; }
.balance-card.accent-today::before { background: #22c55e; }
.balance-card.accent-team::before { background: #60a5fa; }
.balance-card.accent-salary::before { background: #a78bfa; }
.balance-card.accent-total::before { background: #ef4444; }
/* Wallet team boxes — two side-by-side cards matching mobile screenshot. */
.wallet-team {
  margin: .85rem 0 1rem;
}
.wallet-team__title {
  margin: 0 0 .55rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}
.team-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}
.team-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .12rem;
  min-width: 0;
  padding: .7rem .75rem .75rem .9rem;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  overflow: hidden;
}
.team-box::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
}
.team-box--a::before { background: #15803d; }
.team-box--bc::before { background: #1d4ed8; }
.team-box.is-open { box-shadow: 0 0 0 1px rgba(22, 163, 74, .22); }
.team-box__label {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
}
.team-box__note {
  display: block;
  margin-bottom: .15rem;
}
.team-box__figures {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: .35rem;
  padding-top: .45rem;
  border-top: 1px solid var(--line);
}
.team-box__stat {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem;
  min-width: 0;
  line-height: 1.25;
}
.team-box__stat + .team-box__stat {
  justify-content: flex-end;
  text-align: right;
  border-left: 1px solid var(--line);
  padding-left: .45rem;
  margin-left: .35rem;
}
.team-box__stat b { font-size: 1.05rem; font-weight: 800; }
.team-box__btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: .55rem;
  padding: .5rem .75rem;
  border: none;
  border-radius: 999px;
  background: #16a34a;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background .15s ease, filter .15s ease;
}
.team-box__btn:hover { filter: brightness(.95); }
.team-box--a .team-box__btn { background: #16a34a; }
.team-box--bc .team-box__btn { background: #2563eb; }
.team-box.is-open .team-box__btn { filter: none; }
.team-more-btn { padding: .6rem 1.25rem; font-size: 14.5px; font-weight: 700; }
.team-box-open { border-top: 1px solid var(--line); margin-top: .75rem; }

.balance-card.accent-referred {
  background: #fafafa;
  border-color: rgba(16, 150, 100, .28);
}
.balance-card.accent-referred::before { background: #109664; }
.balance-card.accent-referred a { color: #0f766e; }
.balance-card b {
  color: var(--ink);
}

/* Profile */
.me-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0;
  padding: 1.25rem 1.35rem;
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(125deg, #fff 0%, #fff4ec 45%, #ffe4cc 100%);
  border: 1px solid rgba(255, 106, 0, .22);
  box-shadow: var(--shadow);
}
.ref-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  margin: .85rem 0 0;
}
.ref-stat {
  background: #fff;
  border: 1px solid rgba(255, 106, 0, .18);
  border-radius: 12px;
  padding: .7rem .8rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.ref-stat strong {
  color: var(--ink);
  font-size: 1.05rem;
}
.me-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #ff861a, #c2410c);
  box-shadow: 0 8px 20px rgba(255, 106, 0, .35);
}

/* Security */
.security-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
  margin: 1rem 0;
  padding: 1.35rem 1.5rem;
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(135deg, #1a120c 0%, #3d2314 45%, #ff6a00 160%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(26, 18, 12, .32);
  border: 1px solid rgba(255, 106, 0, .35);
}
.security-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  background: linear-gradient(145deg, rgba(255, 106, 0, .9), rgba(194, 65, 12, .95));
  box-shadow: 0 8px 22px rgba(255, 106, 0, .35);
}
.security-hero .eyebrow { color: #fdba74; margin: 0; }
.security-title {
  margin: .15rem 0 0;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}
.security-sub {
  margin: .35rem 0 0;
  color: rgba(226, 232, 240, .82);
  font-size: .95rem;
  max-width: 36rem;
}
.security-hero-badges {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: flex-end;
}
.security-main {
  display: grid;
  gap: 1rem;
}
.security-badge {
  display: inline-block;
  padding: .4rem .75rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.security-badge.is-on {
  background: rgba(34, 197, 94, .18);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, .35);
}
.security-badge.is-off {
  background: rgba(251, 191, 36, .15);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, .35);
}
.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.security-card { margin-bottom: 0; }
.security-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .85rem 1rem;
  align-items: start;
  margin-bottom: 1rem;
}
.security-card-head h2 { margin: 0; font-size: 1.15rem; }
.security-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: linear-gradient(145deg, #fff4ec, #ffe4cc);
  border: 1px solid rgba(255, 106, 0, .2);
}
.security-status {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .35rem .55rem;
  border-radius: 8px;
  white-space: nowrap;
}
.security-status-on { background: #dcfce7; color: #166534; }
.security-status-off { background: #fef3c7; color: #92400e; }
.security-status-pending { background: #dbeafe; color: #1e40af; }
.security-callout {
  padding: .85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 14px;
}
.security-callout-success {
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  border: 1px solid rgba(22, 163, 74, .25);
  color: #065f46;
}
.security-callout-warn {
  background: linear-gradient(145deg, #fffbeb, #fef3c7);
  border: 1px solid rgba(245, 158, 11, .3);
  color: #92400e;
}
.security-setup-steps {
  display: grid;
  gap: .55rem;
  margin-bottom: 1rem;
}
.security-step {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
}
.security-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--orange);
}
.security-qr-wrap {
  text-align: center;
  margin: .5rem 0 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px dashed rgba(255, 106, 0, .35);
}
.security-qr {
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .08);
}
.security-manual-key {
  word-break: break-all;
  padding: .65rem .75rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.security-form { margin-top: .5rem; }
.security-form-inline { margin-top: .65rem; }
.security-enable-btn { width: 100%; }
.security-card-info h3 { margin: 0 0 .75rem; font-size: 1rem; }
.security-info-list {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.security-info-list li + li { margin-top: .45rem; }
.security-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.wd-2fa-methods {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  margin: 0 0 .85rem;
}
.wd-2fa-methods label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: 14px;
}
.wd-2fa-send {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.wd-2fa-send input { flex: 1 1 12rem; min-width: 0; }
.me-hero-text {
  min-width: 0;
  max-width: 100%;
}
.me-name {
  margin: .15rem 0 0;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.02em;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.me-email {
  margin: .2rem 0 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.me-level {
  text-align: right;
  background: #fff;
  border-radius: 14px;
  padding: .65rem .9rem;
  border: 1px solid rgba(255, 106, 0, .2);
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 120px;
}
.me-level strong { color: var(--orange); font-size: 1.05rem; }
.me-security-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .75rem 0 0;
}
.me-password-wrap {
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(0, 0, 0, .08);
}
.me-password-form .form-group { margin-bottom: .75rem; }
.me-actions { overflow: hidden; }
.me-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  align-items: stretch;
  overflow-x: visible;
  padding-bottom: 0;
}
.me-links > a,
.me-links > .btn {
  width: 100%;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}
.me-link-green,
a.me-link-green.btn,
button.me-link-green.btn {
  background: #16a34a !important;
  border-color: #15803d !important;
  color: #fff !important;
}
.me-link-green:hover,
a.me-link-green.btn:hover,
button.me-link-green.btn:hover {
  background: #15803d !important;
  border-color: #166534 !important;
  color: #fff !important;
}
.me-link-logout,
a.me-link-logout.btn {
  background: #dc2626 !important;
  border-color: #b91c1c !important;
  color: #fff !important;
}
.me-link-logout:hover,
a.me-link-logout.btn:hover {
  background: #b91c1c !important;
  border-color: #991b1b !important;
  color: #fff !important;
}

/* Offer modal — Alibaba style */
.offer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.offer-modal {
  width: min(560px, 100%);
  background: linear-gradient(160deg, #1a1a1a 0%, #2b2b2b 55%, #111 100%);
  color: #fff;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  text-align: center;
  padding: 1.4rem 1.4rem 1.6rem;
}
.offer-modal .close {
  position: absolute;
  top: .7rem;
  right: .9rem;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.offer-modal .brand { color: var(--orange); font-weight: 600; margin-bottom: .5rem; }
.offer-modal h2 { margin: .2rem 0 .5rem; font-size: 1.55rem; }
.offer-modal p { color: #cfcfcf; margin: 0 0 1rem; font-size: 14px; }
.offer-visual {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.1rem;
}
.offer-visual img { width: 100%; height: 220px; object-fit: cover; }
.offer-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: var(--ok);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: .55rem .8rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.offer-modal .btn { width: min(240px, 100%); background: #fff; color: #111 !important; }

/* Level tiers modal */
.level-inline {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
}
.level-more-btn {
  border: 0;
  background: transparent;
  color: var(--orange);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: .1rem .35rem;
  border-radius: 6px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.level-more-btn:hover { background: rgba(255, 106, 0, .1); }
.ref-stat-level .level-inline strong { color: var(--ink); font-size: 1.05rem; }
.levels-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.levels-backdrop[hidden] { display: none !important; }
.levels-modal {
  width: min(640px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  background: linear-gradient(165deg, #fff 0%, #fff7f0 55%, #ffe8d4 100%);
  border: 1px solid rgba(255, 106, 0, .25);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
  padding: 1.35rem 1.35rem 1.5rem;
  position: relative;
}
.levels-close {
  position: absolute;
  top: .65rem;
  right: .75rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
}
.levels-head { margin-bottom: 1rem; padding-right: 1.5rem; }
.levels-head h2 { margin: .15rem 0 .35rem; font-size: 1.45rem; }
.levels-summary strong { color: var(--orange); }
.levels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.level-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(255, 106, 0, .18);
  padding: .85rem .9rem;
  box-shadow: 0 4px 14px rgba(255, 106, 0, .08);
}
.level-card.is-current {
  border-color: var(--orange);
  box-shadow: 0 8px 22px rgba(255, 106, 0, .22);
  background: linear-gradient(145deg, #fff, #fff4eb);
}
.level-card.is-achieved { opacity: .92; }
.level-card.is-locked {
  opacity: .72;
  background: #f8f8f8;
  border-style: dashed;
}
.level-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .35rem;
}
.level-num {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #ff861a, #c2410c);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.level-card.is-locked .level-num {
  background: #bbb;
}
.level-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .2rem .5rem;
}
.level-badge-current { background: var(--orange); color: #fff; }
.level-badge-unlocked { background: #e8f7ee; color: #0a7a3e; }
.level-badge-locked { background: #ececec; color: #777; }
.level-card-title {
  margin: 0 0 .25rem;
  font-size: 1.05rem;
  font-weight: 800;
}
.level-card-req {
  margin: 0 0 .45rem;
  font-size: 13px;
  color: #555;
}
.level-card-meta {
  margin: 0;
  padding-left: 1rem;
  font-size: 12px;
  color: #666;
}
.level-card-meta li { margin-bottom: .15rem; }
.level-card-lock-note { margin: .5rem 0 0; }
.levels-section-title {
  margin: 1rem 0 .55rem;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--orange);
}
.level-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
}
.level-icon svg { width: 48px; height: 48px; display: block; filter: drop-shadow(0 4px 8px rgba(0,0,0,.18)); }
.level-card.badge-bronze { background: linear-gradient(165deg, #fff8f0, #fff); border-color: #e8a05a; }
.level-card.badge-silver { background: linear-gradient(165deg, #f4f7fb, #fff); border-color: #8a97a8; }
.level-card.badge-gold { background: linear-gradient(165deg, #fff8dc, #fff); border-color: #d4a017; }
.level-card.badge-stage { background: linear-gradient(165deg, #fff1e6, #fff); border-color: #fb923c; }
.level-card.badge-stage5 { background: linear-gradient(165deg, #fff4eb, #fff); border-color: #ff6a00; }
.level-card.badge-vip-silver { background: linear-gradient(165deg, #eef2f6, #fff); border-color: #94a3b8; }
.level-card.badge-vip-gold { background: linear-gradient(165deg, #fff6d6, #fff); border-color: #f5c542; }
.level-card.badge-vip-diamond { background: linear-gradient(165deg, #fff4e5, #fff); border-color: #fb923c; }
.level-card.is-locked .level-icon { filter: grayscale(1); opacity: .7; }
.me-avatar {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.me-avatar img.me-avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.me-avatar-edit {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: .15rem 0;
  letter-spacing: .02em;
}
.me-hero form.me-avatar-form { margin: 0; }

/* Bottom nav mobile */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, #fffaf6, #fff);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(255, 106, 0, .08);
  z-index: 50;
  padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom));
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #666;
  font-weight: 500;
  padding: .35rem;
  border-radius: 10px;
  margin: 0 .05rem;
  background: transparent;
  box-shadow: none;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
/* Only the current page item is highlighted — never leave multiple marks */
.bottom-nav a.is-active,
.bottom-nav a.active {
  color: var(--orange);
  font-weight: 700;
}
.bottom-nav a.nav-buy.is-active,
.bottom-nav a.nav-buy.active {
  color: #fff;
  font-weight: 800;
  background: linear-gradient(180deg, #ff861a 0%, #ff6a00 55%, #e55f00 100%);
  box-shadow: 0 6px 16px rgba(255,106,0,.45);
}
.bottom-nav a.nav-sell.is-active,
.bottom-nav a.nav-sell.active {
  color: #c2410c;
  font-weight: 800;
}
.bottom-nav .ico { display: block; font-size: 16px; }

/* Soft orange pulse when today's task is done (until 00:00 GMT reset) */
@keyframes taskDonePulse {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.78; filter: brightness(1.12); }
}
.task-done-blink {
  animation: taskDonePulse 1.8s ease-in-out infinite;
}
.nav-links a.is-active.task-done-blink {
  color: #1a1a1a;
  font-weight: 800;
}
.bottom-nav a.is-active.task-done-blink {
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.35);
}
.bottom-nav a.nav-buy.is-active.task-done-blink {
  box-shadow: 0 6px 16px rgba(255,106,0,.45), 0 0 0 2px rgba(255, 106, 0, 0.35);
}
@media (prefers-reduced-motion: reduce) {
  .task-done-blink { animation: none; opacity: 0.88; }
}

.auth-box { width: min(420px, 100%); margin: 2rem auto; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: .65rem; border-bottom: 1px solid var(--line); text-align: left; }
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { background: #1f1f1f; color: #fff; padding: 1rem; }
.admin-side a { display: block; color: #ddd; padding: .5rem .4rem; border-radius: 8px; margin-bottom: .2rem; }
.admin-side a:hover, .admin-side a.is-active { background: #333; color: #fff; }
.admin-main { padding: 1.2rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
/* Wallet: always 2×3 like the mobile screenshot (desktop stays the same clean grid). */
.wallet-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  margin: .6rem 0;
}
.wallet-stats .stat {
  padding: .65rem .7rem .65rem .85rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.wallet-stats .stat .small {
  font-size: 12px;
  line-height: 1.25;
  display: block;
  color: #374151;
}
.wallet-stats .stat b {
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: .2rem;
  line-height: 1.2;
}
.wallet-stats .balance-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.wallet-stats .balance-card .wallet-stat__more {
  margin-top: auto;
  padding-top: .65rem;
  width: 100%;
  box-sizing: border-box;
}
.stat { background: #fff; border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.3rem; margin-top: .3rem; }

@media (max-width: 980px) {
  .home-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .task-highlight { grid-template-columns: 1fr; }
  .task-highlight.nft-task { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .bottom-nav { display: flex; }
  .desk-account-rail { display: none !important; }
  .home-cat-fold {
    display: block;
    margin: 0 0 .85rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .2rem .85rem .35rem;
  }
  .home-cat-fold summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    padding: .45rem 0;
    color: var(--ink);
    list-style-position: outside;
  }
  .home-cat-fold-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: 0 0 .55rem;
  }
  .home-cat-fold-list .cat-item {
    display: inline-block;
    width: auto;
    padding: .35rem .7rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 600;
  }
  body { padding-bottom: 70px; }
  .header-actions .hide-sm { display: none; }
  .wallet-hero { flex-direction: column; align-items: flex-start; }
  .me-hero { grid-template-columns: auto 1fr; }
  .me-level { grid-column: 1 / -1; text-align: left; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
  .ref-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security-hero { grid-template-columns: auto 1fr; }
  .security-hero-badges { grid-column: 1 / -1; justify-self: start; }
  .security-grid { grid-template-columns: 1fr; }
  .levels-grid { grid-template-columns: 1fr; }
  /* One row on mobile: logo | search | burger. Everything can shrink except the
     burger, and min-width:0 on all three is what stops the search bar pushing
     the logo or the button off the edge. */
  .header-row {
    flex-wrap: nowrap;
    gap: .5rem;
    row-gap: 0;
    padding: .55rem 0;
  }
  .desktop-auth { display: none; }
  .desktop-nav { display: none; }
  /* Logo keeps its full width - it never shrinks and is never clipped. */
  .logo {
    order: 1;
    flex: 0 0 auto;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: visible;
  }
  /* Search takes only what is left over, capped, and is pushed to the right so
     the logo sits alone on the left and the burger stays at the end. */
  .search-wrap {
    order: 2;
    flex: 0 1 auto;
    width: auto;
    max-width: 11rem;
    min-width: 0;
    margin-left: auto;
    display: flex;
  }
  .search-wrap input {
    padding: .3rem .6rem;
    font-size: 12px;
    min-width: 0;
  }
  .search-wrap button {
    padding: 0 .7rem;
    font-size: 11.5px;
    font-weight: 600;
  }
  .nav-burger {
    display: inline-flex;
    order: 3;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    margin-left: 0;
    margin-right: 0;
    border-radius: 10px;
  }
  .nav-burger span { width: 16px; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: .55rem; }
  .product-card img { height: 120px; }
  .nft-card .nft-media { aspect-ratio: 1 / 1; }
  .btn-buy { font-size: .95rem; padding: .8rem .75rem; }
  .welcome-bar { flex-direction: column; align-items: stretch; }
  .welcome-bar-top { flex-direction: column; align-items: flex-start; }
  .dashboard-hero-actions { flex-direction: column; align-items: stretch; }
  .dashboard-hero-actions .btn-dashboard-action { max-width: none; width: 100%; }
  .welcome-wallet { width: 100%; text-align: left; }
  /* Was re-inflating the header on real phones and undoing the one-row sizing
     set at 980px, which pushed the logo and burger off the edge. */
  .logo { font-size: 1rem; }
  .search-wrap { max-width: 9.5rem; }
  .search-wrap input { padding: .28rem .55rem; font-size: 11.5px; }
  .search-wrap button { padding: 0 .6rem; font-size: 11px; }
  .nav-burger { width: 34px; height: 34px; }
  .nav-burger span { width: 15px; }
}

/* Mobile runs one step down from desktop. Scaling the root shrinks everything
 * sized in rem/em (headings, buttons, stat figures); the px utilities below are
 * the few that would otherwise stay stuck at desktop size. */
@media (max-width: 560px) {
  html { font-size: 15px; }
  .small { font-size: 12px; }
  .badge { font-size: 11px; }
  table { font-size: 13px; }
  .wallet-stats { gap: .4rem; }
  .wallet-stats .stat { padding: .55rem .55rem .55rem .7rem; }
  .wallet-stats .stat .small { font-size: 11px; line-height: 1.2; }
  .wallet-stats .stat b { font-size: 1.15rem; margin-top: .12rem; }
  .team-box { padding: .6rem .55rem .65rem .75rem; }
  .team-box__label { font-size: .95rem; }
  .team-box__stat b { font-size: .98rem; }
  .team-box__btn { font-size: 12.5px; padding: .48rem .5rem; }
}

@media (max-width: 380px) {
  html { font-size: 14px; }
  .small { font-size: 11.5px; }
  table { font-size: 12px; }
}

/* Marketplace hero — mobile: no clipped / cut-off text (iPhone SE ~320–375) */
@media (max-width: 768px) {
  .market-hero {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    min-height: clamp(240px, 58vh, 420px);
    overflow-x: clip;
    overflow-y: visible;
  }
  .market-hero-media img {
    object-position: 66% 55%;
  }
  .market-hero-inner {
    padding: 1.75rem 1rem;
    max-width: 100%;
  }
  .market-brand {
    font-size: clamp(1.7rem, 9.2vw, 2.55rem);
    letter-spacing: -.03em;
    line-height: 1.1;
  }
  .market-title {
    font-size: clamp(1.05rem, 4.2vw, 1.35rem);
    line-height: 1.35;
    margin: .7rem 0 .45rem;
  }
  .market-sub {
    font-size: clamp(13px, 3.5vw, 15px);
    line-height: 1.5;
  }
}
@media (max-width: 480px) {
  .market-hero {
    min-height: 300px;
    padding: .25rem 0;
  }
  .market-hero-inner {
    padding: 1.5rem .85rem;
  }
  .market-brand {
    font-size: clamp(1.55rem, 8.6vw, 2.05rem);
    letter-spacing: -.025em;
  }
  .market-title {
    font-size: 1.05rem;
    line-height: 1.35;
  }
  .market-sub {
    font-size: 13px;
    line-height: 1.5;
  }
}

.price-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 .85rem;
}
.price-chips a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: 13px;
  color: #444;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.price-chips a.active, .price-chips a:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: #fff4ec;
  font-weight: 700;
  transform: translateY(-1px);
}
.eyebrow { color: var(--orange); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.prose-page h2 { font-size: 1.25rem; margin-top: 1.4rem; }
.prose-page h3 { font-size: 1.05rem; margin-top: 1.1rem; }
.prose-page p, .prose-page li { line-height: 1.65; color: #333; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: 1rem; margin: 1rem 0 2rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
details { margin: .45rem 0; padding: .55rem .7rem; background: #fafafa; border-radius: 8px; border: 1px solid var(--line); }
details summary { cursor: pointer; font-weight: 600; }
.download-hero { margin: 1.2rem 0 2rem; }
.download-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1rem; }
.store-btn {
  display: inline-flex; flex-direction: row; align-items: center; gap: .75rem;
  min-width: 200px; padding: .7rem 1.15rem .7rem .85rem; border-radius: 12px; color: #fff !important;
  background: #111; border: 1px solid #333;
  transition: transform .18s ease, box-shadow .18s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.store-btn-icon { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; line-height: 0; }
.store-btn-icon .store-icon { display: block; width: 36px; height: 36px; }
.store-btn-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; }
.store-btn strong { font-size: 10px; opacity: .85; letter-spacing: .04em; font-weight: 600; }
.store-btn-text > span { font-size: 1.15rem; font-weight: 800; }
.store-btn.play { background: #01875f; border-color: #01875f; }
.store-btn.apple { background: #111; }
.store-btn.disabled { opacity: .85; cursor: default; position: relative; }
.store-btn.disabled:hover { transform: none; box-shadow: none; }
.store-btn em { font-style: normal; font-size: 12px; color: #ffe08a; margin-top: .2rem; }
.flash.warn { background: #fff7ed; border: 1px solid #fdba74; }
.site-footer { background: linear-gradient(180deg, #1a120c, #111); color: #ddd; margin-top: 2rem; padding: 1.5rem 0 5rem; }
.site-footer a { display: block; color: #ccc; font-size: 14px; margin: .25rem 0; }
.site-footer h4 { margin: 0 0 .5rem; color: #fff; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.2rem; }
.footer-bottom { border-top: 1px solid #333; margin-top: 1.2rem; padding-top: .85rem; }
.wa-float {
  position: fixed; left: 14px; bottom: 78px; z-index: 60;
  background: #25D366; color: #fff !important; font-weight: 800; font-size: 13px;
  padding: .55rem .9rem; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.2);
  transition: transform .18s ease;
}
.wa-float:hover { transform: translateY(-2px); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }

/* Auth pages */
.auth-shell { min-height: calc(100vh - 220px); display: flex; align-items: flex-start; justify-content: center; padding: 1.5rem 0 2.5rem; }
.auth-box { width: min(440px, 100%); margin: 0 auto; padding: 1.35rem 1.4rem 1.5rem; }
.auth-box h2 { font-size: 1.55rem; letter-spacing: -.02em; }
.auth-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.auth-tabs a { padding: .35rem .15rem; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.auth-tabs a.active { color: var(--orange); border-bottom-color: var(--orange); }
.check-line { display: flex; gap: .5rem; align-items: center; font-size: 14px; cursor: pointer; }
.check-line input[type="checkbox"] {
  width: 1.1rem; height: 1.1rem; accent-color: var(--orange); flex-shrink: 0;
}
.pass-wrap { display: flex; gap: .4rem; align-items: stretch; }
.pass-wrap input { flex: 1; min-width: 0; }
.eye {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: .55rem .7rem; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--orange);
  min-width: 44px;
}
.auth-switch-link { color: #16a34a; font-weight: 700; text-decoration: underline; }

/* Admin panel — orange brand */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: #f7f2ed; }
.admin-side {
  background: linear-gradient(180deg, #1a120c 0%, #2b1810 100%);
  color: #fff;
  padding: 1.25rem 1rem;
  border-right: 3px solid var(--orange);
  box-shadow: 4px 0 24px rgba(26, 18, 12, .15);
}
.admin-side .logo { color: var(--orange); font-size: 1.25rem; margin-bottom: 1.25rem !important; }
.admin-side .logo span { color: #fff !important; }
.admin-side a {
  display: flex; align-items: center; gap: .35rem;
  color: rgba(255, 235, 220, .85); padding: .55rem .65rem; border-radius: 10px;
  margin-bottom: .15rem; font-size: 14px; font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.admin-side a:hover, .admin-side a.is-active {
  background: rgba(255, 106, 0, .18);
  color: #fff;
}
.admin-side a.is-active { border-left: 3px solid var(--orange); padding-left: calc(.65rem - 3px); }
.admin-main { padding: 1.5rem 1.75rem 2rem; }
.admin-main h1 { margin: 0 0 1rem; font-size: 1.65rem; letter-spacing: -.02em; color: var(--ink); }
.admin-main .stat {
  border: 1px solid rgba(255, 106, 0, .12);
  background: linear-gradient(180deg, #fff 0%, #fffaf6 100%);
  transition: transform .15s ease, box-shadow .15s ease;
}
.admin-main .stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.admin-main .stat b { color: var(--orange-deep); }
.admin-main a.stat-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.admin-main a.stat-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.admin-bal-form {
  display: flex;
  gap: .35rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.admin-bal-field {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin: 0;
  font-weight: 500;
}
.admin-bal-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-soft);
  line-height: 1;
}
.admin-bal-label--bonus { color: #b45309; }
.admin-main .panel { border: 1px solid rgba(255, 106, 0, .1); }
.admin-main table { background: #fff; border-radius: 12px; overflow: hidden; }
.admin-main th { background: #fff4ec; color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.admin-main td .btn-sm { white-space: nowrap; }

.admin-users-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: 1rem 0 .25rem;
  flex-wrap: wrap;
}
.admin-users-pager__nav.is-disabled {
  opacity: .4;
  pointer-events: none;
  cursor: default;
}
.admin-users-pager__dots {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  justify-content: center;
}
.admin-users-pager__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6d0c8;
  border: 2px solid transparent;
  display: inline-block;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.admin-users-pager__dot:hover {
  background: var(--orange);
  transform: scale(1.15);
}
.admin-users-pager__dot.is-active {
  background: var(--orange);
  border-color: #fff4ec;
  box-shadow: 0 0 0 2px rgba(255, 106, 0, .35);
  transform: scale(1.2);
}
.admin-users-pager__ellipsis {
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  padding: 0 .1rem;
}

/* Client panel page headers */
.page-hero { margin: 1rem 0; padding: 1.25rem 1.35rem; border-radius: calc(var(--radius) + 2px); }
.panel h2, .panel h3 { letter-spacing: -.01em; }
.panel-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.panel-table table { min-width: 520px; }
@media (max-width: 980px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding: .85rem; }
  .admin-side .logo { flex: 1 1 100%; margin-bottom: .5rem !important; }
  .admin-side a { flex: 1 1 auto; text-align: center; font-size: 12px; padding: .45rem .5rem; }
  .admin-main { padding: 1rem; }
}

/* Live support chat widget */
.support-chat-fab[hidden],
.support-chat-panel[hidden],
.support-chat-compose[hidden],
.support-prechat[hidden],
.support-chat-messages[hidden],
.support-agent-btn[hidden],
.support-new-chat[hidden],
.support-queue-banner[hidden],
.support-transfer-note[hidden],
.support-chat-lang-live[hidden],
.support-chat-fab-badge[hidden],
.support-rec-bar[hidden],
.support-mic-btn[hidden],
.support-send-btn[hidden] {
  display: none !important;
}
.whatsapp-support-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: none;
  border-radius: 999px;
  padding: .65rem 1rem;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  box-shadow: 0 10px 28px rgba(18, 140, 126, .35);
  text-decoration: none;
  cursor: pointer;
}
.whatsapp-support-fab:hover { filter: brightness(1.05); color: #fff; }
.whatsapp-support-fab-icon { display: block; flex-shrink: 0; }
.whatsapp-support-fab-label { white-space: nowrap; color: #fff; }
.support-chat-fab,
.support-chat-panel,
#supportChatRoot {
  display: none !important;
}
.support-chat-fab-icon { font-size: 1.1rem; line-height: 1; }
.support-chat-fab-label { white-space: nowrap; }
.support-chat-fab-badge {
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 .28rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
}
.support-chat-panel {
  position: fixed;
  right: 1rem;
  bottom: calc(148px + env(safe-area-inset-bottom, 0px));
  width: min(360px, calc(100vw - 2rem));
  max-height: min(520px, 70vh);
  display: flex;
  flex-direction: column;
  background: #efeae2;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  z-index: 10000;
  overflow: hidden;
}
@media (max-width: 980px) {
  html.support-chat-open,
  html.support-chat-open body {
    overflow: hidden;
    overscroll-behavior: none;
    height: 100%;
    touch-action: manipulation;
  }
  body.support-chat-open {
    overflow: hidden;
    overscroll-behavior: none;
  }
  body.support-chat-open .bottom-nav {
    display: none !important;
  }
  .whatsapp-support-fab,
  .support-chat-fab {
    right: .75rem;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    top: auto;
    padding: .55rem .85rem;
    font-size: .85rem;
  }
  .support-chat-panel {
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: none;
    height: 100%;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }
}
.support-chat-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .35rem;
  padding: .65rem .75rem;
  background: #075e54;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
@media (max-width: 980px) {
  .support-chat-head {
    padding: calc(.45rem + env(safe-area-inset-top, 0px)) .55rem .5rem;
  }
}
.support-chat-head-mid {
  flex: 1;
  min-width: 0;
}
.support-chat-head-mid strong { display: block; font-size: 1rem; line-height: 1.2; }
.support-chat-head-sub { display: block; font-size: .72rem; opacity: .85; font-weight: 500; }
.support-chat-head-actions {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
}
.support-chat-lang-live {
  max-width: 7.5rem;
  font-size: .72rem;
  padding: .2rem .3rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: #fff;
}
.support-chat-lang-live option { color: #1a120c; }
.support-new-chat { margin-top: .55rem; }
.support-unread-dot {
  display: inline-block;
  width: .5rem;
  height: .5rem;
  margin-right: .35rem;
  border-radius: 999px;
  background: #2563eb;
  vertical-align: middle;
}
/* Reply box stays reachable without scrolling past a long thread. */
.support-reply-box {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: .5rem;
  border-top: 1px solid var(--line);
}
.support-agent-btn {
  margin-top: .55rem;
  align-self: flex-start;
  border-color: var(--orange);
  color: var(--orange);
  background: #fff;
}
.support-chat-close,
.support-chat-back {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  padding: .15rem .35rem;
  min-width: 2.2rem;
  min-height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.support-msg-img {
  display: block;
  max-width: min(220px, 70vw);
  max-height: 260px;
  width: auto;
  height: auto;
  border-radius: 8px;
  margin-bottom: .25rem;
  cursor: pointer;
}
.support-attach-btn {
  background: transparent;
  border: 0;
  font-size: 1.25rem;
  line-height: 1;
  padding: .35rem .2rem;
  cursor: pointer;
  flex-shrink: 0;
}
.support-attach-btn.is-on { filter: drop-shadow(0 0 4px #00a884); }
.support-mic-btn {
  background: transparent;
  border: 0;
  font-size: 1.2rem;
  padding: .35rem .15rem;
  cursor: pointer;
  flex-shrink: 0;
}
.support-msg-link {
  color: #056162;
  font-weight: 600;
  word-break: break-all;
}
.support-msg-agent .support-msg-link,
.support-msg-bot .support-msg-link { color: #1d4ed8; }
.support-voice {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-width: 150px;
  margin-bottom: .2rem;
}
.support-voice-play {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #00a884;
  color: #fff;
  font-size: .75rem;
  cursor: pointer;
  flex-shrink: 0;
}
.support-voice-time { font-size: .8rem; font-weight: 600; }
.support-voice audio { display: none; }
.support-rec-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  width: 100%;
  color: #dc2626;
  font-weight: 700;
}
.support-chat-compose.is-recording > *:not(.support-rec-bar) { display: none !important; }
.support-rec-dot {
  width: .65rem;
  height: .65rem;
  border-radius: 999px;
  background: #dc2626;
  animation: supportRecPulse 1s ease-in-out infinite;
}
@keyframes supportRecPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.support-rec-cancel {
  background: transparent;
  border: 0;
  color: #64748b;
  font-size: 1.1rem;
  cursor: pointer;
}
.support-send-btn {
  width: 2.55rem;
  height: 2.55rem;
  border: 0;
  border-radius: 999px;
  background: #00a884;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.support-send-btn:disabled { opacity: .55; }
html.kb-open .support-chat-compose,
html.kb-open .mchat-compose {
  padding-bottom: .4rem;
}
@media (max-width: 980px) {
  .support-chat-compose {
    padding: .4rem .45rem calc(.4rem + env(safe-area-inset-bottom, 0px));
    gap: .3rem;
  }
  html.kb-open .support-chat-compose {
    padding-bottom: .35rem;
  }
}
.support-chat-body { flex: 1; overflow: auto; padding: .75rem; background: #efeae2; min-height: 0; }
.support-prechat label { display: block; margin-bottom: .5rem; font-size: .85rem; }
.support-prechat input, .support-prechat select, .support-prechat textarea {
  display: block; width: 100%; margin-top: .2rem; padding: .45rem .55rem;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: .88rem;
}
.support-prechat textarea { resize: vertical; min-height: 4.5rem; }
.support-transfer-note {
  margin: .5rem 0 0;
  padding: .55rem .65rem;
  font-size: .82rem;
  line-height: 1.35;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
}
.support-chat-messages { display: flex; flex-direction: column; gap: .45rem; min-height: 120px; }
.support-msg {
  padding: .45rem .6rem;
  border-radius: 10px;
  font-size: .88rem;
  line-height: 1.35;
  max-width: 92%;
  white-space: pre-wrap;
}
.support-msg-user { align-self: flex-end; background: #d9fdd3; border-bottom-right-radius: 4px; }
.support-msg-bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.support-msg-agent { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.support-chat-compose {
  display: flex; gap: .35rem; padding: .55rem; border-top: 1px solid var(--line);
  background: #f0f2f5; align-items: flex-end; flex-shrink: 0;
  position: relative;
  z-index: 4;
}
.support-chat-compose input,
.support-chat-compose textarea {
  flex: 1 1 auto;
  min-width: 0;
  width: 0;
  padding: .55rem .75rem;
  border: 0;
  border-radius: 22px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.35;
  resize: none;
  min-height: 2.5rem;
  max-height: 7.5rem;
  background: #fff;
  color: #111b21;
  box-shadow: 0 0 0 1px #d1d7db;
}
.top-banner-deposit_bonus { background: linear-gradient(90deg, #14532d, #166534); }
.top-banner-referral_boost { background: linear-gradient(90deg, #1e3a8a, #2563eb); }
.top-banner-bumper_offer {
  background: linear-gradient(90deg, #7c2d12, #ea580c 45%, #f97316);
  font-weight: 700;
  animation: bumperGlow 2.4s ease-in-out infinite;
}
@keyframes bumperGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.1); }
}
.top-banner-notification { background: linear-gradient(90deg, #4c1d95, #7c3aed); }
@media (max-width: 768px) {
  .top-banner {
    font-size: 12px;
    line-height: 1.35;
    padding: .4rem .7rem;
    z-index: 45;
  }
  .top-banner-bumper_offer {
    animation: none; /* avoid mobile filter overflow / paint jank */
  }
  .top-banner-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: .28rem;
    max-width: 100%;
  }
  .top-banner-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .12rem;
    text-align: center;
  }
  .top-banner-desc::before { display: none; }
  .top-banner-meta {
    gap: .35rem .55rem;
  }
  .top-banner-timer {
    font-size: 11px;
    letter-spacing: 0;
  }
  .top-banner-tz { display: none; }
  .top-banner-cta {
    padding: .2rem .65rem;
    font-size: 11.5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 400px) {
  .top-banner { font-size: 11.5px; padding: .35rem .55rem; }
  .top-banner-cta { font-size: 11px; padding: .18rem .5rem; }
}
.admin-side .badge { margin-left: .25rem; font-size: 11px; vertical-align: middle; }

/* ========== Per-page atmosphere (distinct backgrounds) ========== */
body.page-home {
  --bg: #fff4e8;
  --page-accent: #ff6a00;
  --line: #f0d5c0;
  background:
    radial-gradient(980px 460px at 6% -10%, rgba(255, 106, 0, .28), transparent 55%),
    radial-gradient(720px 400px at 100% 0%, rgba(255, 176, 60, .22), transparent 50%),
    radial-gradient(640px 320px at 40% 100%, rgba(194, 65, 12, .08), transparent 55%),
    repeating-linear-gradient(-14deg, transparent, transparent 24px, rgba(255, 106, 0, .03) 24px, rgba(255, 106, 0, .03) 25px),
    var(--bg);
}
body.page-dashboard {
  --bg: #fff1f4;
  --page-accent: #e11d48;
  --orange: #e11d48;
  --orange-bright: #fb7185;
  --orange-dark: #be123c;
  --line: #f8d4dc;
  --shadow: 0 8px 28px rgba(190, 18, 60, .10);
  background:
    radial-gradient(900px 420px at 10% -8%, rgba(251, 113, 133, .28), transparent 55%),
    radial-gradient(700px 380px at 95% 5%, rgba(244, 114, 182, .18), transparent 50%),
    radial-gradient(560px 280px at 50% 100%, rgba(190, 18, 60, .07), transparent 55%),
    repeating-linear-gradient(12deg, transparent, transparent 26px, rgba(225, 29, 72, .025) 26px, rgba(225, 29, 72, .025) 27px),
    var(--bg);
}
body.page-dashboard .site-header::before {
  background: linear-gradient(90deg, #fda4af, #e11d48 45%, #9f1239 85%, #fb7185);
}
body.page-dashboard .market-hero {
  background:
    linear-gradient(118deg, rgba(76, 5, 25, .94) 0%, rgba(157, 23, 77, .7) 45%, rgba(251, 113, 133, .55) 100%),
    linear-gradient(160deg, #4c0519 0%, #e11d48 55%, #fda4af 100%);
}
body.page-login {
  --bg: #fffbeb;
  --page-accent: #ca8a04;
  --line: #f5e6b8;
  background:
    radial-gradient(880px 420px at 12% -6%, rgba(250, 204, 21, .42), transparent 55%),
    radial-gradient(640px 360px at 92% 8%, rgba(251, 191, 36, .28), transparent 52%),
    radial-gradient(520px 280px at 50% 110%, rgba(202, 138, 4, .12), transparent 55%),
    repeating-linear-gradient(8deg, transparent, transparent 22px, rgba(202, 138, 4, .04) 22px, rgba(202, 138, 4, .04) 23px),
    linear-gradient(180deg, #fff7cc 0%, #fffbeb 40%, #fef3c7 100%);
}
body.page-register {
  --bg: #ecfdf5;
  --page-accent: #16a34a;
  --line: #bbf7d0;
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(74, 222, 128, .35), transparent 55%),
    radial-gradient(680px 360px at 96% 4%, rgba(34, 197, 94, .22), transparent 50%),
    radial-gradient(540px 280px at 40% 100%, rgba(22, 163, 74, .1), transparent 55%),
    repeating-linear-gradient(-10deg, transparent, transparent 24px, rgba(22, 163, 74, .035) 24px, rgba(22, 163, 74, .035) 25px),
    linear-gradient(180deg, #d1fae5 0%, #ecfdf5 45%, #bbf7d0 100%);
}
body.page-verify,
body.page-forgot {
  --bg: #fff7ed;
  --page-accent: #ea580c;
  --line: #fed7aa;
  background:
    radial-gradient(820px 400px at 15% -5%, rgba(251, 146, 60, .32), transparent 55%),
    radial-gradient(600px 320px at 90% 10%, rgba(253, 186, 116, .25), transparent 50%),
    linear-gradient(165deg, #ffedd5 0%, #fff7ed 50%, #fed7aa 100%);
}
body.page-wallet {
  --bg: #eff6ff;
  --page-accent: #2563eb;
  --orange: #2563eb;
  --orange-bright: #3b82f6;
  --orange-dark: #1d4ed8;
  --line: #bfdbfe;
  --shadow: 0 8px 28px rgba(37, 99, 235, .12);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(96, 165, 250, .35), transparent 55%),
    radial-gradient(680px 360px at 95% 5%, rgba(59, 130, 246, .2), transparent 50%),
    radial-gradient(520px 260px at 50% 100%, rgba(29, 78, 216, .08), transparent 55%),
    repeating-linear-gradient(16deg, transparent, transparent 24px, rgba(37, 99, 235, .03) 24px, rgba(37, 99, 235, .03) 25px),
    var(--bg);
}
body.page-wallet .site-header::before {
  background: linear-gradient(90deg, #93c5fd, #2563eb 40%, #1e40af 80%, #60a5fa);
}
body.page-team {
  --bg: #fff5f2;
  --page-accent: #f43f5e;
  --orange: #f43f5e;
  --orange-bright: #fb7185;
  --orange-dark: #e11d48;
  --line: #fecdd3;
  background:
    radial-gradient(860px 400px at 10% -6%, rgba(251, 113, 133, .3), transparent 55%),
    radial-gradient(700px 360px at 95% 8%, rgba(45, 212, 191, .22), transparent 50%),
    radial-gradient(500px 260px at 45% 100%, rgba(244, 63, 94, .08), transparent 55%),
    linear-gradient(160deg, #ffe4e6 0%, #fff5f2 45%, #ccfbf1 100%);
}
body.page-team .site-header::before {
  background: linear-gradient(90deg, #fda4af, #f43f5e 40%, #2dd4bf 85%, #fb7185);
}
body.page-sales {
  --bg: #f0fdf4;
  --page-accent: #0d9488;
  --orange: #0d9488;
  --orange-bright: #14b8a6;
  --orange-dark: #0f766e;
  --line: #99f6e4;
  background:
    radial-gradient(880px 400px at 8% -8%, rgba(45, 212, 191, .3), transparent 55%),
    radial-gradient(640px 340px at 96% 6%, rgba(52, 211, 153, .22), transparent 50%),
    repeating-linear-gradient(-8deg, transparent, transparent 24px, rgba(13, 148, 136, .03) 24px, rgba(13, 148, 136, .03) 25px),
    linear-gradient(180deg, #ccfbf1 0%, #f0fdf4 50%, #d1fae5 100%);
}
body.page-sales .site-header::before {
  background: linear-gradient(90deg, #5eead4, #0d9488 45%, #059669 85%, #2dd4bf);
}
body.page-buy {
  --bg: #fff8f1;
  --page-accent: #f97316;
  --line: #fdba74;
  background:
    radial-gradient(900px 420px at 10% -8%, rgba(249, 115, 22, .28), transparent 55%),
    radial-gradient(680px 360px at 95% 5%, rgba(251, 146, 60, .2), transparent 50%),
    linear-gradient(170deg, #ffedd5 0%, #fff8f1 48%, #fed7aa 100%);
}
body.page-product {
  --bg: #fff6ef;
  --page-accent: #ea580c;
  --line: #f5d0b5;
  background:
    radial-gradient(860px 400px at 12% -6%, rgba(253, 186, 116, .35), transparent 55%),
    radial-gradient(640px 340px at 90% 10%, rgba(254, 215, 170, .28), transparent 50%),
    radial-gradient(480px 240px at 50% 100%, rgba(234, 88, 12, .06), transparent 55%),
    linear-gradient(155deg, #ffecd9 0%, #fff6ef 55%, #ffe8d4 100%);
}
body.page-profile {
  --bg: #faf6f1;
  --page-accent: #b45309;
  --orange: #b45309;
  --orange-bright: #d97706;
  --orange-dark: #92400e;
  --line: #e7d5c0;
  background:
    radial-gradient(880px 400px at 10% -6%, rgba(217, 119, 6, .22), transparent 55%),
    radial-gradient(640px 340px at 95% 8%, rgba(120, 113, 108, .14), transparent 50%),
    linear-gradient(165deg, #f5e6d3 0%, #faf6f1 50%, #e7e5e4 100%);
}
body.page-profile .site-header::before {
  background: linear-gradient(90deg, #fbbf24, #b45309 45%, #78716c 85%, #d97706);
}
body.page-about {
  --bg: #f0f9ff;
  --page-accent: #0284c7;
  --line: #bae6fd;
  background:
    radial-gradient(860px 400px at 10% -6%, rgba(56, 189, 248, .28), transparent 55%),
    radial-gradient(640px 340px at 92% 8%, rgba(14, 165, 233, .18), transparent 50%),
    linear-gradient(160deg, #e0f2fe 0%, #f0f9ff 50%, #dbeafe 100%);
}
body.page-help {
  --bg: #ecfeff;
  --page-accent: #0891b2;
  --line: #a5f3fc;
  background:
    radial-gradient(860px 400px at 8% -6%, rgba(34, 211, 238, .3), transparent 55%),
    radial-gradient(640px 340px at 95% 8%, rgba(6, 182, 212, .2), transparent 50%),
    linear-gradient(165deg, #cffafe 0%, #ecfeff 48%, #a5f3fc 100%);
}
body.page-download {
  --bg: #f8fafc;
  --page-accent: #ea580c;
  --line: #e2e8f0;
  background:
    radial-gradient(880px 400px at 10% -8%, rgba(255, 106, 0, .2), transparent 55%),
    radial-gradient(700px 360px at 95% 5%, rgba(51, 65, 85, .12), transparent 50%),
    linear-gradient(170deg, #fff7ed 0%, #f8fafc 45%, #e2e8f0 100%);
}

/* Auth forms: high contrast panels on colorful pages */
body.page-login .auth-box,
body.page-register .auth-box,
body.page-verify .auth-box,
body.page-forgot .auth-box {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(26, 18, 12, .08);
  box-shadow: 0 18px 42px rgba(26, 18, 12, .12);
  color: #1f1410;
}
body.page-login .auth-box h2,
body.page-register .auth-box h2,
body.page-verify .auth-box h2,
body.page-forgot .auth-box h2 {
  color: #1a120c;
}
body.page-login .site-header::before {
  background: linear-gradient(90deg, #fde047, #eab308 45%, #ca8a04 85%, #facc15);
}
body.page-register .site-header::before {
  background: linear-gradient(90deg, #86efac, #22c55e 45%, #15803d 85%, #4ade80);
}
body.page-login .auth-tabs a.active {
  color: #a16207;
  border-bottom-color: #ca8a04;
}
body.page-register .auth-switch-link { color: #15803d; }

/* Admin: charcoal with orange accents */
body.page-admin {
  --bg: #1c1917;
  --page-accent: #ff6a00;
  background: #1c1917;
  color: #f5f5f4;
}
body.page-admin .admin-layout {
  background:
    radial-gradient(700px 400px at 0% 0%, rgba(255, 106, 0, .14), transparent 55%),
    linear-gradient(180deg, #292524 0%, #1c1917 40%, #0c0a09 100%);
}
body.page-admin .admin-main {
  color: #1f1410;
  background:
    radial-gradient(600px 280px at 90% 0%, rgba(255, 106, 0, .08), transparent 55%),
    #f5f0eb;
  border-radius: 0 0 0 18px;
  min-height: 100vh;
}
body.page-admin .admin-side {
  background: linear-gradient(180deg, #0c0a09 0%, #1c1917 55%, #292524 100%);
}

/* Soften dashboard welcome bar into rose when logged in on home */
body.page-dashboard .welcome-bar {
  background: linear-gradient(135deg, #4c0519 0%, #9f1239 55%, #e11d48 100%);
  border-color: rgba(251, 113, 133, .45);
}

/* ===== Confirmation dialog (data-confirm) ================================= */
body.ui-modal-open { overflow: hidden; }

.ui-confirm {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(12, 10, 9, .58);
  backdrop-filter: blur(3px);
  animation: uiFadeIn .16s ease-out;
}
.ui-confirm[hidden] { display: none !important; }

.ui-confirm__card {
  width: min(440px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: #fff;
  color: #1f1410;
  border-radius: 18px;
  border: 1px solid rgba(26, 18, 12, .08);
  box-shadow: 0 26px 70px rgba(12, 10, 9, .4);
  padding: 1.25rem 1.25rem 1.1rem;
  font-family: var(--font);
  animation: uiPopIn .2s cubic-bezier(.2, .9, .3, 1.1);
  border-top: 4px solid var(--bad);
}
.ui-confirm__card[data-tone="warn"] { border-top-color: var(--warn); }
.ui-confirm__card[data-tone="primary"] { border-top-color: var(--orange); }

.ui-confirm__top {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}
.ui-confirm__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  background: rgba(239, 68, 68, .12);
  color: var(--bad);
}
.ui-confirm__card[data-tone="warn"] .ui-confirm__icon {
  background: rgba(245, 158, 11, .14);
  color: #b45309;
}
.ui-confirm__card[data-tone="primary"] .ui-confirm__icon {
  background: rgba(255, 106, 0, .12);
  color: var(--orange-dark);
}
.ui-confirm__head { min-width: 0; }
.ui-confirm__title {
  margin: .1rem 0 .3rem;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
}
.ui-confirm__msg {
  margin: 0;
  font-size: .93rem;
  line-height: 1.5;
  color: #4a3a30;
  overflow-wrap: anywhere;
}

.ui-confirm__meta {
  margin: .85rem 0 0;
  padding: .6rem .75rem;
  border-radius: 12px;
  background: #faf6f2;
  border: 1px solid var(--line);
  display: grid;
  gap: .2rem;
}
.ui-confirm__meta[hidden] { display: none !important; }
.ui-confirm__meta-row {
  font-size: .84rem;
  color: #5c4a3d;
  overflow-wrap: anywhere;
}

.ui-confirm__ack {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  margin: .85rem 0 0;
  padding: .6rem .7rem;
  border-radius: 12px;
  background: rgba(239, 68, 68, .06);
  border: 1px dashed rgba(239, 68, 68, .35);
  font-size: .86rem;
  line-height: 1.4;
  cursor: pointer;
  color: #7a2222;
}
.ui-confirm__ack[hidden] { display: none !important; }
.ui-confirm__ack input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: .1rem 0 0;
  accent-color: var(--bad);
  cursor: pointer;
}

.ui-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: 1.05rem;
  flex-wrap: wrap;
}
.ui-confirm__actions .btn { min-width: 104px; }
.ui-confirm__ok:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.ui-confirm__card[data-tone="danger"] .ui-confirm__ok {
  background: linear-gradient(135deg, #ef4444, #b42318);
  border-color: #b42318;
  color: #fff !important;
}
.ui-confirm__card[data-tone="warn"] .ui-confirm__ok {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  border-color: #b45309;
  color: #fff !important;
}

/* ===== Processing overlay (data-processing) =============================== */
.ui-processing {
  position: fixed;
  inset: 0;
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(12, 10, 9, .66);
  backdrop-filter: blur(4px);
  animation: uiFadeIn .16s ease-out;
}
.ui-processing[hidden] { display: none !important; }

.ui-processing__card {
  width: min(400px, 100%);
  background: linear-gradient(170deg, #fff 0%, #fffaf5 100%);
  color: #1f1410;
  border-radius: 20px;
  border: 1px solid rgba(26, 18, 12, .07);
  box-shadow: 0 28px 74px rgba(12, 10, 9, .45);
  padding: 1.7rem 1.4rem 1.4rem;
  text-align: center;
  font-family: var(--font);
  animation: uiPopIn .22s cubic-bezier(.2, .9, .3, 1.1);
}

.ui-processing__dial {
  position: relative;
  width: 74px;
  height: 74px;
  margin: 0 auto .95rem;
}
.ui-processing__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid rgba(255, 106, 0, .18);
  border-top-color: var(--orange);
  border-right-color: var(--orange-bright);
  animation: uiSpin .85s linear infinite;
}
.ui-processing__mark {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .22s ease-out, transform .28s cubic-bezier(.2, .9, .3, 1.4);
}
.ui-processing__card[data-state="done"] .ui-processing__ring {
  animation: none;
  border-color: var(--ok);
}
.ui-processing__card[data-state="done"] .ui-processing__mark {
  opacity: 1;
  transform: scale(1);
  color: var(--ok);
  background: rgba(22, 163, 74, .1);
}
.ui-processing__card[data-state="done"] .ui-processing__mark::before { content: "✓"; }
.ui-processing__card[data-state="fail"] .ui-processing__ring {
  animation: none;
  border-color: var(--bad);
}
.ui-processing__card[data-state="fail"] .ui-processing__mark {
  opacity: 1;
  transform: scale(1);
  color: var(--bad);
  background: rgba(239, 68, 68, .1);
}
.ui-processing__card[data-state="fail"] .ui-processing__mark::before { content: "!"; }

.ui-processing__title {
  margin: 0 0 .4rem;
  font-size: 1.16rem;
  font-weight: 700;
}
.ui-processing__step {
  margin: 0;
  min-height: 2.5em;
  font-size: .9rem;
  line-height: 1.45;
  color: #5c4a3d;
  overflow-wrap: anywhere;
}
.ui-processing__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 106, 0, .14);
  overflow: hidden;
  margin: .95rem 0 .7rem;
}
.ui-processing__bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--orange-bright));
}
.ui-processing__card[data-state="done"] .ui-processing__bar > i {
  background: linear-gradient(90deg, #22c55e, var(--ok));
}
.ui-processing__card[data-state="fail"] .ui-processing__bar > i {
  background: linear-gradient(90deg, #f87171, var(--bad));
}
.ui-processing__note {
  margin: 0;
  font-size: .76rem;
  color: var(--muted);
}
.ui-processing__note[hidden] { display: none !important; }
.ui-processing__actions { margin-top: 1rem; }
.ui-processing__actions[hidden] { display: none !important; }
.ui-processing__actions .btn { min-width: 130px; }

/* All-tasks-complete congratulations */
.tasks-done-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, .48);
  animation: uiFadeIn .2s ease;
}
.tasks-done-modal[hidden] { display: none !important; }
.tasks-done-modal__card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.15rem;
  text-align: center;
  box-shadow: 0 24px 48px rgba(15, 23, 42, .22);
  animation: uiPopIn .28s ease;
}
.tasks-done-modal__emoji { font-size: 2.2rem; line-height: 1; margin-bottom: .35rem; }
.tasks-done-modal__title { margin: 0 0 .45rem; font-size: 1.2rem; }
.tasks-done-modal__msg { margin: 0 0 .9rem; color: #334155; line-height: 1.45; }
.tasks-done-modal__cash {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin: 0 auto .95rem;
  padding: .75rem .9rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff8f1, #fff1e4);
  border: 1px solid #ffd7b0;
}
.tasks-done-modal__cash strong {
  font-size: 1.45rem;
  color: var(--orange);
  font-weight: 800;
}
.tasks-done-modal__ok { min-width: 140px; }

.support-msg-typing {
  align-self: flex-start;
  background: #fff;
  min-width: 3.6rem;
  padding: .55rem .7rem .45rem;
  font-style: normal;
  opacity: 1;
}
.support-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: .22rem;
  height: 1rem;
}
.support-typing-dots i {
  display: block;
  width: .38rem;
  height: .38rem;
  border-radius: 999px;
  background: #667781;
  animation: supportTypingBounce 1.2s infinite ease-in-out;
}
.support-typing-dots i:nth-child(2) { animation-delay: .15s; }
.support-typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes supportTypingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .45; }
  40% { transform: translateY(-4px); opacity: 1; }
}
.support-ticks {
  display: block;
  text-align: right;
  font-size: .72rem;
  line-height: 1;
  margin-top: .18rem;
  letter-spacing: -.12em;
  color: #8696a0;
  font-weight: 700;
}
.support-ticks.is-read { color: #53bdeb; }
.support-msg-user .support-ticks { color: #62757f; }
.support-msg-user .support-ticks.is-read { color: #53bdeb; }
.support-queue-banner {
  margin: .35rem 0 .55rem;
  padding: .65rem .75rem;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: .86rem;
  line-height: 1.4;
}
.support-queue-banner[hidden] { display: none !important; }

@keyframes uiSpin { to { transform: rotate(360deg); } }
@keyframes uiFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes uiPopIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ui-confirm,
  .ui-confirm__card,
  .ui-processing,
  .ui-processing__card { animation: none; }
  .ui-processing__ring { animation-duration: 2s; }
}

/* ===== Member / people lists (admin) ===================================== */
/* Full names must never be clipped: wrap instead of truncate. */
.member-name {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  min-width: 9rem;
  max-width: 18rem;
  font-weight: 600;
  line-height: 1.35;
}
.member-name__full {
  display: block;
  min-width: 0;
}
.member-name__sub {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-members-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin: .85rem 0 .1rem;
}
.admin-members-more[hidden],
.admin-members-more .btn[hidden] { display: none !important; }
.admin-members-more .btn { min-width: 9rem; }
.admin-member-row[hidden] { display: none !important; }

/* ===== Page-open reveal (client site only; overlay never hides content) === */
.an-page-open {
  position: fixed;
  inset: 0;
  z-index: 35;
  pointer-events: none;
  overflow: hidden;
  animation: anPageOpenHide .01s linear .7s forwards;
}
.an-page-open.is-done,
.an-page-open[data-done] { display: none !important; }
.an-page-open__iris {
  position: absolute;
  right: 10px;
  bottom: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  animation: anPageIris .56s cubic-bezier(.22, .82, .28, 1) both;
}
@keyframes anPageIris {
  0% { transform: scale(.35); box-shadow: 0 0 0 200vmax #1a120c; opacity: 1; }
  78% { opacity: 1; }
  100% { transform: scale(280); box-shadow: 0 0 0 200vmax #1a120c; opacity: 0; }
}
@keyframes anPageOpenHide {
  to { visibility: hidden; opacity: 0; }
}

/* Sell Now — Waiting / Sold */
.bought-tabs {
  display: flex;
  gap: .65rem 1rem;
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .5rem;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}
.bought-tabs a {
  padding: .35rem .15rem;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}
.bought-tabs a.is-active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.bought-list {
  min-width: 0;
  max-width: 100%;
}
.bought-action {
  margin-bottom: 1rem;
}
.task-highlight.bought-order {
  margin-bottom: .8rem;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: 72px minmax(0, 1fr);
}
.task-highlight.bought-order img {
  width: 72px;
  height: 72px;
}
.task-highlight.bought-order > :last-child {
  grid-column: 1 / -1;
}
.task-highlight.bought-order .btn {
  width: 100%;
}
.bought-order.is-claimable {
  outline: 2px solid rgba(22, 163, 74, .35);
  outline-offset: 2px;
}
@media (min-width: 640px) {
  .task-highlight.bought-order {
    grid-template-columns: 100px minmax(0, 1fr) auto;
  }
  .task-highlight.bought-order img {
    width: 100px;
    height: 80px;
  }
  .task-highlight.bought-order > :last-child {
    grid-column: auto;
  }
  .task-highlight.bought-order .btn {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .an-page-open { display: none !important; }
}

/* Withdraw / Wallet Address page */
.wd-addr-grid {
  display: grid;
  gap: .85rem;
}
.wd-addr-card {
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  background: #fff;
  min-width: 0;
  box-shadow: 0 8px 22px rgba(194, 65, 12, .06);
}
.wd-addr-single {
  max-width: 36rem;
  margin: 0 0 1rem;
}
.wd-addr-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .55rem;
}
.wd-addr-card h3 {
  margin: 0;
  font-size: 1.05rem;
}
.wd-addr-value {
  word-break: break-all;
  font-size: 13px;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.wd-addr-form .form-group { margin-bottom: .65rem; }
.wd-addr-card.is-approved { border-color: rgba(22, 163, 74, .38); }
.wd-addr-card.is-pending { border-color: rgba(245, 158, 11, .45); }
.wd-addr-card.is-rejected { border-color: rgba(239, 68, 68, .4); }
.wd-addr-net {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}
.wd-addr-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #ff861a, #c2410c);
  box-shadow: 0 6px 16px rgba(255, 106, 0, .28);
}
.wd-addr-saved {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin: .35rem 0 .15rem;
}
.wd-addr-saved .wd-addr-value { flex: 1; min-width: 0; }
.wd-addr-ok {
  margin: .5rem 0;
  padding: .55rem .7rem;
  border-radius: 10px;
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  border: 1px solid rgba(22, 163, 74, .25);
  color: #065f46;
}
.wd-custom-extras {
  margin: 0 0 .85rem;
  padding: .75rem .8rem .55rem;
  border: 1px dashed rgba(194, 65, 12, .35);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff7ed, #fff);
}
.wd-custom-extras-title {
  margin: 0;
  font-weight: 800;
  font-size: .95rem;
}
.wd-kind-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
}
.wd-kind-opt {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.wd-kind-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wd-kind-opt span {
  display: block;
  text-align: center;
  padding: .55rem .4rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .12);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}
.wd-kind-opt input:focus-visible + span {
  outline: 2px solid #c2410c;
  outline-offset: 2px;
}
.wd-kind-opt input:checked + span {
  border-color: #c2410c;
  background: #fff7ed;
  color: #9a3412;
  box-shadow: 0 0 0 1px #c2410c inset;
}
.wd-page-hero { margin-bottom: 1rem; }
.wd-page-steps {
  display: grid;
  gap: .75rem;
  margin: 0 0 1rem;
}
.wd-page-step {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem .85rem;
}
.wd-page-aside { margin-top: 1rem; }
@media (min-width: 560px) {
  .wd-kind-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 800px) {
  .wd-addr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wd-page-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .me-security-actions .btn { flex: 1 1 calc(50% - .5rem); text-align: center; }
}

/* Laptop / desktop: compact header search bar.
   Was flex:1 1 auto so it stretched across the whole header and read as heavy. */
@media (min-width: 981px) {
  .search-wrap {
    flex: 0 1 300px;
    max-width: 300px;
    min-width: 10rem;
    border-width: 1px;
    box-shadow: 0 2px 8px rgba(255, 106, 0, .10);
  }
  .search-wrap:focus-within { box-shadow: 0 3px 12px rgba(255, 106, 0, .18); }
  .search-wrap input { padding: .45rem .85rem; font-size: 13.5px; }
  .search-wrap button { padding: 0 1rem; font-size: 13.5px; font-weight: 600; }
}

/* Team tiers: A = direct (8%), B = 2nd level (4%), C = 3rd level (2%). */
.tier-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 .75rem;
}
.tier-filter a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .7rem;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  white-space: nowrap;
}
.tier-filter a span {
  font-weight: 700;
  font-size: 11.5px;
  padding: 0 .4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .07);
}
.tier-filter a.active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}
.tier-filter a.active span { background: rgba(255, 255, 255, .28); }

.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 .4rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #9aa0a6;
}
.tier-badge.tier-a { background: #ff6a00; }
.tier-badge.tier-b { background: #2f7de1; }
.tier-badge.tier-c { background: #2fa96b; }

/* Team tier side strip: A = direct, B and C = indirect. */
.ref-with-strip {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  margin: .85rem 0 0;
}
.ref-with-strip__main { flex: 1 1 auto; min-width: 0; }
/* One card in this row, so stop the 4-column grid leaving three empty tracks. */
.ref-with-strip__main .ref-stats {
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
}
.team-strip {
  flex: 0 0 auto;
  width: 7rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .4rem;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 12px;
  background: rgba(0, 0, 0, .02);
}
.team-strip__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: .25rem;
  padding: .3rem .4rem;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, .07);
}
.team-strip__tag {
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #9aa0a6;
}
.team-strip__row.tier-a .team-strip__tag { background: #ff6a00; }
.team-strip__row.tier-b .team-strip__tag { background: #2f7de1; }
.team-strip__row.tier-c .team-strip__tag { background: #2fa96b; }
.team-strip__count { font-weight: 800; font-size: 13px; }
.team-strip__kind {
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  min-width: .7rem;
  text-align: right;
}
.team-strip__legend {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 9.5px;
  color: #6b7280;
  text-align: center;
  line-height: 1.35;
  padding: .2rem .1rem 0;
}
@media (max-width: 560px) {
  .ref-with-strip { flex-direction: column; }
  .team-strip { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .team-strip__row { flex: 1 1 4.5rem; }
  /* Strip is a row on small screens, so the legend reads on one line too. */
  .team-strip__legend {
    flex: 1 1 100%;
    flex-direction: row;
    justify-content: center;
    gap: .5rem;
  }
}

/* Floating bumper-offer sticker — VIP gold, right edge, slides in after page open. */
.bumper-sticker {
  position: fixed;
  right: 1rem;
  bottom: calc(152px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: 9.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .8rem .6rem .7rem;
  text-align: center;
  border-radius: 14px;
  border: 1px solid #d9a441;
  background: linear-gradient(160deg, #fff6dc 0%, #ffe6a8 45%, #f7cf72 100%);
  box-shadow: 0 10px 26px rgba(160, 110, 10, .3);
  transform: translateX(120%);
  animation: bumperIn .5s cubic-bezier(.2, .8, .3, 1) .9s forwards;
}
.bumper-sticker.is-out {
  animation: none;
  transform: translateX(120%);
  transition: transform .26s ease-in, opacity .26s ease-in;
  opacity: 0;
}
@keyframes bumperIn {
  from { transform: translateX(120%); }
  to   { transform: translateX(0); }
}
.bumper-sticker__close {
  position: absolute;
  top: .15rem;
  right: .3rem;
  border: 0;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  color: #7a5a10;
  cursor: pointer;
  padding: .15rem .2rem;
}
.bumper-sticker__kicker {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a6410;
}
.bumper-sticker__img {
  width: 100%;
  max-height: 3.4rem;
  object-fit: cover;
  border-radius: 8px;
}
.bumper-sticker__title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  color: #4a3405;
}
.bumper-sticker__desc {
  font-size: 10.5px;
  line-height: 1.3;
  color: #6b4e0c;
}
.bumper-sticker__timer {
  font-size: 10px;
  font-weight: 700;
  color: #7a5a10;
}
.bumper-sticker__cta {
  margin-top: .1rem;
  width: 100%;
  padding: .4rem .5rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff861a, #ff6a00);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
}
@media (prefers-reduced-motion: reduce) {
  .bumper-sticker { animation: none; transform: translateX(0); }
}

/* Verified business profile */
.page-verify {
  --page-accent: #1e3a5f;
}
.vbp-hero {
  position: relative;
  margin: 1rem 0 1.15rem;
  padding: 1.35rem 1.35rem 1.45rem;
  border-radius: calc(var(--radius) + 2px);
  color: #f8f4ea;
  background:
    radial-gradient(420px 180px at 92% 0%, rgba(212, 175, 55, .28), transparent 60%),
    linear-gradient(135deg, #10233f 0%, #1e3a5f 48%, #0b1b33 100%);
  border: 1px solid rgba(212, 175, 55, .38);
  box-shadow: 0 16px 40px rgba(16, 35, 63, .28);
}
.vbp-hero .eyebrow { color: #e4c56a; margin: 0; }
.vbp-title {
  margin: .2rem 0 0;
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}
.vbp-sub {
  margin: .45rem 0 0;
  max-width: 38rem;
  color: rgba(248, 244, 234, .82);
  font-size: .95rem;
  line-height: 1.5;
}
.vbp-seal {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: inline-block;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #10233f;
  background: linear-gradient(180deg, #f6e7a8, #d4af37);
}
.vbp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, .7fr);
  gap: 1rem;
  align-items: start;
}
.vbp-badge {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(30, 58, 95, .16);
  background: #fff;
}
.vbp-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 1rem 0 0;
}
.vbp-fact {
  padding: .75rem .85rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px solid var(--line);
}
.vbp-fact span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.vbp-fact strong {
  display: block;
  margin-top: .2rem;
  font-size: 1rem;
  color: #10233f;
}
.vbp-fact a { color: inherit; }
.vbp-ok { color: #166534 !important; }
.vbp-note { margin: .9rem 0 0; }
.vbp-side h2 { margin: 0 0 .75rem; font-size: 1.15rem; }
.vbp-qr-wrap {
  text-align: center;
  padding: 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px dashed rgba(30, 58, 95, .28);
}
.vbp-qr-wrap img {
  width: 220px;
  height: 220px;
  background: #fff;
  border-radius: 10px;
}
.vbp-link {
  text-align: center;
  font-weight: 700;
  margin: .75rem 0 0;
  word-break: break-all;
}
.vbp-steps {
  margin: 1rem 0 1.1rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.vbp-steps li + li { margin-top: .4rem; }
.vbp-side .btn { width: 100%; margin-top: .45rem; text-align: center; }
.vbp-legal { margin-top: 1rem; }
@media (max-width: 800px) {
  .vbp-layout { grid-template-columns: 1fr; }
  .vbp-seal { position: static; margin-top: .85rem; }
}
@media (max-width: 560px) {
  .vbp-facts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bumper-sticker {
    width: auto;
    right: .75rem;
    left: auto;
    top: auto;
    bottom: calc(182px + env(safe-area-inset-bottom, 0px));
    max-width: 8.5rem;
    padding: .6rem .5rem .55rem;
    transform: translateX(120%);
    animation-name: bumperInMobile;
  }
  .bumper-sticker.is-out { transform: translateX(120%); }
  @keyframes bumperInMobile {
    from { transform: translateX(120%); }
    to   { transform: translateX(0); }
  }
}
