*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding:20px}body{margin:0;background:#f8f9fd;color:#202139;font:15px/1.5 "Inter","PingFang SC","Microsoft YaHei",sans-serif}button,a{font:inherit;color:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #7660ef;outline-offset:3px}header{background:white;border-bottom:1px solid #e6e6ef}.bar,main{width:min(1180px,92%);margin:auto}.bar{height:72px;display:flex;align-items:center;gap:52px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:21px;font-weight:800}.brandicon{background:#5943d4;color:white;border-radius:11px;width:37px;height:37px;display:grid;place-items:center;font-size:27px}.avatar{margin-left:auto;background:#edeafa;border:1px solid #ded9fa;color:#634bb9;width:35px;height:35px;display:grid;place-items:center;border-radius:50%;font-weight:650}nav{display:flex;align-self:stretch;gap:26px}nav button{background:none;border:0;border-bottom:2px solid transparent;color:#6b6b7c}nav button[aria-current="page"]{color:#5741c0;border-color:#6651d6;font-weight:700}
/* Mobile H5 layout */
:root {
  --frame-width: 480px;
  --edge: clamp(14px, 4vw, 20px);
  --bottom-nav-height: 66px;
}

body {
  max-width: var(--frame-width);
  min-height: 100dvh;
  margin-inline: auto;
  background: #f8f9fd;
}

html { background: #eeedf5; }
header { padding-top: env(safe-area-inset-top); }

.bar,
main { width: auto; }

.bar {
  height: 60px;
  padding-inline: var(--edge);
  gap: 12px;
}

.brand { font-size: 17px; line-height: 1.3; }
.brandicon { width: 32px; height: 32px; flex: none; font-size: 23px; }
.avatar { width: 31px; height: 31px; flex: none; font-size: 12px; }

main {
  padding: 16px var(--edge) calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 16px);
}

.bottom-nav {
  position: fixed;
  z-index: 3;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--frame-width));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  padding: 6px var(--edge) calc(6px + env(safe-area-inset-bottom));
  background: white;
  border-top: 1px solid #e6e6ef;
}
.bottom-nav button {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  font-size: 12px;
}
.bottom-nav button[aria-current="page"] { background: #f0edff; }
.tab-icon { position: relative; width: 19px; height: 17px; border: 1.5px solid; border-radius: 4px; }
.offers-icon::after { content: '%'; position: absolute; inset: 0; font: 700 11px/15px Arial, sans-serif; }
.wallet-icon::after { content: ''; position: absolute; right: -1px; top: 5px; width: 6px; height: 4px; border: 1px solid; border-radius: 2px; background: white; }
#total:not(:empty) {
  position: absolute;
  top: 4px;
  left: calc(50% + 12px);
  min-width: 15px;
  padding: 0 4px;
  border-radius: 10px;
  background: #5541bd;
  color: white;
  font-size: 10px;
}

dialog {
  inset: auto 0 0;
  width: min(100%, var(--frame-width));
  max-width: none;
  max-height: calc(100dvh - env(safe-area-inset-top) - 20px);
  margin: 0 auto;
  padding: 22px var(--edge) calc(20px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 20px 20px 0 0;
  color: inherit;
}
dialog h2 { margin: 10px 0; }
.close, #claim { min-height: 44px; }
.close { float: right; width: 44px; }

.hero { margin-bottom: 10px; }
.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  align-items: center;
  gap: 10px;
  min-height: 96px;
  padding: 12px 14px;
  border-radius: 15px;
  background: radial-gradient(ellipse at 95% 0, #8070dc, transparent 75%), #342774;
  color: white;
}
.hero-slide[hidden] { display: none; }
h1 { margin: 0; font-size: clamp(16px, 4.5vw, 21px); line-height: 1.3; }
.intro p { margin: 6px 0 0; color: #e6dfff; font-size: 11px; }

.pass {
  padding: 5px 8px 6px;
  color: #382665;
  background: linear-gradient(135deg, #f0e8ff, #beadff 66%, #eee5ff);
  border: 1px solid #ece4ff;
  border-radius: 8px;
  box-shadow: 2px 4px 0 #9e8be3;
  transform: rotate(-6deg);
  line-height: 1.25;
}
.pass div { font-size: 10px; }
.pass strong, .pass small { display: block; }
.pass strong { font-size: 14px; }
.pass small { margin-top: 3px; font-size: 9px; }

.sectionTitle { display: flex; align-items: baseline; gap: 10px; margin-bottom: 11px; }
h2 { margin: 0; font-size: 23px; letter-spacing: -.5px; }
.sectionTitle span, footer { color: #68677d; font-size: 12px; }
.offer-groups { display: grid; gap: 14px; }
.offer-group h3 {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}
.offer-group h3::before {
  content: '';
  width: 4px;
  height: 12px;
  border-radius: 2px;
  background: var(--accent);
}
.membership { --accent: #6748ac; --tint: #eee6fb; }
.tokens { --accent: #8b591a; --tint: #fff0ce; }
.courses { --accent: #21695f; --tint: #dcf2ed; }
.apps { --accent: #325f95; --tint: #e3edfb; }

.offer-group ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 360px) {
  .offer-group ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.offer-group li:only-child { grid-column: 1 / -1; }
.offer-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 100px;
  padding: 10px 11px;
  border: 1px solid #e5e3ee;
  border-radius: 13px;
  background: white;
  text-align: left;
}
.offer-card:active { background: #f4f1fd; }
.offer-top { display: flex; align-items: center; justify-content: space-between; }
.offer-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  color: var(--accent);
  background: var(--tint);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 750;
}
.offer-icon:has(img) { background: transparent; }
.offer-icon img { display: block; object-fit: contain; border-radius: 7px; }
[data-id="qoder"] .offer-icon img { transform: scale(1.4); }
.offer-copy strong { display: block; font-size: 14px; }
.desc { display: block; color: #646477; font-size: 12px; }
.chevron { width: 7px; height: 7px; margin-right: 3px; border: solid #777389; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.claimed-label { color: #5941ba; font-size: 11px; }
.models { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.models span { padding: 1px 5px; border-radius: 4px; color: #6b4a21; background: #fff3db; font-size: 10px; }
dialog .models { margin-bottom: 15px; }
.empty { margin: 0; padding: 22px 14px; border-radius: 13px; background: white; color: #646477; text-align: center; }

footer { margin-top: 19px; padding-top: 12px; border-top: 1px solid #e5e3ee; text-align: center; }
dialog::backdrop { background: #21194170; }
dialog small { color: #6750bb; }
dialog p { margin: 10px 0 14px; color: #5b5c6e; }
.close { border: 0; border-radius: 50%; font-size: 23px; }
#claim { width: 100%; margin-top: 4px; padding: 10px; border: 0; border-radius: 9px; background: #5541bd; color: white; font-weight: 700; }
#claim:disabled { background: #e7e4f6; color: #564988; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.group-heading h3 { margin: 0; }
.category-more,
#categoryBack {
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding-inline: 4px;
  color: #5741b1;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}
.category-more,
#categoryBack:not([hidden]) { display: inline-flex; }
.category-more span,
#categoryBack span { font-size: 17px; line-height: 1; }
#categorySummary { margin: -4px 0 16px; color: #646477; font-size: 13px; }
.tokens ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.hero-slides { touch-action: pan-y; }
.event-slide {
  background: radial-gradient(ellipse at 95% 0, #367985, transparent 82%), #153e58;
}
.event-slide h2 { color: white; font-size: 20px; line-height: 1.2; }
.event-slide .event-kicker { margin: 0 0 4px; color: #c3ebe7; font-weight: 700; }
.event-slide .intro p:last-child { color: #deeff3; }
#eventIntro {
  min-height: 44px;
  padding: 4px;
  border: 1px solid #a1d1d8;
  border-radius: 9px;
  background: #ffffff16;
  color: white;
  font-size: 12px;
  font-weight: 700;
}
#eventIntro:focus-visible { outline-color: white; }
.hero-controls { display: flex; align-items: center; justify-content: center; }
.slide-dot, #rotation {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #5941ba;
  background: transparent;
}
.slide-dot::after { content: ''; width: 7px; height: 7px; border-radius: 10px; background: #a6a0b8; }
.slide-dot[aria-current="true"]::after { width: 17px; background: currentColor; }
#rotation::after { content: ''; width: 8px; height: 10px; border-inline: 2px solid currentColor; }
#rotation[data-paused="true"]::after { width: 0; height: 0; border: 5px solid transparent; border-left: 8px solid currentColor; transform: translateX(2px); }
.event-points { display: grid; gap: 8px; padding-left: 20px; color: #5b5c6e; }
.event-note { font-size: 12px; }
#office { padding: 12px 0; }
#office h3 { font-size: 16px; margin: 22px 0 8px; }
#office p, #office small { color: #646477; font-size: 12px; }
#office label, .member-row small { display: block; margin: 8px 0; }
#office select, #office input[type=number] { padding: 6px; border: 1px solid #d6d1df; border-radius: 6px; background:white; }
#office input[type=number] { width: 50px; }
#office table { border-collapse: collapse; width:100%; font-size:12px; }
#office td,#office th { padding:7px 2px; border-bottom:1px solid #e5e2ee; text-align:left; }
.copyline,.metrics,.channel-row,.member-row,#discounts { background:white; border:1px solid #e5e2ee; border-radius:10px; padding:10px; margin:8px 0; }
.copyline { display:flex; align-items:center; gap:5px; flex-wrap:wrap; font-size:12px; }
.copyline code { overflow-wrap:anywhere; }
.minor { background:#eeeafa; color:#49339e; border:0; border-radius:7px; padding:8px; margin:4px; }
.metrics { display:grid; grid-template-columns:repeat(3,1fr); color:#615d71; font-size:12px; }
.metrics b,.channel-row span { display:block; margin-top:4px; }
.metrics b { color:#352469; font-size:16px; }
.channel-row { display:block; width:100%; text-align:left; }
.channel-row span,#officeStatus { font-size:12px; }
