/* Shared finishing touches for customer pages in both themes. */
.logo-sub-light,
.home-minimal-intro,
.home-minimal-hero-copy,
.home-minimal-search { display: none; }

/* The selected minimal home concept and its lighter type system. */
body.neon-body.apple-light .logo-mark-img { display: none !important; }
body.neon-body.apple-light .logo-title {
  font-family: 'LOR3X Benzin', 'Unbounded', sans-serif !important;
  font-size: 19px !important;
  font-weight: 500 !important;
  line-height: 1.1;
  letter-spacing: -.04em !important;
}
body.neon-body.apple-light .logo-sub { display: none !important; }
body.neon-body.apple-light .logo-sub-light {
  display: block;
  margin-top: 3px;
  color: #777681;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
body.neon-body.apple-light .topbar { background: rgba(255,255,255,.96) !important; }
body.neon-body.apple-light .app:has(.home-v2) { background: #fff; }

body.neon-body.apple-light .page-shell .home-v2 {
  display: flex;
  flex-direction: column;
  padding-top: 18px;
  padding-bottom: 36px;
  background: #fff;
}
body.neon-body.apple-light .home-welcome,
body.neon-body.apple-light .home-hero-content,
body.neon-body.apple-light .home-service-note { display: none; }
body.neon-body.apple-light .home-minimal-intro {
  display: block;
  order: 1;
  margin: 0 2px 26px;
}
body.neon-body.apple-light .home-minimal-intro p {
  margin: 0 0 8px;
  color: #777681;
  font-size: 14px;
  font-weight: 500;
}
body.neon-body.apple-light .home-minimal-intro h1 {
  margin: 0;
  color: #16151b;
  font-size: clamp(37px, 10vw, 47px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.045em;
}
body.neon-body.apple-light .home-hero {
  order: 2;
  min-height: 198px !important;
  padding: 20px !important;
  align-items: stretch;
  background: #f6f5f8 !important;
  border: 0 !important;
  border-radius: 25px !important;
  box-shadow: none !important;
}
body.neon-body.apple-light .home-hero::before,
body.neon-body.apple-light .home-hero-media::before { display: none; }
body.neon-body.apple-light .home-minimal-hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 58%;
}
body.neon-body.apple-light .home-minimal-hero-copy p {
  margin: 0 0 14px;
  color: #7657df;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
body.neon-body.apple-light .home-minimal-hero-copy h2 {
  margin: 0;
  color: #16151b;
  font-size: clamp(27px, 7vw, 33px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.04em;
}
body.neon-body.apple-light .home-minimal-hero-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 133px;
  min-height: 42px;
  margin-top: auto;
  padding: 0 15px;
  border-radius: 12px;
  color: #fff;
  background: #16151b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
body.neon-body.apple-light .home-minimal-hero-copy a span { margin-left: 6px; }
body.neon-body.apple-light .home-hero-media {
  right: 3%;
  bottom: 5px;
  width: 43%;
  height: 93%;
  transform: none;
  -webkit-mask-image: none;
  mask-image: none;
}
body.neon-body.apple-light .home-hero-media img {
  padding: 0;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,.12));
}
body.neon-body.apple-light .home-minimal-search {
  order: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  margin: 18px 0 0;
  padding: 0 14px;
  border: 1px solid #e7e6ec;
  border-radius: 15px;
  background: #fff;
}
body.neon-body.apple-light .home-minimal-search > svg {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  color: #777681;
}
body.neon-body.apple-light .page-shell .home-minimal-search input[type=search]:not([type=checkbox]):not([type=radio]):not([type=file]) {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0;
  color: #16151b !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  outline: none;
  box-shadow: none !important;
  font-size: 13px;
}
body.neon-body.apple-light .home-minimal-search button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #7657df;
  font-size: 18px;
  cursor: pointer;
}
body.neon-body.apple-light .home-offers { order: 4; margin-top: 20px; }
body.neon-body.apple-light .home-offers-head h2 { color: #16151b; font-size: 16px; }
body.neon-body.apple-light .home-offers-head > span { color: #777681; }
body.neon-body.apple-light .home-offer {
  min-height: 124px;
  border-radius: 17px;
  box-shadow: none;
}
body.neon-body.apple-light .home-offer-gold {
  color: #332511;
  background: #fff7e7;
  border-color: #f0d7a6;
}
body.neon-body.apple-light .home-offer-drop {
  color: #261c41;
  background: #f2edff;
  border-color: #ded1fa;
}
body.neon-body.apple-light .home-offer-gold .home-offer-label { color: #9b6214; }
body.neon-body.apple-light .home-offer-drop .home-offer-label { color: #7657df; }
body.neon-body.apple-light .home-offer strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
body.neon-body.apple-light .home-offer small { opacity: .78; }
body.neon-body.apple-light .home-category-section { order: 5; margin-top: 21px; }
body.neon-body.apple-light .home-product-section { order: 6; margin-top: 20px; }
body.neon-body.apple-light .home-category-section .home-section-sub,
body.neon-body.apple-light .home-product-section .home-section-sub { display: none; }
body.neon-body.apple-light .page-shell .home-section-title {
  color: #16151b !important;
  font-size: 20px;
  font-weight: 800;
}
body.neon-body.apple-light .home-categories {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
body.neon-body.apple-light .home-categories .home-category:nth-child(n+4) { display: none; }
body.neon-body.apple-light .home-category:last-child:nth-child(odd) { grid-column: auto; }
body.neon-body.apple-light .home-categories .home-category {
  min-height: 46px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  background: #f6f5f8 !important;
  border: 0 !important;
  border-radius: 13px !important;
  box-shadow: none !important;
  text-align: center;
}
body.neon-body.apple-light .home-category svg { display: none; }
body.neon-body.apple-light .home-category span { font-size: 11px; font-weight: 700; }
body.neon-body.apple-light .home-products { gap: 10px; }
body.neon-body.apple-light .home-product {
  border-radius: 17px !important;
  box-shadow: none !important;
}
body.neon-body.apple-light .home-product-img { background: #fff !important; }
body.neon-body.apple-light .home-product-img img { padding: 8px; }
body.neon-body.apple-light .home-bonus-grid { order: 7; margin-top: 26px; }
body.neon-body.apple-light .home-notify-promo { order: 8; }

@media (max-width: 360px) {
  body.neon-body.apple-light .home-minimal-intro h1 { font-size: 36px; }
  body.neon-body.apple-light .home-minimal-hero-copy h2 { font-size: 26px; }
  body.neon-body.apple-light .home-minimal-hero-copy a { min-width: 120px; }
  body.neon-body.apple-light .home-category span { font-size: 10px; }
}

body.neon-body.theme-dark:not(.apple-light) {
  color-scheme: dark;
  --bg: #05020c;
  --bg-1: #05020c;
  --bg-2: #0c0820;
  --bg-3: #110d2a;
  --bg-secondary: #0c0820;
  --panel: rgba(255,255,255,.045);
  --panel-hover: rgba(255,255,255,.075);
  --panel-strong: rgba(255,255,255,.07);
  --text: #f7f3ff;
  --text-2: #ded5f1;
  --muted: #b8abcf;
  --stroke: rgba(168,85,247,.26);
  --border-glass: rgba(255,255,255,.12);
}

body.neon-body.theme-dark:not(.apple-light) .logo-title,
body.neon-body.theme-dark:not(.apple-light) .page-shell .home-welcome strong {
  color: #f7f3ff !important;
}

body.neon-body.theme-dark:not(.apple-light) .page-shell :is(
  .muted,.text-small.muted,.home-section-sub,.home-copy,.cat-sub,.pc-brand,
  .pd-breadcrumb,.pd-desc,.cart-card-sub,.card-sub,.defect-desc,
  .payment-option-desc,.delivery-card-desc,.sh-sub,.sb-sub,.order-date,
  .sp-sub,.pr-id,.pr-ref-sub,.pr-order-meta,.ref-link-hint,.rw-score-meta,
  .rw-empty-text,.review-date,.rating-meta,.lvl-sub,.lvl-card-desc,
  .guide-p,.guide-step-text
) { color: #b8abcf !important; }

body.neon-body.theme-dark:not(.apple-light) .page-shell ::placeholder {
  color: #aa9bc2 !important;
}

body.neon-body.theme-dark:not(.apple-light) .reviews-wall :is(
  .rw-score-meta,.rw-stat-title,.rw-dist-label,.rw-dist-count,.rw-user-meta,
  .rw-rating-text,.rw-product-date,.rw-empty-text
) { color: #b8abcf !important; }

/* The agreement uses the shared card; give long text a readable measure. */
.terms-page .section-header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.terms-page .section-title { max-width: 24ch; overflow-wrap: break-word; }
.terms-page .terms-copy {
  padding: clamp(18px, 4vw, 30px);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: break-word;
}
.terms-page .terms-copy > * + * { margin-top: 14px; }
.terms-page .terms-copy h3 { margin-top: 24px; font-size: 16px; line-height: 1.35; }
.terms-page .terms-copy ul { padding-left: 22px; }
.terms-page .terms-copy li + li { margin-top: 5px; }
.terms-page .terms-copy a { overflow-wrap: anywhere; }
body.neon-body.theme-dark:not(.apple-light) .terms-copy { color: #ded5f1 !important; }
body.neon-body.theme-dark:not(.apple-light) .terms-copy :is(h3,strong) { color: #f7f3ff; }
body.neon-body.apple-light .terms-page .section-title { color: #1d1d1f !important; -webkit-text-fill-color: currentColor !important; }
body.neon-body.apple-light .terms-copy { color: #3a3a3c !important; }
body.neon-body.apple-light .terms-copy :is(h3,strong) { color: #1d1d1f; }

/* Accordion content must remain visible even when page scripts do not replay. */
.guide-wrap .guide-section { opacity: 1 !important; }
.guide-wrap .guide-section-header {
  width: 100%; border: 0; background: transparent; color: inherit;
  font: inherit; text-align: left; min-height: 56px;
}
.guide-wrap .guide-section-header:focus-visible { outline: 3px solid #a78bfa; outline-offset: -3px; }
body.neon-body.theme-dark:not(.apple-light) .guide-wrap :is(.guide-box p,.guide-perk,.guide-perk-l) { color: #c9bddc; }
body.neon-body.apple-light .guide-wrap :is(.guide-p,.guide-step-text,.guide-box p) { color: #3a3a3c !important; }

/* Reward pages share the light shell, including their page headings. */
body.neon-body.apple-light .bp-wrap :is(.bp-title,.bp-season-name,.bp-quest-title,.bp-ach-title,.bp-box-name) {
  color: #1d1d1f !important;
  -webkit-text-fill-color: currentColor !important;
}
body.neon-body.apple-light .bp-wrap :is(.bp-back,.bp-empty,.bp-season,.bp-quest,.bp-ach,.bp-box) {
  color: #3a3a3c !important;
  background: #fff !important;
  border-color: #e5e5ea !important;
  box-shadow: 0 8px 26px rgba(0,0,0,.05) !important;
}
body.neon-body.apple-light .bp-wrap .bp-back { color: #7c5cff !important; }
body.neon-body.apple-light .bp-wrap .bp-tab:not(.active) { color: #3a3a3c !important; }
body.neon-body.apple-light .lvl-page .lvl-card.locked { opacity: .82 !important; }

/* Referrals: the tier badge and progress inherited the dark palette. */
body.neon-body.apple-light .ref-page .ref-tier-badge {
  color: #634028 !important;
  background: #f8eee5 !important;
  border: 1px solid #e7cdb8 !important;
  box-shadow: none !important;
}
body.neon-body.apple-light .ref-page .tier-silver { color: #46505d !important; background: #edf0f4 !important; border-color: #d6dce4 !important; }
body.neon-body.apple-light .ref-page .tier-gold { color: #795914 !important; background: #fff5d8 !important; border-color: #efda9a !important; }
body.neon-body.apple-light .ref-page .tier-platinum { color: #45546c !important; background: #eef2f8 !important; border-color: #d7deeb !important; }
body.neon-body.apple-light .ref-page .tier-diamond { color: #12647a !important; background: #e7f7fa !important; border-color: #b7e2ec !important; }
body.neon-body.apple-light .ref-page .tier-progress,
body.neon-body.apple-light .ref-page .tier-progress-bar {
  background: #e9e9ee !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.neon-body.apple-light .ref-page .tier-progress-bar { height: 9px; }
body.neon-body.apple-light .ref-page .tier-progress-label { color: #595960 !important; font-size: 12px; }
body.neon-body.apple-light .ref-page :is(.ref-stat-label,.ref-level-label,.ms-reward,.lb-count,.ref-link-hint) { color: #595960 !important; }
body.neon-body.apple-light .ref-page .ref-level-label small { opacity: 1 !important; }
body.neon-body.apple-light .ref-page :is(.ref-milestones,.ref-lb,.ref-earnings) {
  padding: 16px !important;
  border-radius: 20px !important;
}
body.neon-body.apple-light .ref-page .ms-btn:disabled { color: #595960 !important; }
body.neon-body.apple-light .ref-page .ref-link-actions :is(button) { min-height: 44px; }

@media (max-width: 360px) {
  body.neon-body.apple-light .ref-page .ref-link-actions { grid-template-columns: 1fr; }
}

/* Keep the seasonal promotion legible in the light catalog treatment. */
body.neon-body.apple-light .home-promo {
  background: #fff5dc !important; border-color: #e9ce91 !important;
  color: #49310a !important; box-shadow: none !important;
}
body.neon-body.apple-light .home-promo strong { color: #49310a !important; }
body.neon-body.apple-light .home-promo span { color: #684b16 !important; }
body.neon-body.apple-light .home-promo a { color: #2d2108 !important; background: #f3b631 !important; }

body.neon-body.theme-dark:not(.apple-light) :focus-visible {
  outline: 3px solid #c4b5fd;
  outline-offset: 3px;
}

@media (max-width: 420px) {
  .terms-page .terms-copy { font-size: 13px; line-height: 1.65; }
  .terms-page .section-header .btn { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-wrap .guide-section { transition: none !important; }
}
