/* Storefront design system: tokens, components, and responsive layouts. */

:root {
  --bg:#f5f7fb;
  --surface:#fff;
  --ink:#172033;
  --muted:#627087;
  --subtle:#8a96a8;
  --accent:#3158d5;
  --accent-hover:#2447b8;
  --accent-soft:#edf2ff;
  --line:#e3e8f0;
  --success:#247552;
  --warning:#97631c;
  --danger:#b23b48;
  --radius:14px;
  --font:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  --shadow:0 12px 36px rgba(23,32,51,.05);
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:100px;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font);
  font-size:14px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

button,input,textarea {
  font:inherit;
}

button,a {
  -webkit-tap-highlight-color:transparent;
}

button {
  color:inherit;
  cursor:pointer;
}

button:disabled {
  opacity:.55;
  cursor:not-allowed;
}

a {
  color:inherit;
  text-decoration:none;
}

svg {
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  vertical-align:middle;
  flex-shrink:0;
}

[hidden] {
  display:none !important;
}

:focus-visible {
  outline:3px solid #9cb1f3;
  outline-offset:4px;
}

.container {
  width:100%;
  max-width:1180px;
  margin:auto;
  padding-inline:32px;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:44px;
  padding:11px 19px;
  border:1px solid transparent;
  border-radius:9px;
  font-size:13px;
  font-weight:600;
  line-height:1.5;
  transition:background .15s,border-color .15s,box-shadow .15s;
}

.button-primary {
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}

.button-primary:hover {
  background:var(--accent-hover);
  border-color:var(--accent-hover);
}

.button-outline,.button-dark {
  background:#fff;
  color:var(--ink);
  border-color:var(--line);
}

.button-outline:hover,.button-dark:hover {
  background:var(--accent-soft);
  border-color:#bdcaef;
  color:var(--accent);
}

.button-small {
  min-height:36px;
  padding:8px 12px;
  font-size:12px;
}

.full-width {
  width:100%;
}

.text-button,.subtle-link {
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:3px 0;
  border:0;
  background:none;
  color:var(--accent);
  font-size:13px;
  font-weight:500;
  line-height:1.8;
}

.text-button:hover,.subtle-link:hover {
  color:var(--accent-hover);
  text-decoration:underline;
  text-underline-offset:4px;
}

.icon-button {
  display:inline-flex;
  align-items:center;
  padding:7px;
  border:0;
  background:none;
}

.eyebrow,.section-kicker {
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--accent);
  font-size:11px;
  font-weight:700;
  letter-spacing:1.5px;
}

.eyebrow svg,.section-kicker svg {
  width:15px;
  height:15px;
}

.site-header {
  position:sticky;
  top:0;
  z-index:10;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);
}

.header-inner {
  height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}

.brand {
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:var(--ink);
  font-size:22px;
  font-weight:750;
  letter-spacing:-.7px;
  white-space:nowrap;
}

.brand-mark {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:10px;
  background:var(--accent);
  color:#fff;
  font-size:27px;
  line-height:1;
}

.brand-light {
  margin-left:5px;
  font-size:18px;
  font-weight:600;
  letter-spacing:0;
}

.header-inner nav {
  display:flex;
  align-items:center;
  gap:27px;
}

.nav-link {
  position:relative;
  padding:8px 0;
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
}

.nav-link:hover,.nav-link.active {
  color:var(--accent);
}

.nav-link.active:after {
  content:'';
  position:absolute;
  bottom:-17px;
  left:0;
  right:0;
  height:3px;
  background:var(--accent);
  border-radius:3px 3px 0 0;
}

.header-account-actions {
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}

.header-account-actions :is(button,a) {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 13px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:var(--ink);
  font-size:12px;
  font-weight:500;
  white-space:nowrap;
}

.header-account-actions .header-order-query {
  border-color:var(--accent);
  background:var(--accent);
  color:#fff;
}

.header-account-actions :is(button,a):hover {
  border-color:var(--accent);
}

.mobile-nav {
  display:none;
}

.page-panel {
  min-height:calc(100vh - 180px);
}

.section-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:32px;
}

.section-heading h1,.faq-intro h1 {
  margin:12px 0;
  font-size:34px;
  line-height:1.3;
  letter-spacing:-1px;
}

.section-heading p,.faq-intro > p {
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.85;
}

.section-intro {
  margin-bottom:32px;
}

.section-intro h2 {
  margin:12px 0;
  font-size:29px;
  line-height:1.4;
  letter-spacing:-.7px;
}

.section-intro h2 em {
  font-style:normal;
  color:var(--accent);
}

.section-intro p {
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.9;
}

.hero {
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr);
  align-items:center;
  gap:70px;
  padding-top:70px;
  padding-bottom:66px;
}

.hero-label {
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--accent);
  font-size:12px;
  font-weight:600;
}

.hero-label:before {
  content:'';
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent);
}

.hero-title {
  margin:20px 0;
  font-size:clamp(38px,4.4vw,56px);
  font-weight:750;
  line-height:1.2;
  letter-spacing:-2px;
}

.hero-product,.hero-service {
  display:block;
}

.hero-service {
  margin-top:9px;
  color:var(--accent);
}

.hero-description {
  max-width:520px;
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.95;
}

.hero-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:18px;
  margin-top:26px;
}

.hero-plans-link {
  min-height:46px;
  padding:12px 21px;
}

.hero-tutorial-link {
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--muted);
  font-size:13px;
}

.hero-tutorial-link:hover {
  color:var(--accent);
}

.home-plan-prices {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin-top:28px;
}

.home-plan-price {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  padding:13px 11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  text-align:left;
  transition:border-color .15s,background .15s;
}

.home-plan-price:hover {
  background:var(--accent-soft);
  border-color:#aebeed;
}

.home-plan-price > span {
  color:var(--muted);
  font-size:11px;
  font-weight:500;
}

.home-plan-price strong {
  color:var(--ink);
  font-size:19px;
  letter-spacing:-.5px;
  white-space:nowrap;
}

.home-plan-price small {
  margin-left:2px;
  color:var(--subtle);
  font-size:10px;
  font-weight:400;
  letter-spacing:0;
}

.hero-workflow {
  padding:27px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--shadow);
}

.hero-workflow-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding-bottom:20px;
  border-bottom:1px solid var(--line);
}

.hero-workflow-title strong {
  font-size:16px;
}

.hero-workflow-title span {
  color:var(--muted);
  font-size:11px;
}

.hero-flow {
  margin:24px 0;
  padding:0;
  list-style:none;
}

.hero-flow li {
  display:flex;
  align-items:flex-start;
  gap:13px;
  position:relative;
  padding-bottom:25px;
}

.hero-flow li:last-child {
  padding-bottom:0;
}

.hero-flow li:not(:last-child):before {
  content:'';
  position:absolute;
  top:31px;
  bottom:2px;
  left:15px;
  width:1px;
  background:var(--line);
}

.hero-flow-number {
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:31px;
  height:31px;
  border-radius:50%;
  color:var(--accent);
  background:var(--accent-soft);
  font-size:11px;
  font-weight:700;
}

.hero-flow strong {
  display:block;
  font-size:13px;
}

.hero-flow p {
  margin:4px 0 0;
  color:var(--muted);
  font-size:12px;
}

.hero-order-link {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 15px;
  border-radius:9px;
  background:var(--bg);
  color:var(--accent);
  font-size:12px;
  font-weight:500;
}

.advantages-section {
  padding:54px 0 58px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:#fff;
}

.advantage-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
}

.advantage-card {
  min-width:0;
}

.advantage-icon {
  display:grid;
  place-items:center;
  width:37px;
  height:37px;
  margin-bottom:16px;
  border-radius:10px;
  background:var(--accent-soft);
  color:var(--accent);
}

.advantage-card h3 {
  margin:0 0 9px;
  font-size:15px;
  font-weight:650;
}

.advantage-card p {
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.9;
}

.plans-section,.how-section,.contact-section {
  padding-top:48px;
  padding-bottom:68px;
}

.pricing-note {
  display:inline-flex;
  align-items:center;
  gap:7px;
  flex-shrink:0;
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:var(--muted);
  font-size:11px;
}

.pricing-note svg {
  width:15px;
  height:15px;
}

.plan-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.plan-card {
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:29px 25px 24px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  transition:border-color .18s,box-shadow .18s;
}

.plan-card:hover {
  border-color:#b8c5e5;
}

.plan-card.selected,.go-plan.selected {
  border-color:var(--accent);
  box-shadow:0 0 0 1px var(--accent),0 8px 30px #3158d509;
}

.plan-selector {
  position:absolute;
  top:26px;
  right:23px;
  width:17px;
  height:17px;
  margin:0;
  accent-color:var(--accent);
  cursor:pointer;
}

.plan-badge {
  position:absolute;
  top:-12px;
  left:24px;
  padding:3px 10px;
  border-radius:5px;
  background:var(--accent-soft);
  border:1px solid #d8e1fa;
  color:var(--accent);
  font-size:10px;
  font-weight:600;
}

.plan-top {
  margin-right:20px;
}

.plan-title {
  margin:0 0 6px;
  font-size:20px;
  letter-spacing:-.5px;
}

.plan-caption {
  color:var(--muted);
  font-size:11px;
}

.plan-price {
  display:flex;
  align-items:baseline;
  gap:4px;
  margin:22px 0 2px;
  line-height:1.2;
}

.plan-price .currency {
  font-size:20px;
  font-weight:600;
}

.plan-price .amount {
  font-size:44px;
  font-weight:750;
  letter-spacing:-1.7px;
}

.price-unit {
  margin-left:3px;
  color:var(--muted);
  font-size:12px;
}

.sample-price {
  color:var(--subtle);
  font-size:11px;
}

.plan-description {
  min-height:44px;
  margin:20px 0 18px;
  color:var(--muted);
  font-size:12px;
  line-height:1.9;
}

.plan-highlights {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  padding:15px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.plan-highlight {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
  min-width:0;
}

.plan-highlight svg {
  width:17px;
  height:17px;
  margin-bottom:3px;
  color:var(--accent);
}

.plan-highlight strong {
  font-size:10px;
  font-weight:600;
}

.plan-highlight small {
  color:var(--subtle);
  font-size:10px;
}

.plan-divider {
  display:none;
}

.plan-features {
  display:grid;
  gap:11px;
  margin:20px 0 25px;
  padding:0;
  list-style:none;
}

.plan-features li {
  display:flex;
  align-items:flex-start;
  gap:8px;
  color:var(--muted);
  font-size:11px;
}

.plan-features svg {
  width:14px;
  height:14px;
  margin-top:2px;
  color:var(--success);
}

.plan-button {
  width:100%;
  margin-top:auto;
}

.go-plan-wrap {
  margin-top:20px;
}

.go-plan {
  position:relative;
  display:flex;
  align-items:center;
  gap:18px;
  padding:24px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
}

.go-plan .plan-selector {
  position:static;
  flex-shrink:0;
  order:-1;
}

.go-plan-icon {
  display:grid;
  place-items:center;
  width:43px;
  height:43px;
  border-radius:10px;
  background:#eff7f3;
  color:var(--success);
}

.go-plan-copy {
  flex:1;
  min-width:0;
}

.go-plan-copy h3 {
  margin:0 0 4px;
  font-size:18px;
}

.go-plan-copy p {
  margin:0;
  color:var(--muted);
  font-size:12px;
}

.go-plan-price {
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:3px;
  min-width:95px;
  margin-right:12px;
}

.go-plan-price strong {
  font-size:25px;
  line-height:1.3;
  letter-spacing:-.7px;
}

.go-plan-price span {
  color:var(--muted);
  font-size:11px;
}

.go-plan-price small {
  width:100%;
  color:var(--subtle);
  font-size:10px;
}

.go-plan-button {
  flex-shrink:0;
}

.catalog-footer {
  padding-top:22px;
  text-align:center;
}

.reviews-section {
  padding:55px 0 60px;
  overflow:hidden;
}

.review-rating {
  display:flex;
  align-items:center;
  gap:9px;
  margin:15px 0 10px;
  color:var(--muted);
  font-size:12px;
}

.review-rating strong {
  color:var(--ink);
  font-size:13px;
}

.review-stars {
  color:#cc9631;
  letter-spacing:2px;
  font-size:12px;
}

.review-wall {
  display:grid;
  gap:16px;
  overflow:hidden;
  padding-block:4px;
  mask-image:linear-gradient(to right,transparent,#000 5%,#000 95%,transparent);
}

.review-marquee {
  overflow:hidden;
}

.review-track {
  display:flex;
  width:max-content;
  animation:reviews-scroll 46s linear infinite;
}

.review-marquee-reverse .review-track {
  animation-direction:reverse;
}

.review-set {
  display:flex;
  gap:16px;
  padding-right:16px;
}

.review-card {
  display:flex;
  flex-direction:column;
  width:296px;
  padding:23px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
}

.review-card blockquote {
  margin:0 0 20px;
  color:var(--ink);
  font-size:12px;
  line-height:1.95;
  overflow-wrap:anywhere;
}

.review-card mark {
  padding:1px 2px;
  background:var(--accent-soft);
  color:var(--accent);
}

.review-meta {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:auto;
  color:var(--subtle);
  font-size:10px;
}

.review-author {
  display:flex;
  align-items:center;
  gap:9px;
  padding-top:16px;
  margin-top:14px;
  border-top:1px solid var(--line);
}

.review-avatar {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:50%;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:12px;
}

.review-avatar.green {
  background:#edf7f1;
  color:#43825b;
}

.review-avatar.orange {
  background:#fff3e6;
  color:#ac742f;
}

.review-avatar.pink {
  background:#faeef3;
  color:#ad6689;
}

.review-author strong,.review-author small {
  display:block;
}

.review-author strong {
  font-size:11px;
  font-weight:600;
}

.review-author small {
  margin-top:2px;
  color:var(--subtle);
  font-size:9px;
}

.review-tag {
  margin-left:auto;
  max-width:88px;
  color:var(--muted);
  font-size:9px;
  overflow-wrap:anywhere;
}

.review-wall:hover .review-track,.review-wall:focus-within .review-track {
  animation-play-state:paused;
}

@keyframes reviews-scroll {
  to {
    transform:translateX(-50%);
  }
}

/* Guides, contact page, and shared footer. */

.tutorial-list {
  display:grid;
  gap:16px;
}

.tutorial-step {
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  overflow:hidden;
}

.tutorial-summary {
  display:flex;
  align-items:center;
  gap:19px;
  padding:24px;
  cursor:pointer;
  list-style:none;
}

.tutorial-summary::-webkit-details-marker,.faq-list summary::-webkit-details-marker {
  display:none;
}

.tutorial-number {
  display:grid;
  place-items:center;
  width:39px;
  height:39px;
  flex-shrink:0;
  border-radius:10px;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:13px;
  font-weight:600;
}

.tutorial-summary-copy {
  display:grid;
  gap:5px;
  flex:1;
  min-width:0;
}

.tutorial-summary-copy strong {
  font-size:15px;
  font-weight:600;
}

.tutorial-summary-copy > span {
  color:var(--muted);
  font-size:12px;
}

.tutorial-chevron {
  color:var(--subtle);
}

.tutorial-step[open] .tutorial-chevron {
  transform:rotate(180deg);
}

.tutorial-step[open] .tutorial-summary {
  border-bottom:1px solid var(--line);
}

.tutorial-body {
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  align-items:start;
  gap:35px;
  padding:28px;
}

.tutorial-instructions h3 {
  margin:0 0 15px;
  font-size:16px;
}

.tutorial-instructions ol {
  margin:0;
  padding-left:20px;
  color:var(--muted);
  font-size:13px;
  line-height:2.1;
}

.tutorial-instructions li+li {
  margin-top:8px;
}

.tutorial-instructions > p,.tutorial-note {
  color:var(--muted);
  font-size:12px;
  line-height:1.9;
}

.tutorial-actions {
  margin-top:20px;
}

.tutorial-note {
  margin:22px 0 0;
}

.tutorial-visual {
  padding:21px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--bg);
  font-size:12px;
}

.tutorial-preview-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:18px;
}

.tutorial-preview-heading strong {
  font-size:13px;
}

.tutorial-preview-badge {
  color:var(--accent);
  font-size:10px;
}

.tutorial-preview-row {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin:12px 0;
  color:var(--muted);
}

.tutorial-preview-row strong {
  color:var(--ink);
  font-weight:500;
  text-align:right;
}

.tutorial-preview-code {
  display:grid;
  gap:6px;
  padding:14px;
  margin-top:18px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}

.tutorial-preview-code span {
  color:var(--subtle);
  font-size:10px;
}

.tutorial-preview-code strong {
  color:var(--accent);
  font-size:12px;
  font-weight:600;
}

.tutorial-preview-status {
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:15px;
  color:var(--success);
  font-size:11px;
}

.tutorial-preview-status svg {
  width:15px;
  height:15px;
}

.faq-section {
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:65px;
  padding-top:50px;
  padding-bottom:70px;
}

.faq-intro .button {
  margin-top:24px;
}

.faq-intro h1 {
  font-size:32px;
}

.faq-list {
  border-top:1px solid var(--line);
}

.faq-list details {
  border-bottom:1px solid var(--line);
}

.faq-list summary {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:23px 0;
  list-style:none;
  cursor:pointer;
  font-size:15px;
  font-weight:600;
}

.faq-list summary svg {
  width:17px;
  height:17px;
  color:var(--subtle);
}

.faq-list details[open] summary svg {
  transform:rotate(45deg);
}

.faq-list p {
  margin:0;
  padding:0 30px 24px 0;
  color:var(--muted);
  font-size:13px;
  line-height:2;
}

.contact-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}

.contact-card {
  padding:28px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
}

.contact-card-icon {
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:10px;
  background:var(--accent-soft);
  color:var(--accent);
}

.contact-card h2 {
  margin:18px 0 10px;
  font-size:21px;
}

.contact-card > p {
  margin:0 0 20px;
  color:var(--muted);
  font-size:13px;
  line-height:1.9;
}

.contact-details {
  margin:24px 0 0;
  font-size:12px;
}

.contact-details > div {
  display:grid;
  grid-template-columns:75px minmax(0,1fr);
  gap:12px;
  padding:14px 0;
  border-top:1px solid var(--line);
}

.contact-details dt {
  color:var(--subtle);
}

.contact-details dd {
  margin:0;
  color:var(--muted);
  overflow-wrap:anywhere;
}

.contact-details .text-button {
  font-size:11px;
}

.contact-links {
  display:grid;
  gap:0;
  margin-top:32px;
}

.contact-links a {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:17px 0;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
}

.site-footer {
  padding:23px 0 29px;
  border-top:1px solid var(--line);
  background:#fff;
}

.footer-inner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  color:var(--subtle);
  font-size:11px;
}

.footer-inner strong {
  margin-right:12px;
  color:var(--muted);
  font-size:13px;
}

.footer-links {
  display:flex;
  gap:20px;
}

.footer-links a:hover {
  color:var(--accent);
}

/* Shared dialogs, account forms, and payment. */

dialog {
  max-width:calc(100% - 32px);
  max-height:calc(100dvh - 32px);
  margin:auto;
  padding:0;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  color:var(--ink);
  box-shadow:0 24px 90px #17203330;
  overflow-y:auto;
  overscroll-behavior:contain;
}

dialog::backdrop {
  background:#17203365;
  backdrop-filter:blur(3px);
}

.dialog-inner {
  position:relative;
  padding:32px;
}

.dialog-close {
  position:absolute;
  top:13px;
  right:13px;
  color:var(--subtle);
  border-radius:7px;
  z-index:1;
}

.dialog-close:hover {
  color:var(--ink);
  background:var(--bg);
}

.checkout-dialog {
  width:800px;
}

.member-auth-dialog {
  width:460px;
}

.payment-dialog {
  width:470px;
}

.consult-dialog {
  width:510px;
}

.checkout-heading {
  margin-bottom:25px;
  padding-right:16px;
}

.checkout-heading h2 {
  margin:10px 0;
  font-size:25px;
  line-height:1.45;
  letter-spacing:-.7px;
}

.checkout-heading > p {
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.9;
}

.checkout-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  gap:28px;
}

.checkout-plan {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:25px;
  border:1px solid #dbe3f8;
  border-radius:12px;
  background:var(--accent-soft);
}

.checkout-plan-label {
  color:var(--muted);
  font-size:11px;
}

.checkout-plan h3 {
  margin:16px 0 8px;
  font-size:22px;
  line-height:1.5;
}

.checkout-plan > p {
  margin:0 0 20px;
  color:var(--muted);
  font-size:12px;
}

.checkout-plan > strong {
  color:var(--accent);
  font-size:36px;
  line-height:1.3;
  letter-spacing:-1px;
}

.checkout-plan > strong small {
  margin-left:5px;
  color:var(--muted);
  font-size:12px;
  font-weight:400;
  letter-spacing:0;
}

.checkout-plan-note {
  margin-top:auto;
  padding-top:28px;
  color:var(--muted);
  font-size:11px;
  line-height:1.8;
}

.checkout-confirm-form {
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}

.checkout-account {
  margin-bottom:26px;
}

.checkout-account > span {
  display:block;
  margin-bottom:10px;
  color:var(--muted);
  font-size:11px;
}

.checkout-account > strong {
  display:block;
  font-size:21px;
  overflow-wrap:anywhere;
}

.checkout-account > p {
  margin:12px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.9;
}

.member-auth-tabs {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
  padding:5px;
  margin-bottom:22px;
  border-radius:10px;
  background:var(--bg);
}

.member-auth-tabs button {
  padding:9px;
  border:0;
  border-radius:7px;
  background:none;
  color:var(--muted);
  font-size:12px;
  font-weight:500;
}

.member-auth-tabs button[aria-pressed="true"] {
  background:#fff;
  color:var(--accent);
  box-shadow:0 1px 5px #17203309;
}

.member-auth-form fieldset {
  display:grid;
  gap:9px;
  margin:0;
  padding:0;
  border:0;
  min-width:0;
}

.member-auth-form label {
  display:block;
  color:var(--ink);
  font-size:12px;
  font-weight:600;
}

.member-auth-form input {
  width:100%;
  min-width:0;
  height:44px;
  padding:10px 12px;
  border:1px solid #d9e0eb;
  border-radius:8px;
  background:#fff;
  color:var(--ink);
  font-size:13px;
}

.member-auth-form input::placeholder {
  color:var(--subtle);
  font-size:12px;
}

.member-auth-form label:not(:first-child) {
  margin-top:7px;
}

.member-auth-form fieldset:disabled input {
  background:var(--bg);
  color:var(--muted);
}

.member-captcha-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) 128px auto;
  gap:8px;
  align-items:center;
}

.member-captcha-image-button {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--bg);
  overflow:hidden;
}

.member-captcha-image-button img {
  display:block;
  width:128px;
  height:44px;
  object-fit:contain;
}

.member-captcha-refresh {
  min-height:40px;
  padding:3px;
  border:0;
  background:none;
  color:var(--accent);
  font-size:11px;
  white-space:nowrap;
}

.member-captcha-status {
  min-height:18px;
  margin:0;
  color:var(--subtle);
  font-size:10px;
  line-height:1.8;
}

.checkout-hint {
  margin:13px 0 18px;
  color:var(--muted);
  font-size:11px;
  line-height:1.85;
}

.checkout-recovery {
  padding:12px;
  border-radius:8px;
  background:#fff5df;
  color:var(--warning);
  font-size:12px;
  line-height:1.8;
}

.checkout-error {
  margin:12px 0;
  padding:10px 13px;
  border:1px solid #f0d5d8;
  border-radius:8px;
  background:#fff5f6;
  color:var(--danger);
  font-size:12px;
  line-height:1.8;
  overflow-wrap:anywhere;
}

.checkout-query-link {
  display:block;
  margin:15px auto 0;
  padding:4px;
  border:0;
  background:none;
  color:var(--accent);
  font-size:12px;
}

.payment-heading {
  padding-top:6px;
  text-align:center;
}

.payment-heading .eyebrow {
  display:flex;
  justify-content:center;
  margin-bottom:20px;
  font-size:10px;
}

.alipay-mark {
  display:inline-grid;
  place-items:center;
  width:45px;
  height:45px;
  border-radius:11px;
  background:#1677ff;
  color:#fff;
  font-size:29px;
  font-weight:700;
}

.payment-heading h2 {
  margin:15px 0 7px;
  font-size:24px;
  line-height:1.5;
}

.payment-heading p {
  margin:0;
  color:var(--muted);
  font-size:12px;
}

.payment-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:17px;
  margin:24px 0 18px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--bg);
}

.payment-summary > div:first-child {
  min-width:0;
}

.payment-summary > div:first-child > span,.payment-summary small {
  display:block;
  color:var(--muted);
  font-size:10px;
}

.payment-summary > div:first-child > strong {
  display:block;
  margin:5px 0;
  font-size:15px;
  overflow-wrap:anywhere;
}

.payment-amount {
  flex-shrink:0;
  text-align:right;
}

.payment-amount > strong {
  display:block;
  margin-top:4px;
  color:var(--accent);
  font-size:26px;
  line-height:1.3;
  white-space:nowrap;
}

.payment-amount > strong > span {
  margin-right:3px;
  font-size:14px;
}

.checkout-order-info {
  margin:14px 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.8;
}

.checkout-order-info > div {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}

.checkout-order-info strong {
  color:var(--ink);
  font-size:10px;
  font-weight:500;
  overflow-wrap:anywhere;
}

.checkout-order-info button,.order-result-id button {
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:3px;
  border:0;
  background:none;
  color:var(--accent);
  font-size:inherit;
  cursor:pointer;
}

.checkout-order-info svg {
  width:12px;
  height:12px;
}

.checkout-order-info p {
  margin:5px 0;
}

.checkout-status {
  color:var(--accent);
  font-size:12px;
  font-weight:500;
  line-height:1.8;
}

.alipay-order-qr {
  display:block;
  width:min(230px,100%);
  height:auto;
  margin:20px auto;
}

.alipay-code-placeholder {
  display:grid;
  place-items:center;
  width:100%;
  min-height:100px;
  margin:20px auto 12px;
  border:1px dashed #cbd5e4;
  border-radius:11px;
  background:var(--bg);
  color:var(--subtle);
}

.alipay-code-placeholder:before {
  content:'支付宝收款';
  font-size:13px;
}

.payment-pending {
  margin:12px 0 0;
  text-align:center;
  color:var(--muted);
  font-size:13px;
  font-weight:600;
}

.payment-help {
  margin:8px 0 20px;
  text-align:center;
  color:var(--muted);
  font-size:11px;
  line-height:1.8;
}

.payment-provider-note {
  padding:13px 15px;
  margin:18px 0;
  border:1px solid #dbe3f8;
  border-radius:9px;
  background:var(--accent-soft);
  color:var(--muted);
  font-size:12px;
  line-height:1.85;
}

.payment-provider-note strong {
  display:block;
  margin-bottom:5px;
  color:var(--accent);
}

.checkout-voucher {
  padding:20px;
  margin:20px 0;
  border:1px solid #d3e8dc;
  border-radius:12px;
  background:#f1f8f4;
  color:var(--success);
  text-align:center;
}

.checkout-voucher > span {
  font-size:12px;
}

.checkout-voucher code {
  display:block;
  margin:12px 0 16px;
  color:#225e43;
  font-size:18px;
  line-height:1.7;
  letter-spacing:.5px;
  overflow-wrap:anywhere;
}

.checkout-voucher p {
  margin:12px 0 0;
  color:var(--muted);
  font-size:11px;
}

.checkout-voucher.redeemed {
  border-color:var(--line);
  background:var(--bg);
  color:var(--muted);
}

.checkout-footer {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:13px;
  margin-top:22px;
}

.checkout-footer .text-button {
  font-size:11px;
}

/* Orders use independent expandable groups and a compact voucher. */

body[data-entry-page="orders"] .page-panel {
  display:none;
}

.orders-page {
  min-height:calc(100vh - 155px);
  padding-top:46px;
  padding-bottom:64px;
}

.orders-page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:28px;
}

.orders-page-heading h1 {
  margin:10px 0;
  font-size:34px;
  letter-spacing:-1px;
  line-height:1.4;
}

.orders-page-heading p {
  margin:0;
  color:var(--muted);
  font-size:12px;
  overflow-wrap:anywhere;
}

.orders-page-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:9px;
  flex-shrink:0;
}

.orders-page-actions .button {
  font-size:12px;
}

.orders-page-group {
  margin-top:20px;
  border:1px solid #dce3ef;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}

.orders-page-group > summary {
  list-style:none;
  cursor:pointer;
  background:#fff;
  transition:background .15s;
}

.orders-page-group > summary::-webkit-details-marker {
  display:none;
}

.orders-page-group > summary:hover {
  background:#fafbfe;
}

.orders-page-group > summary:focus-visible {
  outline:3px solid #9cb1f3;
  outline-offset:-4px;
  border-radius:13px;
}

.orders-page-group[open] > summary {
  border-bottom:1px solid var(--line);
}

.orders-group-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0;
  padding:22px 24px;
  font-size:18px;
  font-weight:650;
  line-height:1.5;
}

.orders-group-title {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.orders-group-count {
  min-width:25px;
  padding:2px 8px;
  border-radius:7px;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:11px;
  text-align:center;
  font-weight:600;
}

.orders-group-toggle {
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:11px;
  font-weight:400;
}

.orders-group-chevron {
  width:7px;
  height:7px;
  margin-top:-3px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(45deg);
}

.orders-page-group[open] .orders-group-chevron {
  margin-top:3px;
  transform:rotate(225deg);
}

.orders-group-collapse,.orders-page-group[open] .orders-group-expand {
  display:none;
}

.orders-page-group[open] .orders-group-collapse {
  display:inline;
}

.orders-group-content {
  padding:22px;
}

.orders-group-description {
  margin:0 0 20px;
  color:var(--muted);
  font-size:12px;
  line-height:1.9;
}

.orders-group-empty {
  grid-column:1/-1;
  margin:0;
  padding:30px 20px;
  border:1px dashed var(--line);
  border-radius:10px;
  background:var(--bg);
  color:var(--muted);
  font-size:12px;
  line-height:1.9;
  text-align:center;
}

.orders-group-empty > p {
  margin:0 0 10px;
}

.orders-group-empty .text-button {
  font-size:12px;
}

.orders-guest-prompt {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:24px;
  margin-bottom:26px;
  border:1px solid #dbe3f8;
  border-radius:12px;
  background:var(--accent-soft);
}

.orders-guest-prompt h2 {
  margin:0 0 8px;
  font-size:17px;
  font-weight:600;
}

.orders-guest-prompt p {
  margin:0;
  color:var(--muted);
  font-size:12px;
}

.orders-guest-prompt .button {
  flex-shrink:0;
}

.orders-page-results {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:16px;
  align-items:stretch;
}

.order-result-card {
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:23px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
}

.order-result-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
}

.order-result-heading h3 {
  flex:1;
  min-width:0;
  margin:0;
  font-size:16px;
  font-weight:650;
  line-height:1.7;
  overflow-wrap:anywhere;
}

.order-result-meta {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  flex-shrink:0;
  gap:8px;
  max-width:50%;
  text-align:right;
}

.order-result-meta > strong {
  max-width:100%;
  color:var(--ink);
  font-size:20px;
  line-height:1.4;
  letter-spacing:-.4px;
  overflow-wrap:anywhere;
}

.order-state-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:100%;
  padding:4px 9px;
  border:1px solid transparent;
  border-radius:6px;
  font-size:10px;
  font-weight:500;
  line-height:1.6;
  text-align:center;
  overflow-wrap:anywhere;
}

.order-state-badge.state-pending {
  color:#95651e;
  border-color:#f0dfbd;
  background:#fff8e9;
}

.order-state-badge.state-unused {
  color:#3158b4;
  border-color:#d9e4fa;
  background:#f1f5ff;
}

.order-state-badge.state-processing {
  color:#896030;
  border-color:#eadcc9;
  background:#faf5ed;
}

.order-state-badge.state-completed {
  color:#287b53;
  border-color:#d4e8dc;
  background:#eff8f2;
}

.order-result-card > p {
  margin:8px 0;
  color:var(--muted);
  font-size:11px;
}

.order-result-card > .checkout-status {
  color:var(--accent);
}

.order-result-details {
  display:flex;
  flex-wrap:wrap;
  gap:14px 38px;
  margin:13px 0 18px;
  font-size:12px;
  line-height:1.8;
}

.order-result-details > div {
  min-width:0;
}

.order-result-details dt {
  color:var(--subtle);
  font-size:11px;
}

.order-result-details dd {
  margin:3px 0 0;
  color:var(--ink);
  overflow-wrap:anywhere;
}

.order-result-id {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:11px;
  line-height:1.8;
  overflow-wrap:anywhere;
}

.order-result-id > span {
  min-width:0;
  overflow-wrap:anywhere;
}

.order-voucher-line {
  align-self:flex-start;
  max-width:100%;
  margin-top:8px;
  padding:6px 10px;
  border-radius:7px;
  background:#243047;
  color:#f1f5ff;
}

.order-voucher-line button {
  min-height:24px;
  padding:3px 4px;
  color:#c0d1ff;
  font-size:inherit;
}

.order-voucher-line button:focus-visible {
  outline:2px solid #c0d1ff;
  outline-offset:2px;
  border-radius:3px;
}

.order-voucher-note {
  margin-top:8px;
}

.order-result-card > .text-button {
  align-self:flex-start;
  margin-top:18px;
  font-size:12px;
}

.orders-page-more {
  display:flex;
  justify-content:center;
  margin-top:22px;
}

.orders-page-more .button {
  font-size:12px;
}

/* Human support and existing contact assets. */

.support-float {
  position:fixed;
  right:24px;
  bottom:22px;
  z-index:11;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:45px;
  padding:10px 16px;
  border:1px solid #cfd9ef;
  border-radius:12px;
  background:#fff;
  color:var(--accent);
  box-shadow:0 6px 26px #17203312;
  font-size:12px;
  font-weight:600;
}

.support-float:hover {
  background:var(--accent-soft);
}

.support-dialog {
  --support-chat-clearance:112px;
  position:fixed;
  inset:auto 24px 82px auto;
  width:420px;
  max-width:calc(100% - 48px);
  max-height:calc(100dvh - 112px);
  margin:0;
  border-radius:15px;
}

.support-dialog::backdrop {
  background:#17203322;
  backdrop-filter:blur(1px);
}

.support-dialog .dialog-inner {
  padding:25px 23px 22px;
}

.support-dialog:has(#support-chat-panel:not([hidden])) {
  height:min(720px,calc(100dvh - var(--support-chat-clearance)));
}

.support-dialog:has(#support-chat-panel:not([hidden])) .dialog-inner {
  height:100%;
}

.support-dialog:has(#support-chat-panel:not([hidden])) #dialog-content {
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:0;
}

#support-chat-panel:not([hidden]) {
  display:flex;
  flex:1;
  flex-direction:column;
  min-height:0;
}

.support-heading {
  display:flex;
  align-items:center;
  gap:12px;
  padding-right:20px;
  margin-bottom:20px;
  flex-shrink:0;
}

.support-heading-icon {
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  flex-shrink:0;
  border-radius:11px;
  background:var(--accent-soft);
  color:var(--accent);
}

.support-heading h2 {
  margin:0 0 4px;
  font-size:18px;
  line-height:1.5;
  letter-spacing:-.4px;
}

.support-heading p {
  margin:0;
  color:var(--muted);
  font-size:11px;
}

.support-tabs {
  display:grid;
  grid-template-columns:1fr 1fr;
  flex-shrink:0;
  gap:5px;
  padding:5px;
  margin-bottom:16px;
  border-radius:9px;
  background:var(--bg);
}

.support-tabs button {
  min-height:35px;
  border:0;
  border-radius:6px;
  background:none;
  color:var(--muted);
  font-size:12px;
}

.support-tabs button[aria-selected="true"] {
  background:#fff;
  color:var(--accent);
  font-weight:600;
  box-shadow:0 1px 4px #17203309;
}

.support-intro {
  margin:0 0 15px;
  color:var(--muted);
  font-size:12px;
}

.support-contact-item {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:15px;
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:10px;
}

.support-contact-item > div {
  min-width:0;
}

.support-contact-item span,.support-contact-item strong {
  display:block;
}

.support-contact-item span {
  margin-bottom:4px;
  color:var(--subtle);
  font-size:10px;
}

.support-contact-item strong {
  font-size:13px;
  font-weight:500;
  overflow-wrap:anywhere;
}

.support-contact-item button {
  flex-shrink:0;
  padding:7px 9px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  color:var(--accent);
  font-size:11px;
}

.support-email-link {
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin:13px 0 19px;
  color:var(--accent);
  font-size:12px;
}

.support-email-link svg {
  width:14px;
  height:14px;
}

.support-hours {
  padding:17px;
  border-radius:10px;
  background:var(--bg);
}

.support-hours > div {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.support-hours > div strong {
  font-size:12px;
}

.support-hours > div span {
  color:var(--subtle);
  font-size:10px;
}

.support-hours p {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:9px 0 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.85;
}

.support-hours p strong {
  text-align:right;
  font-weight:500;
  white-space:nowrap;
}

.support-note {
  margin:14px 0 0;
  color:var(--subtle);
  font-size:10px;
  line-height:1.8;
}

.chat-messages {
  flex:1;
  min-height:120px;
  height:auto;
  overflow:auto;
  overscroll-behavior:contain;
  padding:13px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--bg);
  scrollbar-width:thin;
}

.chat-empty {
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  color:var(--muted);
  font-size:13px;
  line-height:1.9;
  text-align:center;
}

.chat-message {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  margin:0 0 16px;
}

.chat-message:last-child {
  margin-bottom:0;
}

.chat-message-label {
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 1px 5px;
  color:var(--muted);
  font-size:10px;
}

.chat-message-label span {
  color:var(--subtle);
  font-size:9px;
}

.chat-message p {
  max-width:92%;
  margin:0;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:3px 10px 10px 10px;
  background:#fff;
  color:var(--ink);
  font-size:14px;
  line-height:1.8;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.chat-message-visitor {
  align-items:flex-end;
}

.chat-message-visitor p {
  border-color:var(--accent);
  border-radius:10px 3px 10px 10px;
  background:var(--accent);
  color:#fff;
}

.chat-error {
  margin-top:9px;
  color:var(--danger);
  font-size:11px;
  flex-shrink:0;
}

.chat-retry {
  margin-top:7px;
  padding:0;
  border:0;
  background:none;
  color:var(--accent);
  font-size:11px;
  flex-shrink:0;
}

.chat-form {
  flex-shrink:0;
  padding:10px;
  margin-top:10px;
  border:1px solid #d6dfed;
  border-radius:10px;
  background:#fff;
}

.chat-form:focus-within {
  border-color:var(--accent);
  box-shadow:0 0 0 2px var(--accent-soft);
}

.chat-form textarea {
  display:block;
  width:100%;
  height:42px;
  min-height:42px;
  padding:0;
  resize:none;
  overflow:auto;
  border:0;
  outline:none;
  background:none;
  color:var(--ink);
  font-size:14px;
  line-height:1.6;
}

.chat-form textarea::placeholder {
  color:var(--subtle);
}

.chat-form-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:5px;
}

.chat-form-bottom > span {
  color:var(--subtle);
  font-size:10px;
}

.chat-form-bottom .button {
  min-height:33px;
  padding:7px 12px;
  font-size:11px;
}

.chat-form-bottom .button svg {
  width:14px;
  height:14px;
}

.chat-note {
  flex-shrink:0;
  margin-top:8px;
}

.consult-heading {
  padding:5px 14px 0;
  text-align:center;
}

.consult-heading .eyebrow {
  font-size:10px;
}

.consult-heading h2 {
  margin:10px 0;
  font-size:24px;
  line-height:1.5;
  letter-spacing:-.5px;
}

.consult-heading p {
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.9;
}

.consult-plan {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:17px;
  margin:22px 0 16px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--bg);
}

.consult-plan > div:first-child {
  min-width:0;
}

.consult-plan span {
  display:block;
  color:var(--subtle);
  font-size:10px;
}

.consult-plan strong {
  display:block;
  margin-top:3px;
  font-size:15px;
  overflow-wrap:anywhere;
}

.consult-price {
  flex-shrink:0;
  color:var(--accent);
  font-size:24px;
  font-weight:700;
  white-space:nowrap;
}

.consult-price small {
  margin-left:4px;
  color:var(--muted);
  font-size:10px;
  font-weight:400;
}

.consult-next {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  margin-top:19px;
  color:var(--muted);
  font-size:10px;
}

.consult-next span+span:before {
  content:'›';
  margin-right:18px;
  color:var(--subtle);
}

.consult-note {
  margin:16px 0 0;
  color:var(--muted);
  font-size:10px;
  line-height:1.9;
  text-align:center;
}

.consult-chat-link {
  display:block;
  margin:8px auto 0;
  padding:8px;
  border:0;
  background:none;
  color:var(--accent);
  font-size:11px;
}

.wechat-contact {
  padding:21px 19px 17px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fbfcfe;
  text-align:center;
}

.wechat-contact.compact {
  padding:18px 16px 15px;
  margin-bottom:16px;
}

.wechat-profile {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom:13px;
}

.wechat-profile img {
  width:44px;
  height:44px;
  border-radius:12px;
  object-fit:cover;
}

.wechat-profile strong {
  color:var(--ink);
  font-size:13px;
  font-weight:600;
}

.wechat-label {
  display:block;
  color:var(--muted);
  font-size:11px;
}

.wechat-id {
  display:block;
  color:var(--ink);
  font-size:22px;
  font-weight:700;
  letter-spacing:.2px;
  line-height:1.4;
  overflow-wrap:anywhere;
  user-select:all;
}

.wechat-contact p {
  margin:13px 0 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.85;
}

.wechat-pending > strong {
  font-size:17px;
}

.wechat-pending p {
  margin-bottom:15px;
}

.wechat-qr-original {
  position:relative;
  display:block;
  width:min(220px,100%);
  aspect-ratio:5/7;
  margin:9px auto 10px;
  border-radius:8px;
  overflow:hidden;
  background:#fff;
}

.wechat-qr-image {
  position:absolute;
  display:block;
  width:135%;
  max-width:none;
  height:auto;
  left:-17.5%;
  top:-41.517857%;
  aspect-ratio:auto;
}

.wechat-qr-links {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  color:var(--accent);
  font-size:11px;
}

.wechat-qr-links a {
  display:inline-flex;
  align-items:center;
  gap:3px;
  padding:3px;
}

.wechat-qr-links svg {
  width:12px;
  height:12px;
}

.wechat-contact .wechat-scan-help {
  margin:6px 0 16px;
  font-size:10px;
  line-height:1.7;
}

.wechat-id-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:15px;
  border-top:1px solid var(--line);
  text-align:left;
}

.wechat-id-actions > div {
  min-width:0;
}

.wechat-id-actions .button {
  flex-shrink:0;
  min-height:40px;
  padding:9px 12px;
  font-size:11px;
  gap:6px;
}

.wechat-id-actions .button svg {
  width:14px;
  height:14px;
}

.toast {
  position:fixed;
  left:50%;
  bottom:28px;
  transform:translateX(-50%);
  z-index:40;
  max-width:calc(100% - 40px);
  padding:12px 20px;
  border-radius:9px;
  background:#243047;
  color:#fff;
  box-shadow:0 8px 30px #17203320;
  font-size:12px;
  line-height:1.8;
  text-align:center;
}

/* Responsive rules are consolidated by breakpoint. */

@media(max-width:1050px) {
  .header-inner {
    gap:18px;
  }
  .header-inner nav {
    gap:18px;
  }
  .header-account-actions :is(button,a) {
    padding-inline:10px;
  }
  .hero {
    gap:35px;
  }
  .hero-title {
    font-size:45px;
  }
  .plan-card {
    padding-inline:21px;
  }
  .faq-section {
    gap:35px;
    grid-template-columns:240px minmax(0,1fr);
  }
}

@media(max-width:800px) {
  .header-inner {
    height:69px;
  }
  .header-inner nav {
    display:none;
  }
  .mobile-nav {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:4px;
    padding:0 24px 10px;
  }
  .mobile-nav .nav-link {
    padding:7px 4px;
    border-radius:7px;
    text-align:center;
    font-size:12px;
  }
  .mobile-nav .nav-link.active {
    background:var(--accent-soft);
  }
  .mobile-nav .nav-link.active:after {
    display:none;
  }
  .hero {
    grid-template-columns:1fr;
    gap:36px;
    padding-top:46px;
    padding-bottom:45px;
  }
  .hero-copy {
    max-width:620px;
  }
  .hero-workflow {
    display:none;
  }
  .hero-title {
    font-size:48px;
  }
  .home-plan-prices {
    max-width:570px;
  }
  .advantage-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:28px 24px;
  }
  .plan-grid {
    gap:12px;
  }
  .plan-card {
    padding:28px 17px 19px;
  }
  .plan-title {
    font-size:17px;
  }
  .plan-selector {
    right:16px;
  }
  .plan-price .amount {
    font-size:36px;
  }
  .plan-highlights {
    gap:5px;
  }
  .plan-highlight small {
    font-size:9px;
  }
  .section-heading {
    align-items:flex-start;
    flex-direction:column;
    gap:15px;
  }
  .pricing-note {
    font-size:11px;
  }
  .faq-section {
    grid-template-columns:1fr;
    gap:30px;
  }
  .faq-intro .button {
    margin-top:18px;
  }
  .tutorial-body {
    gap:22px;
    grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  }
  .footer-inner {
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }
}

@media(max-width:600px) {
  .container {
    padding-inline:20px;
  }
  .header-inner {
    gap:10px;
    padding-inline:18px;
  }
  .brand {
    gap:7px;
    font-size:20px;
  }
  .brand-mark {
    width:29px;
    height:29px;
    font-size:24px;
    border-radius:8px;
  }
  .brand-light {
    margin-left:4px;
    font-size:15px;
  }
  .header-account-actions {
    gap:5px;
  }
  .header-account-actions :is(button,a) {
    min-height:34px;
    padding:7px 9px;
    font-size:10px;
  }
  .mobile-nav {
    padding-inline:15px;
  }
  .hero {
    padding-top:36px;
  }
  .hero-title {
    margin:17px 0;
    font-size:38px;
    letter-spacing:-1.6px;
  }
  .hero-description {
    font-size:13px;
  }
  .hero-actions {
    gap:15px;
    margin-top:23px;
  }
  .hero-tutorial-link {
    font-size:12px;
  }
  .home-plan-prices {
    gap:7px;
    margin-top:24px;
  }
  .home-plan-price {
    padding:11px 8px;
  }
  .home-plan-price > span {
    font-size:10px;
  }
  .home-plan-price strong {
    font-size:17px;
  }
  .home-plan-price small {
    display:none;
  }
  .advantages-section {
    padding:36px 0 40px;
  }
  .section-intro {
    margin-bottom:26px;
  }
  .section-intro h2 {
    font-size:25px;
  }
  .section-intro p {
    font-size:12px;
  }
  .advantage-grid {
    gap:25px 19px;
  }
  .advantage-card h3 {
    font-size:13px;
  }
  .advantage-card p {
    font-size:11px;
  }
  .advantage-icon {
    margin-bottom:12px;
  }
  .plans-section,.how-section,.contact-section {
    padding-top:32px;
    padding-bottom:45px;
  }
  .section-heading h1,.faq-intro h1 {
    font-size:28px;
  }
  .section-heading p {
    font-size:12px;
  }
  .plan-grid {
    grid-template-columns:1fr;
    gap:23px;
  }
  .plan-card {
    padding:26px 23px 23px;
  }
  .plan-top {
    margin-right:30px;
  }
  .plan-title {
    font-size:22px;
  }
  .plan-caption {
    font-size:12px;
  }
  .plan-selector {
    top:26px;
    right:23px;
  }
  .plan-price .amount {
    font-size:43px;
  }
  .plan-description {
    min-height:0;
    font-size:13px;
  }
  .plan-highlight strong,.plan-highlight small {
    font-size:11px;
  }
  .plan-features li {
    font-size:12px;
  }
  .go-plan {
    flex-wrap:wrap;
    gap:12px;
    padding:20px;
  }
  .go-plan-icon {
    display:none;
  }
  .go-plan-copy {
    flex-basis:calc(100% - 33px);
  }
  .go-plan-price {
    flex:1;
    margin-top:5px;
    margin-right:0;
    margin-left:29px;
  }
  .go-plan-copy p {
    font-size:11px;
  }
  .go-plan-button {
    min-height:42px;
    padding-inline:14px;
    font-size:12px;
  }
  .reviews-section {
    padding:36px 0 42px;
  }
  .review-card {
    width:276px;
    padding:20px;
  }
  .tutorial-summary {
    padding:20px 18px;
    gap:13px;
  }
  .tutorial-number {
    width:33px;
    height:33px;
  }
  .tutorial-summary-copy strong {
    font-size:13px;
  }
  .tutorial-summary-copy > span {
    font-size:11px;
  }
  .tutorial-body {
    grid-template-columns:1fr;
    gap:24px;
    padding:22px 19px;
  }
  .tutorial-instructions h3 {
    font-size:15px;
  }
  .tutorial-instructions ol {
    font-size:12px;
  }
  .tutorial-visual {
    padding:18px;
  }
  .faq-section {
    padding-top:32px;
    padding-bottom:45px;
  }
  .faq-list summary {
    font-size:13px;
    padding:21px 0;
  }
  .faq-list p {
    font-size:12px;
    padding-right:5px;
  }
  .contact-grid {
    grid-template-columns:1fr;
    gap:18px;
  }
  .contact-card {
    padding:23px;
  }
  .footer-inner {
    font-size:10px;
  }
  .site-footer {
    padding-bottom:80px;
  }
  .footer-links {
    gap:17px;
  }
  .dialog-inner {
    padding:30px 21px 24px;
  }
  .checkout-heading h2 {
    font-size:23px;
  }
  .checkout-layout {
    grid-template-columns:1fr;
    gap:23px;
  }
  .checkout-plan {
    padding:21px;
  }
  .checkout-plan h3 {
    margin-top:10px;
    font-size:20px;
  }
  .checkout-plan > strong {
    font-size:32px;
  }
  .checkout-plan-note {
    padding-top:17px;
  }
  .checkout-account {
    margin-bottom:20px;
  }
  .member-auth-form input {
    font-size:16px;
  }
  .member-auth-form input::placeholder {
    font-size:12px;
  }
  .payment-summary {
    padding:14px;
    gap:10px;
  }
  .payment-amount > strong {
    font-size:24px;
  }
  .orders-page {
    padding-top:31px;
    padding-bottom:45px;
  }
  .orders-page-heading {
    flex-direction:column;
    align-items:flex-start;
    gap:18px;
  }
  .orders-page-heading h1 {
    font-size:29px;
  }
  .orders-page-actions {
    justify-content:flex-start;
  }
  .orders-page-actions .button {
    min-height:40px;
    font-size:11px;
  }
  .orders-group-heading {
    padding:19px 17px;
    font-size:17px;
  }
  .orders-group-content {
    padding:16px;
  }
  .orders-group-description {
    font-size:11px;
    margin-bottom:16px;
  }
  .order-result-card {
    padding:19px 16px;
  }
  .order-result-heading h3 {
    font-size:14px;
  }
  .order-result-meta > strong {
    font-size:18px;
  }
  .order-result-details {
    gap:12px 25px;
    font-size:11px;
  }
  .order-result-details dt {
    font-size:10px;
  }
  .order-result-id {
    font-size:11px;
  }
  .orders-guest-prompt {
    align-items:flex-start;
    flex-direction:column;
    gap:16px;
    padding:21px;
  }
  .orders-guest-prompt h2 {
    font-size:16px;
  }
  .support-dialog {
    --support-chat-clearance:98px;
    right:12px;
    bottom:76px;
    max-width:calc(100% - 24px);
    max-height:calc(100dvh - 98px);
  }
  .support-dialog .dialog-inner {
    padding:23px 19px 17px;
  }
  .support-float {
    right:16px;
    bottom:18px;
    min-height:43px;
    padding-inline:13px;
    font-size:11px;
  }
  .chat-message p,.chat-form textarea {
    font-size:16px;
  }
  .consult-heading {
    padding-inline:5px;
  }
  .consult-heading h2 {
    font-size:22px;
  }
  .consult-plan {
    padding:14px;
  }
  .consult-next {
    gap:11px;
    font-size:9px;
  }
  .consult-next span+span:before {
    margin-right:11px;
  }
  .wechat-contact {
    padding:18px 15px 15px;
  }
  .wechat-id-actions {
    gap:9px;
  }
  .wechat-id-actions .button {
    padding-inline:10px;
  }
  .toast {
    bottom:75px;
  }
}

@media(max-width:400px) {
  .container {
    padding-inline:16px;
  }
  .brand-light {
    font-size:14px;
  }
  .header-inner {
    padding-inline:14px;
  }
  .header-account-actions :is(button,a) {
    padding-inline:7px;
  }
  .hero-title {
    font-size:35px;
  }
  .home-plan-price {
    padding-inline:7px;
  }
  .home-plan-price strong {
    font-size:16px;
  }
  .hero-actions {
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }
  .member-captcha-row {
    grid-template-columns:minmax(0,1fr) 110px;
    gap:7px;
  }
  .member-captcha-image-button img {
    width:110px;
  }
  .member-captcha-refresh {
    grid-column:2;
    justify-self:end;
    min-height:24px;
    margin-top:-5px;
  }
  .wechat-id {
    font-size:20px;
  }
  .orders-group-toggle {
    gap:7px;
    font-size:10px;
  }
}

@media(max-height:650px) {
  .support-dialog {
    --support-chat-clearance:28px;
    bottom:14px;
    max-height:calc(100dvh - 28px);
  }
  .support-heading {
    margin-bottom:12px;
  }
  .support-tabs {
    margin-bottom:10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior:auto;
  }
  *,*::before,*::after {
    transition:none !important;
  }
  .review-track {
    animation:none;
  }
  .review-wall {
    mask-image:none;
  }
  .review-marquee {
    overflow:auto;
  }
  .review-set[aria-hidden="true"] {
    display:none;
  }
  .review-card[aria-hidden="true"] {
    display:none;
  }
}
