/* The activity cards are shared by server-rendered home and the activity list. */
.bh-refined-theme .bh-surface[data-variant] .activity-card.activity-card--image {
  border: 1px solid #39313f;
  border-radius: 15px;
  background: #17151a;
  box-shadow: none;
}
.bh-refined-theme .bh-surface[data-variant] .activity-card:focus-visible {
  outline: 2px solid #c9abff;
  outline-offset: 2px;
}
@media (hover: hover) {
  .bh-refined-theme .bh-surface[data-variant] .activity-card:hover {
    border-color: #9672bc;
  }
}

#platformActivityModal {
  background: rgb(0 0 0 / 76%);
}
.bh-refined-theme body.bh-surface #platformActivityModal .platform-activity-box {
  background: #121115;
  color: #f8f6fa;
  border: 1px solid #463d50;
  border-radius: 18px;
  box-shadow: 0 18px 60px #0009;
}
.bh-refined-theme body.bh-surface #platformActivityModal .platform-head {
  background: #19161d;
  border-color: #372f40;
}
.bh-refined-theme body.bh-surface #platformActivityModal .platform-head > strong {
  color: #f7f4fb;
}
#platformActivityModal .platform-close {
  color: #ded8e7;
  background: #302937;
}
#platformActivityModal .platform-activity-cover {
  background: #0c0b0e;
}
/* Pasted rules containing explicit colors retain their original reading surface. */
.bh-refined-theme body.bh-surface #platformActivityModal #platformActivityContent:not(:has([style*="color" i])) {
  background: #18161c;
  color: #e3dfe8;
}
#platformActivityContent:not(:has([style*="color" i])) :is(h1, h2, h3, h4) {
  color: #faf8ff;
}
#platformActivityContent:not(:has([style*="color" i])) :is(th, blockquote) {
  background: #292330;
  color: #f8f1ff;
}
#platformActivityContent:not(:has([style*="color" i])) :is(th, td, blockquote) {
  border-color: #4d4358;
}
#platformActivityModal .platform-activity-loading {
  color: #a79eae;
}
#platformActivityModal .activity-contact {
  padding: 16px 20px 20px;
  text-align: center;
}
#platformActivityModal .activity-contact-button,
#page-offers .ot-cta:not(:disabled) {
  border: 1px solid #ac83f7;
  border-radius: 999px;
  background: linear-gradient(105deg, #6245dc, #9237c4);
  box-shadow: inset 0 1px 0 #ffffff24;
  color: #fff;
  font-weight: 650;
}
#platformActivityModal .activity-contact-button {
  min-height: 44px;
  width: min(100%, 320px);
  padding: 8px 18px;
  cursor: pointer;
}
#platformActivityModal .activity-contact-button:focus-visible,
#page-offers :is(.ot-tabs button, .ot-cta, .soft-button):focus-visible {
  outline: 2px solid #ddcaff;
  outline-offset: 2px;
}

/* The reference uses a simple title line above the poster feed and task tabs. */
.xh-page-bar {
  min-height: 52px; display: grid; grid-template-columns: 44px minmax(0,1fr) 44px;
  align-items: center; gap: 8px; border-bottom: 1px solid #25242a; margin-bottom: 15px;
}
.xh-page-bar h1 { margin: 0; text-align: center; color: #fafafa; font-size: 20px; font-weight: 680; }
.xh-page-bar .xh-back, .xh-page-bar .xh-refresh {
  display: grid; width: 42px; height: 42px; padding: 0; place-items: center;
  border: none; border-radius: 50%; background: transparent; color: #f4f3f6; cursor: pointer;
}
.xh-back::before, .xh-next::after {
  content: ""; display: block; width: 9px; height: 9px; border: solid currentColor; border-width: 0 1.7px 1.7px 0;
}
.xh-back::before { transform: rotate(135deg); }
.xh-next::after { width: 6px; height: 6px; transform: rotate(-45deg); }
.xh-page-bar .xh-refresh { font-size: 26px; justify-self: end; }
.xh-page-bar .xh-refresh:disabled { opacity: .5; }
#page-activity .xh-poster-wall, #page-offers .xh-task-page, #page-my .xh-member-view {
  max-width: 1080px; margin-inline: auto; min-width: 0;
}
.bh-surface[data-variant] #page-activity .activity-grid.xh-poster-feed {
  grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0;
}
.bh-refined-theme .bh-surface[data-variant] #page-activity .xh-poster-feed .activity-card {
  border: 0; background: #151515; border-radius: 10px; margin: 0;
}
#platformActivityModal #platformActivityContact:not([hidden]) {
  position: sticky; bottom: 0; z-index: 19; padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  background: #121115; box-shadow: 0 -1px #ffffff16; flex-shrink: 0;
}
.bh-refined-theme body.bh-surface #platformActivityModal.active > .platform-activity-floating-close { display: none; }
#platformActivityModal .platform-activity-table-wrap { flex-shrink: 0; }

#page-offers { color: #f5f5f8; }
#page-offers .mt-sources { display: flex; gap: 5px; margin: 10px 0 12px; padding: 4px; border-radius: 24px; border: 1px solid #554756; background: #211c2580; }
#page-offers .mt-sources button { flex: 1; min-height: 35px; padding: 6px 10px; border: 1px solid transparent; border-radius: 22px; background: transparent; color: #c4b8ce; font: inherit; }
#page-offers .mt-sources [aria-pressed=true] { border-color: #785c8d; background: linear-gradient(140deg,#60456e,#342a42); color: white; }
#page-offers .mt-card .ot-card-heading { grid-template-columns: 34px minmax(0,1fr); }
#page-offers .mt-card .ot-card-heading small, #page-offers .mt-rule, #page-offers .mt-tier-rule small { color: #c3b6ce; font-size: 12px; line-height: 1.55; }
#page-offers .mt-condition { color: #efe5f6; font-size: 14px; margin: 10px 0 2px; overflow-wrap: anywhere; }
#page-offers .mt-rule { margin: 0 0 10px; }
#page-offers .mt-tier { display: flex; justify-content: space-between; align-items: center; gap: 9px; border-top: 1px solid #453c4c; margin-top: 8px; padding-top: 8px; }
#page-offers .mt-tier-rule { min-width: 0; }
#page-offers .mt-tier-rule strong, #page-offers .mt-tier-rule small { display: block; overflow-wrap: anywhere; }
#page-offers .mt-tier-rule strong { color: #f5f0f7; font-size: 13px; }
#page-offers .mt-tier-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
#page-offers .mt-tier-pay strong { color: #eacbfe; font-variant-numeric: tabular-nums; }
#page-offers .mt-tier-pay .ot-cta { min-height: 34px; min-width: 56px; padding: 4px 10px; white-space: nowrap; }
#page-offers .mt-levels summary { margin-top: 10px; padding: 4px 0; cursor: pointer; color: #d9c6e7; font-size: 13px; }
#page-offers .xh-page-bar { margin-bottom: 0; }
#page-offers .ot-tabs {
  position: static; display: flex; gap: 18px; max-width: 100%; width: auto; padding: 1px 1px 0;
  margin: 0 0 14px; border-bottom: 1px solid #25242a; background: transparent;
  overflow-x: auto; scrollbar-width: none;
}
#page-offers .ot-tabs::-webkit-scrollbar { display: none; }
#page-offers .ot-tabs button {
  flex: none; padding: 10px 3px 9px; min-height: 42px; border: none;
  border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: #aaa9b2;
  box-shadow: none; font: inherit; font-size: 14px;
}
#page-offers .ot-tabs button.is-active { color: #fff; font-weight: 700; border-bottom-color: #b696ff; }
#page-offers .ot-status { margin: 8px 0; min-height: 0; color: #e4d7fb; }
#page-offers .ot-status:empty { display: none; }
#page-offers .ot-grid { align-items: start; gap: 12px; }
#page-offers .ot-card {
  display: block; min-width: 0; padding: 14px 15px 12px; border: 1px solid #48434e; border-radius: 12px;
  background: linear-gradient(112deg,#16121acc,#17141bcc), #1b191e url("./xhrr-art/task-card.webp") center/100% 100% no-repeat;
  box-shadow: none;
}
#page-offers .ot-card.ot-ready { border-color: #8c71a3; }
#page-offers .ot-card-heading { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 9px; align-items: center; }
#page-offers .xh-task-symbol { width: 34px; height: 34px; object-fit: contain; }
#page-offers .ot-card-heading h3 { color: #fff; margin: 0 0 2px; font-size: 16px; line-height: 1.35; }
#page-offers .ot-time { margin: 0; padding: 0; border-radius: 0; color: #bfb7c9; background: none; font-size: 11px; }
#page-offers .ot-state { color: #ddd5eb; background: #ffffff0e; padding: 3px 6px; font-size: 10px; }
#page-offers .ot-state.ot-ready, #page-offers .ot-state.ot-claimed { color: #9eeac8; background: #1a3c32; }
#page-offers .ot-description { margin: 9px 0 0; color: #ddd6e2; font-size: 12px; line-height: 1.5; }
#page-offers .ot-task-line { margin-top: 12px; }
#page-offers .ot-multi summary {
  display: flex; align-items: center; gap: 7px; min-height: 30px; color: #e3dce9;
  font-size: 12px; list-style: none; cursor: pointer;
}
#page-offers .ot-multi summary::after { content: "⌄"; font-size: 15px; }
#page-offers .ot-multi summary span { margin-inline-start: auto; }
#page-offers .ot-multi[open] summary { margin-bottom: 5px; }
#page-offers .ot-multi[open] summary::after { transform: rotate(180deg); }
#page-offers .ot-multi .ot-condition + .ot-condition { margin-top: 8px; }
#page-offers .ot-condition > div { margin: 0 0 5px; color: #ded9e3; font-size: 12px; align-items: baseline; }
#page-offers .ot-condition strong { color: #efecf4; font-size: 12px; font-variant-numeric: tabular-nums; }
#page-offers .ot-condition.is-complete strong { color: #8ceaC6; }
#page-offers progress { height: 6px; background: #49454f; color: #1deea7; }
#page-offers progress::-webkit-progress-bar { background: #49454f; }
#page-offers progress::-webkit-progress-value { background: #1deea7; }
#page-offers progress::-moz-progress-bar { background: #1deea7; }
#page-offers .ot-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 10px; }
#page-offers .ot-reward { display: flex; padding: 0; gap: 6px; background: none; border: none; }
#page-offers .ot-reward span { font-size: 12px; color: #d7ccd8; }
#page-offers .ot-reward strong { color: #f1d6a7; font-size: 19px; overflow-wrap: anywhere; }
#page-offers .ot-cta {
  min-height: 32px; width: auto; padding: 4px 14px; border-radius: 20px; flex: none; font-size: 12px;
}
#page-offers .ot-cta:disabled { color: #c9c5cf; background: #39353e; border: 1px solid #504957; }
#page-offers .ot-empty { background: #121214; color: #c7c3cd; border-color: #36313e; }
#page-offers .soft-button { background: #252127; border: 1px solid #554959; color: #e8deec; }

/* Account hub and detail panels are distinct screens, with the platform's panel
   still mounted in its original host whenever a business screen is selected. */
#page-my .xh-member-view { padding: 4px 0 12px; }
#page-my .xh-member-identity {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  min-width: 0;
  min-height: 144px;
  box-sizing: border-box;
  padding: 17px 18px 15px;
  border: 1px solid #55445e;
  border-radius: 18px;
  background: radial-gradient(ellipse at 92% 12%, #382c43, transparent 70%), linear-gradient(245deg, #241d2d, #16131b 76%);
  box-shadow: inset 0 1px 0 rgb(247 227 255 / 7%);
}
#page-my .xh-member-identity::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 6px 6% 6px auto;
  width: min(36%, 144px);
  background: url("./branding/bohui-emblem-3d-v1.webp") center / contain no-repeat;
  filter: grayscale(1) sepia(.6) hue-rotate(225deg) saturate(.7);
  opacity: .19;
}
#page-my .xh-member-person {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  max-width: calc(100% - 42px);
  min-width: 0;
  text-align: left;
}
#page-my .xh-member-copy {
  display: grid;
  justify-items: start;
  gap: 4px;
  min-width: 0;
}
#page-my #bh-member-info {
  max-width: 100%;
  color: #cbbfd6;
  font-size: 12px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
#page-my .xh-member-avatar {
  position: relative; overflow: hidden;
  display: grid; place-items: center; flex: none; width: 50px; height: 50px; font-size: 22px; font-weight: 650;
  border: 1px solid #c8afda; border-radius: 50%; color: #fff;
  background: linear-gradient(145deg,#826696,#51405f 60%,#392e43);
  box-shadow: 0 0 0 3px rgb(192 157 214 / 9%);
}
#page-my .xh-member-avatar > img {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover;
}
#page-my .xh-member-identity h1, #page-my #bh-member-name {
  max-width: 100%; color: #fff; margin: 0; font: inherit; font-size: 20px; font-weight: 700; line-height: 1.25; padding: 0; text-align: left;
  background: none; border: 0; overflow-wrap: anywhere;
}
#page-my .xh-member-data { display: flex; max-width: 100%; justify-content: flex-start; }
#page-my .xh-member-data > span {
  color: #dedbe2; font-size: 12px; min-width: 68px; padding: 4px 10px; text-align: center;
  max-width: 100%; background: #211b28; border: 1px solid #493b52; border-radius: 12px;
}
#page-my .xh-member-data small { font-size: 11px; color: #b9b1bd; }
#page-my .xh-member-data strong { color: #f2e5ff; font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#page-my .xh-member-inbox {
  position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 40px; height: 40px;
  padding: 0; border: 0; border-radius: 12px; background: none;
}
#page-my .xh-member-inbox [data-icon], #page-my .xh-member-inbox img { width: 19px; height: 19px; }
#page-my .xh-member-inbox [data-icon] { filter: grayscale(1) brightness(1.5); }
#page-my .xh-member-layout { display: grid; grid-template-columns: minmax(245px,.85fr) minmax(0,1.15fr); gap: 26px; align-items: start; }
#page-my .xh-member-finances, #page-my .xh-member-tools { min-width: 0; }
#page-my .xh-member-vip > span:last-child {
  display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px;
  color: #f2e7fd; background: #211b2ab3; border: 1px solid #5b496c; padding: 3px 9px; border-radius: 20px;
}
#page-my .xh-member-money-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 11px; }
#page-my .xh-member-money-actions button {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 42px;
  border-radius: 24px; border: 1px solid #514b57; background: linear-gradient(150deg,#2d2a31,#131214); color: #fff; font-size: 15px; font-weight: 650;
}
#page-my .xh-member-money-actions button:first-child { background: linear-gradient(110deg,#5f307b,#222577); border-color: #8674d9; }
#page-my .xh-member-money-actions img { width: 26px; height: 26px; object-fit: contain; }
#page-my .xh-member-vip {
  display: flex; align-items: center; width: 100%; gap: 9px; min-height: 52px; padding: 8px 13px;
  border: 1px solid #5c476e; border-radius: 14px; margin: 9px 0;
  background: linear-gradient(110deg,#332044ef,#1d1425ed),#302336 url("./xhrr-art/member-vip.webp") center/cover;
  color: #f0d8b1; text-align: left;
}

#page-my .xh-member-vip > span:last-child { margin-left: auto; }
#page-my .xh-member-vip b { font-size: 18px; letter-spacing: .02em; }
#page-my .xh-member-breakdown { border-bottom: 1px solid #28262b; }
#page-my .xh-member-breakdown summary { color: #cfcad5; cursor: pointer; min-height: 40px; padding: 9px 4px; font-size: 13px; }
#page-my .xh-member-shortcuts {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px 0; padding: 13px 2px 14px; border: 1px solid #27232a; border-radius: 13px; background: linear-gradient(145deg,#141215,#0c0b0d);
}
#page-my .xh-member-shortcuts button {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 3px 1px;
  background: none; border: 0; font-size: 12px; color: #f1eef6;
}
#page-my .xh-member-shortcuts button > img, #page-my .xh-member-shortcuts button > [data-icon] {
  display: grid; place-items: center; width: 35px; height: 35px; box-sizing: border-box; padding: 7px;
  border: 1px solid #38333c; border-radius: 10px; background: linear-gradient(#27242b,#161418); object-fit: contain;
}
#page-my .xh-member-shortcuts button > [data-icon] img { width: 19px; height: 19px; }
#page-my .xh-member-rows { display: grid; padding-top: 6px; }
#page-my .xh-member-rows button {
  display: grid; grid-template-columns: 22px minmax(0,1fr) 9px; align-items: center; gap: 11px; text-align: left;
  width: 100%; min-height: 42px; padding: 8px 5px; border: none; border-bottom: 1px solid #28262b;
  border-radius: 0; background: transparent; color: #efedf3; box-shadow: none; font-size: 14px;
}
#page-my .xh-member-rows button [data-icon], #page-my .xh-member-rows button img { width: 22px; height: 22px; object-fit: contain; }
#page-my .xh-member-rows .xh-next { color: #aaa0b3; }
#page-my .xh-member-logout {
  display: block; margin: 14px auto 0; padding: 8px 18px; background: none; color: #c9b6dc; border: 0; font-size: 13px;
}
#page-my .xh-member-detail { max-width: 850px; }
#page-my .xh-member-detail .xh-member-money-actions { margin-bottom: 12px; }
#page-my .xh-member-auth { padding: 20px 8px; text-align: center; }
#page-my .xh-member-auth p { color: #c7c1ca; }
#page-my .xh-member-auth button { margin-top: 9px; }
#page-my .xh-member-view :is(button,summary,a):focus-visible, .xh-page-bar :is(a,button):focus-visible {
  outline: 2px solid #d6b4ff; outline-offset: 2px;
}
@media (max-width: 760px) {
  .bh-surface[data-variant] #page-activity .activity-grid.xh-poster-feed { grid-template-columns: minmax(0,1fr); gap: 8px; }
  #page-my .xh-member-layout { grid-template-columns: minmax(0,1fr); gap: 8px; }

  .xh-page-bar { min-height: 44px; margin-bottom: 8px; }
  .xh-page-bar h1 { font-size: 17px; }
  #page-offers .ot-tabs { gap: 14px; margin-bottom: 8px; }
  #page-offers .ot-tabs button { min-height: 38px; font-size: 13px; }
  #page-offers .ot-grid { gap: 8px; }
  #page-offers .ot-card { padding: 12px 12px 10px; }


  #page-my .xh-member-vip { min-height: 52px; margin: 8px 0 2px; padding-block: 8px; }
}
@media (max-width: 580px) {
  #platformActivityModal.active { padding: 0; align-items: stretch; }
  .bh-refined-theme body.bh-surface #platformActivityModal .platform-activity-box {
    width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0;
  }
  .bh-refined-theme body.bh-surface #platformActivityModal .platform-activity-box > .platform-head {
    display: grid; grid-template-columns: 40px minmax(0,1fr) 40px; align-items: center;
    text-align: center; padding: max(5px, env(safe-area-inset-top)) 4px 5px; gap: 3px;
  }
  #platformActivityModal #platformActivityTitle { grid-column: 2; grid-row: 1; font-size: 16px; }
  #platformActivityModal .platform-head > .platform-close {
    grid-row: 1; grid-column: 1; font-size: 0; display: grid; place-items: center; background: none; color: #f0ebf3;
  }
  #platformActivityModal .platform-head > .platform-close::after {
    content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(135deg);
  }
  #platformActivityModal .platform-activity-meta { padding: 9px 12px; }
  #platformActivityModal .platform-activity-cover { max-height: none; height: auto; object-fit: contain; }
  #platformActivityModal .activity-contact-button { width: 100%; }
}
/* Mobile utility screens have their own native-style title or profile header. */
.bh-refined-theme body[data-variant="mobile"]:has(:is(#page-offers,#page-my).active) .mobile-shell > .site-header { display: none; }
.bh-refined-theme body[data-variant="mobile"] #main :is(#page-activity,#page-offers,#page-my) { padding: 0; margin: 0; }
.bh-refined-theme body[data-variant="mobile"] #page-my .xh-member-view { padding-top: max(8px,env(safe-area-inset-top)); }
.bh-refined-theme body[data-variant="mobile"] #page-offers .xh-page-bar { padding-top: env(safe-area-inset-top); }
.bh-refined-theme body[data-variant="mobile"] #page-activity .xh-page-bar {
  position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%);
}
.bh-refined-theme body[data-variant="mobile"] #page-activity .xh-page-bar .xh-back { display: none; }
.bh-refined-theme body[data-variant="mobile"] #page-activity .xh-poster-feed .activity-card { border-radius: 3px; }
.bh-refined-theme body[data-variant="mobile"] #page-activity .xh-poster-feed { gap: 11px; }
#platformActivityModal #platformActivityContent.xh-activity-poster { padding: 0; }
#platformActivityModal #platformActivityContent.xh-activity-poster :is(img,p,figure) { display: block; width: 100%; height: auto; max-width: 100%; margin: 0; }
#page-offers .ot-card {
  background: linear-gradient(180deg,#141215b0 0 42%,#1e1923a0 42%,#17121bab 100%), #171519 url("./xhrr-art/task-card.webp") center/100% 100% no-repeat;
}
#page-offers .ot-card-heading { min-height: 48px; }
