:root {
  --ink: #171d1a;
  --muted: #69736f;
  --faint: #8b948f;
  --line: #e4e7e3;
  --line-strong: #c9d1cb;
  --paper: #f7f8f5;
  --surface: #ffffff;
  --surface-raised: #fbfcfa;
  --soft: #eef2ee;
  --teal: #0b7b6f;
  --teal-strong: #075f56;
  --teal-soft: #dff3ee;
  --blue: #315fd1;
  --blue-soft: #e8eefc;
  --violet: #6f55d8;
  --violet-soft: #efeafb;
  --amber: #b87917;
  --amber-soft: #fff1d5;
  --coral: #b84f42;
  --coral-soft: #ffe8e3;
  --shadow-sm: 0 1px 2px rgba(23, 29, 26, 0.06), 0 10px 24px rgba(23, 29, 26, 0.06);
  --shadow-md: 0 20px 54px rgba(23, 29, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(241, 244, 240, 0.96), rgba(247, 248, 245, 1) 440px),
    radial-gradient(circle at top right, rgba(111, 85, 216, 0.1), transparent 380px);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 42px;
  color: #fff;
  background: linear-gradient(180deg, rgba(10, 15, 14, 0.72), rgba(10, 15, 14, 0));
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.site-brand strong,
.site-brand small {
  display: block;
}

.site-brand small {
  color: rgba(255, 255, 255, 0.68);
  margin-top: 3px;
  font-size: 12px;
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav nav a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav nav a:hover {
  color: #fff;
}

.nav-cta {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  font-weight: 900;
}

.landing-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 112px 7vw 112px;
  color: #fff;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(8, 12, 12, 0.92) 0%, rgba(10, 17, 16, 0.78) 43%, rgba(9, 13, 12, 0.2) 100%),
    url("./assets/codex-ecommerce-hero.png");
  background-size: cover;
  background-position: center right;
}

.landing-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(247, 248, 245, 0), var(--paper));
  pointer-events: none;
}

.landing-copy {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.landing-kicker {
  margin: 0 0 18px;
  color: #9ce1d3;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.landing-copy h1 {
  max-width: 900px;
  font-size: 64px;
  line-height: 1.02;
  color: #fff;
  text-wrap: balance;
}

.landing-copy p:not(.landing-kicker) {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.78;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  font-size: 12px;
  font-weight: 900;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 900;
  text-decoration: none;
}

.hero-primary {
  border: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.hero-secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.intro-band {
  width: min(1180px, calc(100% - 44px));
  margin: -44px auto 34px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.72fr);
  gap: 34px;
  align-items: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.intro-band h2 {
  font-size: 31px;
}

.intro-band p:last-child {
  color: var(--muted);
  line-height: 1.72;
  margin: 0;
}

.assurance-section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto 42px;
}

.assurance-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.assurance-head h2 {
  max-width: 740px;
  font-size: 32px;
}

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

.assurance-grid article {
  min-height: 218px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.assurance-grid article:nth-child(2) {
  border-color: rgba(49, 95, 209, 0.18);
  background: linear-gradient(180deg, #fff, var(--blue-soft));
}

.assurance-grid article:nth-child(3) {
  border-color: rgba(184, 121, 23, 0.2);
  background: linear-gradient(180deg, #fff, var(--amber-soft));
}

.assurance-grid article:nth-child(4) {
  border-color: rgba(111, 85, 216, 0.18);
  background: linear-gradient(180deg, #fff, var(--violet-soft));
}

.assurance-grid span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.assurance-grid strong {
  display: block;
  margin-top: 18px;
  font-size: 19px;
}

.assurance-grid p {
  color: var(--muted);
  line-height: 1.62;
  margin: 12px 0 0;
}

.pricing-section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto 42px;
}

.pricing-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.pricing-head h2 {
  max-width: 720px;
  font-size: 32px;
}

.pricing-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.pricing-status span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.pricing-status span:last-child {
  color: var(--violet);
  background: var(--violet-soft);
  border-color: rgba(111, 85, 216, 0.2);
}

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

.plan-card {
  min-height: 318px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.featured-plan {
  background: var(--ink);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-md);
}

.custom-plan {
  background: linear-gradient(180deg, #ffffff, #f4faf7);
  border-color: rgba(11, 123, 111, 0.2);
}

.plan-label {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.featured-plan .plan-label {
  color: #9ce1d3;
}

.plan-card strong {
  display: block;
  margin-top: 14px;
  font-size: 34px;
  line-height: 1;
}

.plan-card p {
  color: var(--muted);
  line-height: 1.58;
  margin: 16px 0 16px;
}

.featured-plan p {
  color: rgba(255, 255, 255, 0.72);
}

.plan-card ul {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.plan-card li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  padding-left: 18px;
  position: relative;
}

.featured-plan li {
  color: rgba(255, 255, 255, 0.76);
}

.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.plan-buy-button,
.plan-link-button,
.member-buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 15px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
  text-decoration: none;
}

.plan-buy-button.dark,
.member-buy-button {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.featured-plan .plan-buy-button {
  color: var(--ink);
  border-color: #fff;
  background: #fff;
}

.rules-section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto 42px;
}

.rules-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.rules-head h2 {
  max-width: 760px;
  font-size: 30px;
}

.rules-contact {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.delivery-flow-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1.42fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.delivery-visual-wrap {
  overflow: hidden;
  border-radius: 8px;
  background: #f6f8f7;
}

.delivery-flow-image {
  width: 100%;
  max-height: 230px;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

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

.delivery-guide article {
  min-height: 106px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.delivery-guide span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 24px;
  margin-bottom: 10px;
  border-radius: 999px;
  color: var(--teal-strong);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.delivery-guide strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.delivery-guide p {
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 0;
  font-size: 14px;
}

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

.rules-grid article {
  min-height: 172px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.rules-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.rules-grid p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.market-section {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto 70px;
  scroll-margin-top: 96px;
}

.market-shell {
  position: relative;
  overflow: visible;
  padding: 34px;
  border: 1px solid rgba(156, 225, 211, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(18, 163, 145, 0.16) 0%, transparent 26%),
    linear-gradient(245deg, rgba(111, 85, 216, 0.1) 0%, transparent 24%),
    linear-gradient(180deg, #0d1413 0%, #101816 100%);
  box-shadow: 0 28px 80px rgba(12, 18, 17, 0.18);
}

.market-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(156, 225, 211, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 225, 211, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  clip-path: inset(0 round 8px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 56%);
}

.market-shell > * {
  position: relative;
  z-index: 1;
}

.market-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.market-header h2 {
  font-size: 34px;
  color: #fff;
}

.market-header p:last-child {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
  margin: 10px 0 0;
}

.market-header .eyebrow {
  color: #9ce1d3;
}

.market-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.market-actions .cart-button {
  border: 1px solid rgba(156, 225, 211, 0.26);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.market-actions .cart-button span {
  color: #0d1413;
  background: #9ce1d3;
}

.market-tools {
  display: grid;
  grid-template-columns: minmax(280px, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid rgba(156, 225, 211, 0.18);
  border-radius: 8px;
  background: rgba(9, 14, 14, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-chips .filter-button {
  width: auto;
  min-height: 40px;
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  backdrop-filter: blur(14px);
}

.filter-chips .filter-button.active {
  border-color: rgba(156, 225, 211, 0.52);
  color: #0d1413;
  background: linear-gradient(135deg, #9ce1d3, #ffffff);
  box-shadow: 0 14px 30px rgba(18, 163, 145, 0.2);
}

.filter-chips .filter-button b {
  color: rgba(255, 255, 255, 0.56);
}

.filter-chips .filter-button.active b {
  color: rgba(13, 20, 19, 0.72);
}

.market-tools .search-wrap {
  max-width: 780px;
  border-color: rgba(156, 225, 211, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 36px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
}

.market-tools .search-icon {
  border-color: rgba(156, 225, 211, 0.84);
}

.market-tools .search-icon::after {
  background: rgba(156, 225, 211, 0.84);
}

.market-tools .search-wrap input {
  color: #fff;
}

.market-tools .search-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.market-tools .format-options .check-row,
.market-tools .tab {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.market-tools .format-options .check-row input {
  accent-color: #9ce1d3;
}

.market-tools .tab.active {
  border-color: rgba(156, 225, 211, 0.6);
  color: #0d1413;
  background: linear-gradient(135deg, #12a391, #9ce1d3);
  box-shadow: 0 14px 28px rgba(18, 163, 145, 0.2);
}

.market-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 188px;
  gap: 14px;
  padding-bottom: 0;
  align-items: start;
}

.member-card {
  position: sticky;
  top: 92px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  border: 1px solid rgba(156, 225, 211, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(145deg, #0d1413, #141d1b 72%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 58px rgba(13, 20, 19, 0.2);
}

.member-card.is-flashing {
  animation: cartFlash 0.9s ease;
}

@keyframes cartFlash {
  0%,
  100% {
    box-shadow: var(--shadow-md);
  }

  35% {
    box-shadow: 0 0 0 4px rgba(18, 163, 145, 0.3), var(--shadow-md);
  }
}

.member-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.member-card-head strong {
  font-size: 18px;
}

.member-price,
.order-total-card {
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(156, 225, 211, 0.1), transparent 44%),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(156, 225, 211, 0.18);
}

.member-price span,
.member-price strong,
.member-price small,
.order-total-card span,
.order-total-card strong,
.order-total-card small {
  display: block;
}

.member-price span,
.member-price small,
.order-total-card span,
.order-total-card small {
  color: rgba(255, 255, 255, 0.66);
}

.member-price strong,
.order-total-card strong {
  margin: 7px 0;
  font-size: 38px;
  line-height: 1;
}

.order-panel {
  position: sticky;
  top: 88px;
  z-index: 8;
  align-self: start;
  width: 100%;
  max-height: calc(100vh - 104px);
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  background:
    linear-gradient(150deg, rgba(156, 225, 211, 0.12), transparent 38%),
    linear-gradient(180deg, #0d1413, #121a18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 24px 58px rgba(13, 20, 19, 0.2);
  will-change: transform;
}

.order-total-card {
  margin-bottom: 0;
}

.order-panel .member-card-head {
  gap: 8px;
  margin-bottom: 0;
  min-width: 0;
}

.order-panel .member-card-head strong {
  font-size: 16px;
}

.order-panel .order-total-card {
  padding: 12px;
}

.order-panel .order-total-card strong {
  margin: 5px 0 4px;
  font-size: 30px;
}

.order-panel .cart-summary {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 9px;
  min-width: 0;
}

.order-panel .cart-label {
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.order-panel .cart-list {
  min-height: 42px;
  max-height: 168px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-color: rgba(156, 225, 211, 0.38) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.order-panel .cart-item {
  align-items: start;
  padding: 7px 0;
  gap: 6px;
}

.order-panel .cart-item span {
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.order-panel .cart-item small {
  display: block;
  margin: 1px 0 0;
}

.order-panel .cart-item strong {
  font-size: 13px;
}

.order-panel .cart-remove {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  font-size: 16px;
}

.order-panel .cart-list::-webkit-scrollbar {
  width: 6px;
}

.order-panel .cart-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.order-panel .cart-list::-webkit-scrollbar-thumb {
  background: rgba(156, 225, 211, 0.38);
  border-radius: 999px;
}

.order-panel .primary-button {
  min-height: 42px;
  font-size: 15px;
}

.member-card ul {
  list-style: none;
  margin: 16px 0 12px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.member-card li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.45;
}

.member-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ce1d3;
}

.cart-summary {
  display: grid;
  gap: 12px;
}

.cart-summary > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-summary span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.cart-label {
  display: block;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.66);
  font-weight: 900;
  letter-spacing: 0;
}

.cart-summary .cart-list {
  min-height: 74px;
  color: rgba(255, 255, 255, 0.7);
}

.cart-summary .cart-item {
  color: #fff;
  border-top-color: rgba(255, 255, 255, 0.14);
}

.cart-summary .primary-button {
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

.review-button {
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.payment-modal {
  width: min(920px, calc(100vw - 28px));
}

.payment-modal::backdrop {
  background:
    radial-gradient(circle at 50% 30%, rgba(0, 128, 116, 0.24), transparent 34%),
    rgba(4, 8, 7, 0.72);
  backdrop-filter: blur(8px);
}

.consult-modal {
  width: min(560px, calc(100vw - 28px));
}

.consult-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
}

.consult-card img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.consult-card strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
}

.consult-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0 14px;
}

.consult-card a {
  color: var(--teal-strong);
  font-weight: 900;
  text-decoration: none;
}

.modal-copy {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.order-copy-card {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.order-copy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-copy-head strong,
.order-copy-head span {
  display: block;
}

.order-copy-head strong {
  color: var(--ink);
}

.order-copy-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.order-copy-card pre {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.checkout-brief {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 14px;
  align-items: stretch;
}

.checkout-amount,
.checkout-next {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkout-amount span,
.checkout-amount small,
.checkout-next strong,
.checkout-next p {
  display: block;
}

.checkout-amount span,
.checkout-amount small,
.checkout-next p {
  color: var(--muted);
}

.checkout-amount strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.checkout-next {
  display: grid;
  gap: 8px;
  align-content: center;
}

.checkout-next p {
  margin: 0;
  line-height: 1.55;
}

.order-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.order-details summary {
  cursor: pointer;
  padding: 11px 12px;
  color: var(--ink);
  font-weight: 900;
}

.order-details pre {
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
}

.payment-grid {
  display: grid;
  gap: 14px;
}

.simple-payment-section {
  display: grid;
  gap: 12px;
}

.simple-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.simple-section-head h3 {
  margin: 0;
  font-size: 20px;
}

.simple-section-head p {
  max-width: 420px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

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

.simple-pay-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 178px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkout-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 0.82fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(156, 225, 211, 0.18), transparent 34%),
    linear-gradient(135deg, #111816, #202824 62%, #121615);
  box-shadow: 0 20px 54px rgba(23, 29, 26, 0.16);
}

.checkout-visual-pane {
  min-height: 214px;
  overflow: hidden;
}

.checkout-visual-pane img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
}

.checkout-info-pane {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
  background: linear-gradient(90deg, rgba(18, 24, 22, 0.28), rgba(18, 24, 22, 0.86));
}

.checkout-mode {
  width: max-content;
  padding: 6px 10px;
  border: 1px solid rgba(156, 225, 211, 0.28);
  border-radius: 999px;
  color: #9ce1d3;
  background: rgba(156, 225, 211, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.checkout-total {
  color: #fff;
  font-size: 48px;
  line-height: 1;
}

.checkout-info-pane p {
  max-width: 330px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.checkout-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.checkout-benefit-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.checkout-benefit-row span,
.receipt-action-card {
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkout-benefit-row span {
  display: grid;
  align-content: center;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.checkout-benefit-row strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.receipt-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.receipt-action-card strong,
.receipt-action-card span {
  display: block;
}

.receipt-action-card span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.premium-payment-section {
  gap: 14px;
}

.premium-payment-head {
  padding-top: 4px;
}

.premium-pay-grid {
  gap: 14px;
}

.premium-pay-card {
  position: relative;
  min-height: 218px;
  padding: 18px;
  border-color: rgba(23, 29, 26, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 245, 0.96)),
    radial-gradient(circle at top right, rgba(11, 123, 111, 0.1), transparent 44%);
  box-shadow: 0 14px 34px rgba(23, 29, 26, 0.08);
}

.checkout-ledger-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(156, 225, 211, 0.18);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 24, 22, 0.98), rgba(11, 34, 31, 0.94)),
    radial-gradient(circle at 90% 10%, rgba(24, 210, 183, 0.18), transparent 34%);
  box-shadow: 0 22px 52px rgba(15, 24, 22, 0.2);
}

.checkout-ledger-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(156, 225, 211, 0.62), transparent);
}

.checkout-ledger-top {
  grid-row: 1 / 3;
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.checkout-ledger-top span,
.checkout-ledger-top small,
.checkout-ledger-note p {
  color: rgba(255, 255, 255, 0.66);
}

.checkout-ledger-top strong {
  font-size: 36px;
  line-height: 0.95;
  letter-spacing: 0;
}

.checkout-step-line {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.checkout-step-line span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(156, 225, 211, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 900;
}

.checkout-ledger-note {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 0;
  padding: 0 4px;
}

.checkout-ledger-note strong {
  font-size: 18px;
}

.checkout-ledger-note p {
  max-width: 520px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.checkout-simple-card {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(23, 29, 26, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(11, 123, 111, 0.12), transparent 34%),
    #fff;
  box-shadow: 0 14px 34px rgba(23, 29, 26, 0.08);
}

.checkout-simple-total,
.checkout-email-card,
.checkout-simple-note {
  min-height: 142px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 249, 246, 0.74);
}

.checkout-simple-total {
  display: grid;
  align-content: center;
  gap: 7px;
}

.checkout-simple-total span,
.checkout-simple-total small,
.checkout-email-card p,
.checkout-simple-note p {
  color: var(--muted);
}

.checkout-simple-total strong {
  font-size: 44px;
  line-height: 1;
}

.checkout-email-card,
.checkout-simple-note {
  display: grid;
  align-content: center;
  gap: 10px;
}

.checkout-email-card label,
.checkout-simple-note strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.checkout-email-card input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(23, 29, 26, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  outline: none;
}

.checkout-email-card input:focus {
  border-color: rgba(0, 128, 116, 0.54);
  box-shadow: 0 0 0 4px rgba(0, 128, 116, 0.1);
}

.pay-picker {
  display: grid;
  grid-template-columns: minmax(190px, 0.5fr) minmax(420px, 1.5fr);
  gap: 16px;
  align-items: stretch;
}

.premium-checkout-shell {
  padding: 12px;
  border: 1px solid rgba(23, 29, 26, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fbfcfa, #f4f7f3),
    radial-gradient(circle at 88% 0%, rgba(0, 128, 116, 0.1), transparent 38%);
}

.payment-modal .after-pay-strip,
.payment-modal .payment-more,
.payment-modal .payment-note {
  display: none;
}

.checkout-pay-left {
  display: grid;
  align-content: start;
  gap: 14px;
}

.premium-payment-head {
  display: grid;
  gap: 7px;
  padding: 0;
}

.premium-payment-head span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
}

.premium-payment-head h3 {
  margin: 0;
  font-size: 24px;
}

.premium-payment-head p {
  margin: 0;
  color: var(--muted);
}

.pay-choice-row {
  display: grid;
  gap: 10px;
}

.pay-choice-button {
  min-height: 66px;
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(23, 29, 26, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 246, 0.98));
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pay-choice-button b {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-size: 18px;
}

.pay-choice-button.alipay b {
  background: #1976ff;
}

.pay-choice-button.wechat b {
  background: #09b96c;
}

.pay-choice-button span,
.pay-choice-button small {
  display: block;
}

.pay-choice-button span {
  align-self: end;
  font-size: 17px;
  font-weight: 950;
}

.pay-choice-button small {
  align-self: start;
  margin-top: 2px;
  color: var(--teal);
  font-weight: 900;
}

.pay-choice-button:hover,
.pay-choice-button.active {
  border-color: rgba(0, 128, 116, 0.46);
  box-shadow: 0 12px 30px rgba(23, 29, 26, 0.1);
  transform: translateY(-1px);
}

.pay-choice-button.active {
  background:
    linear-gradient(135deg, rgba(219, 246, 240, 0.96), rgba(255, 255, 255, 0.98));
}

.pay-qr-panel {
  min-height: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(23, 29, 26, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 8%, rgba(14, 186, 160, 0.13), transparent 34%),
    linear-gradient(135deg, #101613, #18231f);
  color: #fff;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.qr-idle-mark {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(156, 225, 211, 0.24);
  border-radius: 16px;
  color: #9ce1d3;
  background: rgba(156, 225, 211, 0.08);
  font-weight: 950;
}

.pay-qr-panel > strong {
  font-size: 26px;
}

.pay-qr-panel > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

.selected-pay-head {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.selected-pay-head strong {
  color: #fff;
  font-size: 24px;
}

.selected-pay-head p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.selected-pay-head span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(219, 246, 240, 0.96);
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
}

.selected-qr-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(350px, 96%);
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(156, 225, 211, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.selected-payment-qr {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.9);
}

.selected-qr-shell.wechat .selected-payment-qr {
  object-position: center 42%;
  transform: scale(2.58);
}

.selected-qr-shell.alipay .selected-payment-qr {
  object-position: center 46%;
  transform: scale(2.28);
}

.pay-done-button {
  width: min(350px, 100%);
  margin: 0 auto;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

.post-pay-email {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(156, 225, 211, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  text-align: left;
}

.post-pay-email[hidden] {
  display: none;
}

.post-pay-email label {
  color: #fff;
  font-weight: 950;
}

.delivery-email-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.post-pay-email input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(23, 29, 26, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  outline: none;
}

.post-pay-email input:focus {
  border-color: rgba(0, 128, 116, 0.54);
  box-shadow: 0 0 0 4px rgba(0, 128, 116, 0.1);
}

.post-pay-email p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.post-pay-email a {
  color: #9ce1d3;
  font-weight: 900;
  text-decoration: none;
}

.premium-pay-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 8px 0 0 8px;
  background: var(--teal);
}

.premium-pay-card.alipay::before {
  background: #2b7cff;
}

.premium-pay-card.wechat::before {
  background: #13c56b;
}

.pay-card-copy {
  display: grid;
  gap: 7px;
  align-content: center;
}

.pay-card-copy span {
  width: max-content;
  margin: 0;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  font-size: 12px;
}

.premium-pay-card.alipay .pay-card-copy span {
  color: #1d56af;
  background: var(--blue-soft);
}

.pay-card-copy strong {
  font-size: 26px;
  line-height: 1.15;
}

.pay-card-copy p {
  grid-column: auto;
  max-width: 180px;
  color: var(--muted);
  font-size: 14px;
}

.qr-frame {
  display: grid;
  place-items: center;
  width: 168px;
  min-height: 168px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 6px rgba(247, 248, 245, 0.72);
}

.qr-frame .payment-qr {
  width: 142px;
  height: 142px;
  border: 0;
}

.simple-pay-card strong,
.simple-pay-card span,
.simple-pay-card p {
  display: block;
}

.simple-pay-card strong {
  font-size: 20px;
}

.simple-pay-card span {
  margin-top: 4px;
  color: var(--teal-strong);
  font-weight: 900;
}

.simple-pay-card p {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.after-pay-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--teal-strong);
  background: var(--teal-soft);
}

.after-pay-strip strong {
  flex: 0 0 auto;
}

.after-pay-strip span {
  color: var(--ink);
  line-height: 1.5;
}

.after-pay-strip a {
  color: var(--teal-strong);
  font-weight: 900;
  text-decoration: none;
}

.payment-more {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
}

.payment-more summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 900;
}

.more-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 14px 14px;
}

.more-payment-grid div {
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}

.more-payment-grid p {
  color: var(--muted);
  line-height: 1.5;
  margin: 6px 0 0;
}

.support-qr {
  width: 118px;
  height: 118px;
  margin-top: 10px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.payment-group {
  display: grid;
  gap: 10px;
}

.payment-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.payment-group-head h3 {
  margin: 0;
  font-size: 18px;
}

.payment-group-head p {
  max-width: 430px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  font-size: 13px;
}

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

.payment-method {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 244px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.payment-method.is-disabled {
  background: var(--surface-raised);
}

.payment-method-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.payment-method strong,
.payment-method small {
  display: block;
}

.payment-method small {
  color: var(--teal);
  margin-top: 3px;
  font-size: 12px;
  font-weight: 900;
}

.payment-method p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.payment-placeholder {
  display: grid;
  place-items: center;
  min-height: 78px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

.payment-qr {
  width: 142px;
  height: 142px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: auto;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.payment-link.muted {
  color: var(--muted);
  background: var(--soft);
}

.manual-contact {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
  text-decoration: none;
}

.payment-note {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 13px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal-strong);
}

.payment-note strong,
.payment-note span {
  display: block;
}

.payment-note span {
  line-height: 1.55;
}

.format-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border-top: 0;
}

.format-options .check-row {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.faq-section {
  width: min(980px, calc(100% - 44px));
  margin: 0 auto 58px;
}

.faq-head {
  margin-bottom: 16px;
}

.faq-head h2 {
  font-size: 32px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-list summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.faq-list summary::marker {
  color: var(--teal);
}

.faq-list p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.68;
}

.support-section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid rgba(156, 225, 211, 0.18);
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(14, 186, 160, 0.18), transparent 34%),
    linear-gradient(135deg, #101613, #19241f);
  box-shadow: var(--shadow-md);
}

.support-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 240px;
}

.support-copy h2 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.support-copy p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.support-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-tags span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(156, 225, 211, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 900;
}

.support-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.support-card img {
  width: 148px;
  height: 148px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #fff;
}

.support-card strong,
.support-card p,
.support-card a {
  display: block;
}

.support-card strong {
  color: #fff;
  font-size: 22px;
}

.support-card p {
  margin: 8px 0 12px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.6;
}

.support-card a {
  color: #9ce1d3;
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23, 29, 26, 0.98), rgba(19, 28, 31, 0.96)),
    var(--ink);
  box-shadow: var(--shadow-md);
}

.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 280px;
}

.footer-brand-block .brand-mark {
  flex: 0 0 auto;
}

.footer-brand-block strong,
.footer-brand-block p,
.footer-meta span {
  display: block;
}

.footer-brand-block strong {
  font-size: 18px;
}

.footer-brand-block p {
  max-width: 420px;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-meta span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: rgba(255, 255, 255, 0.82);
  border-right: 1px solid rgba(228, 231, 227, 0.92);
  backdrop-filter: blur(18px);
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  margin-bottom: 32px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 14px 30px rgba(23, 29, 26, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
}

.side-block {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.side-title {
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.filter-button,
.ghost-button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
}

.filter-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  text-align: left;
}

.filter-button b {
  color: var(--faint);
  font-size: 12px;
}

.filter-button.active {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.filter-button.active b {
  color: rgba(255, 255, 255, 0.68);
}

.filter-button:hover:not(.active),
.ghost-button:hover {
  background: var(--soft);
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 2px;
  color: var(--ink);
}

.check-row input {
  accent-color: var(--teal);
}

.trust-panel {
  margin-top: 18px;
  padding: 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.trust-panel p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0 16px;
}

.trust-kicker {
  color: #9ce1d3;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
}

.trust-panel .ghost-button {
  background: #fff;
  color: var(--ink);
  text-align: center;
}

.main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
}

.topbar {
  grid-column: 1 / -1;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(228, 231, 227, 0.88);
  background: rgba(247, 248, 245, 0.78);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 4;
}

.market-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(11, 123, 111, 0.12);
}

.search-wrap {
  min-width: 240px;
  max-width: 640px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 0 14px;
  height: 44px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.search-icon {
  width: 14px;
  height: 14px;
  border: 2px solid var(--faint);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.search-icon::after {
  content: "";
  width: 6px;
  height: 2px;
  background: var(--faint);
  position: absolute;
  right: -5px;
  bottom: -3px;
  transform: rotate(45deg);
}

.search-wrap input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  color: var(--ink);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.cart-button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  font-weight: 800;
}

.icon-button {
  width: 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.cart-button,
.primary-button {
  padding: 0 17px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 24px rgba(23, 29, 26, 0.14);
}

.primary-button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: var(--soft);
  box-shadow: none;
}

.secondary-button {
  padding: 0 17px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
}

.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
}

.workbench {
  min-width: 0;
  padding: 30px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 26px;
  align-items: stretch;
  min-height: 420px;
  margin-bottom: 18px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.eyebrow {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 8px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.18;
}

.subcopy {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.72;
  margin: 18px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--ink);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.98) contrast(1.03);
}

.floating-proof {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-radius: 8px;
  box-shadow: 0 20px 42px rgba(23, 29, 26, 0.18);
}

.floating-proof span,
.floating-proof small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.floating-proof strong {
  display: block;
  margin: 4px 0;
  font-size: 18px;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.metrics-strip div {
  min-height: 84px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.metrics-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.metrics-strip strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

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

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.tab {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  white-space: nowrap;
  font-weight: 800;
}

.tab.active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-right: 0;
}

.skill-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 298px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 249, 0.94)),
    linear-gradient(135deg, rgba(18, 163, 145, 0.12), transparent);
  border: 1px solid rgba(13, 20, 19, 0.1);
  border-radius: 8px;
  padding: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 18px 42px rgba(13, 20, 19, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 2px solid rgba(18, 163, 145, 0.32);
  opacity: 0.72;
}

.skill-card::after {
  content: "";
  position: absolute;
  top: 15px;
  right: 16px;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18, 163, 145, 0.55));
  pointer-events: none;
}

.skill-card:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 163, 145, 0.36);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 24px 58px rgba(13, 20, 19, 0.14);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #9ce1d3;
  background:
    linear-gradient(145deg, rgba(13, 20, 19, 0.98), rgba(18, 35, 32, 0.96));
  border: 1px solid rgba(156, 225, 211, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 26px rgba(13, 20, 19, 0.16);
  font-weight: 900;
}

.skill-card h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
}

.skill-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.tag {
  background: rgba(13, 20, 19, 0.06);
  color: var(--ink);
}

.tag.bundle {
  background: var(--amber-soft);
  color: #7d4c08;
}

.tag.plugin {
  background: var(--blue-soft);
  color: var(--blue);
}

.tag.skill {
  background: var(--teal-soft);
  color: var(--teal-strong);
}

.risk {
  background: var(--coral-soft);
  color: var(--coral);
}

.risk.low {
  background: var(--teal-soft);
  color: var(--teal-strong);
}

.card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(13, 20, 19, 0.1);
}

.price {
  font-size: 22px;
  font-weight: 900;
}

.mini-actions {
  display: flex;
  gap: 6px;
}

.mini-button {
  border: 1px solid rgba(13, 20, 19, 0.15);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-radius: 8px;
  min-height: 36px;
  padding: 0 10px;
  font-weight: 800;
}

.mini-button.dark {
  background: linear-gradient(135deg, #0d1413, #14211f);
  color: #fff;
  border-color: rgba(156, 225, 211, 0.18);
  box-shadow: 0 12px 22px rgba(13, 20, 19, 0.18);
}

.mini-button:disabled,
.mini-button.is-added {
  cursor: default;
  color: var(--muted);
  border-color: var(--line);
  background: var(--soft);
}

.right-panel {
  padding: 30px 22px;
  border-left: 1px solid rgba(228, 231, 227, 0.92);
  background: rgba(255, 255, 255, 0.66);
}

.panel-section {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.highlight-panel {
  background: linear-gradient(180deg, #ffffff, #f4faf7);
  border-color: rgba(11, 123, 111, 0.18);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-title span {
  color: var(--muted);
  font-size: 12px;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  margin-top: 9px;
  background: #fff;
}

.price-card.selected {
  border-color: rgba(11, 123, 111, 0.42);
  background: var(--teal-soft);
}

.price-card span,
.price-card strong {
  display: block;
}

.price-card strong {
  margin-top: 3px;
}

.price-card p {
  color: var(--muted);
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.48;
}

.check-list {
  padding-left: 20px;
  margin: 0;
  line-height: 2;
}

.check-list .done {
  color: var(--teal-strong);
  font-weight: 800;
}

.cart-list {
  min-height: 82px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.cart-item span,
.cart-item small {
  display: block;
}

.cart-item span {
  min-width: 0;
}

.cart-item small {
  margin-top: 2px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
}

.cart-remove {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.full {
  width: 100%;
}

.modal {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  max-height: min(86vh, 920px);
  overflow: auto;
  width: min(640px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.modal.payment-modal {
  width: min(940px, calc(100vw - 28px));
  max-height: min(94vh, 920px);
  padding: 22px;
}

.payment-modal .modal-head h2 {
  margin-bottom: 8px;
}

.payment-modal .modal-copy {
  display: none;
}

.modal::backdrop {
  background: rgba(23, 29, 26, 0.48);
  backdrop-filter: blur(4px);
}

.close-button {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.modal-head h2,
#detailBody h2 {
  margin: 4px 0 12px;
}

#detailModal {
  width: min(780px, calc(100vw - 28px));
}

.skill-detail-sheet {
  display: grid;
  gap: 14px;
}

.skill-detail-hero {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 16%, rgba(156, 225, 211, 0.16), transparent 34%),
    linear-gradient(135deg, #101715, #242c27);
}

.detail-icon-large {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(156, 225, 211, 0.3);
  border-radius: 8px;
  color: #9ce1d3;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 24px rgba(156, 225, 211, 0.12);
  font-size: 24px;
  font-weight: 900;
}

.detail-hero-copy h2 {
  color: #fff;
  margin: 3px 0 10px;
  font-size: 30px;
  line-height: 1.15;
}

.detail-hero-copy p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin: 0;
}

.detail-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.detail-meta-pills span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.detail-core-card,
.detail-panel,
.detail-update-panel,
.detail-delivery-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.detail-core-card,
.detail-delivery-panel {
  padding: 16px;
}

.detail-section-title span,
.detail-panel span,
.detail-update-panel span {
  display: block;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.detail-section-title strong {
  display: block;
  margin-top: 5px;
  font-size: 19px;
  line-height: 1.35;
}

.core-point-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.core-point {
  min-height: 106px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f4faf7);
}

.core-point b {
  color: var(--teal-strong);
  font-size: 13px;
}

.core-point span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.42;
}

.detail-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-panel {
  padding: 16px;
}

.detail-panel p {
  color: var(--ink);
  line-height: 1.65;
  margin: 8px 0 0;
}

.detail-update-panel {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f7f8f5);
}

.detail-update-panel strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.detail-update-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.detail-update-panel li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  line-height: 1.45;
}

.detail-update-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.delivery-spec-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.delivery-spec-row span {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.delivery-spec-row b {
  color: var(--ink);
}

.detail-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.detail-actions-row .primary-button {
  min-height: 38px;
  padding: 0 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.detail-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.detail-steps span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  font-size: 12px;
  font-weight: 900;
}

.codex-install-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(11, 123, 111, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f4faf7);
}

.codex-install-card span {
  display: block;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 4px;
}

.codex-install-card strong {
  display: block;
  font-size: 15px;
}

.codex-install-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 7px 0 0;
}

.detail-box {
  background: var(--soft);
  border-radius: 8px;
  padding: 13px;
}

.detail-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.upload-form {
  display: grid;
  gap: 13px;
}

.upload-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.upload-form input,
.upload-form select,
.upload-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--surface);
}

.upload-form textarea {
  resize: vertical;
  min-height: 96px;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.toggle-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
}

@media (max-width: 1180px) {
  .site-nav {
    padding: 0 24px;
  }

  .landing-copy h1 {
    font-size: 52px;
  }

  .landing-hero {
    display: block;
    padding-top: 132px;
  }

  .intro-band {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assurance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .market-content {
    display: grid;
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }

  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-card {
    position: static;
  }

.order-panel {
    order: 2;
    position: static;
    width: auto;
    transform: none;
    justify-self: stretch;
    max-height: none;
    overflow: visible;
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .order-panel .cart-summary {
    grid-template-columns: minmax(0, 1fr) 150px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .brand,
  .trust-panel {
    grid-column: 1 / -1;
  }

  .main {
    grid-template-columns: 1fr;
  }

  .right-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .panel-section {
    margin-bottom: 0;
  }

  h1 {
    font-size: 38px;
  }
}

@media (max-width: 940px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 300px;
  }

  .metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body.has-mobile-cart {
    padding-bottom: 92px;
  }

  .site-nav {
    height: auto;
    min-height: 72px;
    padding: 12px 14px;
  }

  .site-nav nav {
    display: none;
  }

  .nav-cta {
    min-width: 94px;
  }

  .landing-hero {
    min-height: 760px;
    padding: 98px 18px 62px;
    background-position: 58% center;
  }

  .landing-copy h1 {
    font-size: 34px;
    line-height: 1.08;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .landing-copy p:not(.landing-kicker) {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .hero-badges {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-badges span {
    width: 100%;
    justify-content: center;
  }

  .landing-actions {
    flex-direction: column;
  }

  .intro-band {
    width: calc(100% - 28px);
    margin-top: -26px;
    padding: 22px;
  }

  .intro-band h2 {
    font-size: 22px;
    line-height: 1.2;
  }

  .pricing-section,
  .assurance-section,
  .faq-section,
  .rules-section,
  .support-section {
    width: calc(100% - 28px);
  }

  .pricing-head,
  .assurance-head,
  .rules-head {
    align-items: start;
    flex-direction: column;
  }

  .pricing-head h2,
  .assurance-head h2,
  .faq-head h2,
  .rules-head h2 {
    width: 100%;
    max-width: 100%;
    font-size: 23px;
    line-height: 1.22;
    word-break: break-all;
  }

  .pricing-grid,
  .assurance-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .assurance-grid article {
    min-height: 0;
  }

  .pricing-status {
    justify-content: flex-start;
  }

  .rules-contact {
    width: 100%;
  }

  .delivery-flow-card {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .delivery-flow-image {
    max-height: 178px;
  }

  .delivery-guide {
    grid-template-columns: 1fr;
  }

  .delivery-guide article {
    min-height: 0;
  }

  .market-section {
    width: calc(100% - 28px);
  }

  .market-shell {
    padding: 18px;
  }

  .market-header {
    align-items: stretch;
    flex-direction: column;
  }

  .market-header h2 {
    font-size: 26px;
  }

  .market-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog {
    grid-template-columns: 1fr;
  }

  .order-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .order-panel:not(.has-items) {
    display: none;
  }

  .order-panel.has-items {
    position: fixed;
    top: auto;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    width: auto;
    padding: 10px 12px;
    border-color: rgba(156, 225, 211, 0.28);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
  }

  .order-panel.has-items .member-card-head,
  .order-panel.has-items .cart-label,
  .order-panel.has-items .cart-list {
    display: none;
  }

  .order-panel.has-items .order-total-card {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .order-panel.has-items .order-total-card span {
    font-size: 11px;
  }

  .order-panel.has-items .order-total-card strong {
    margin: 3px 0 0;
    font-size: 24px;
  }

  .order-panel.has-items .order-total-card small {
    display: none;
  }

  .order-panel.has-items .cart-summary {
    display: block;
  }

  .order-panel.has-items .primary-button {
    min-width: 128px;
    min-height: 48px;
    padding: 0 14px;
  }

  .order-panel .member-card-head {
    display: flex;
  }

  .order-panel .order-total-card {
    display: block;
    min-height: 0;
    padding: 14px;
  }

  .order-panel .order-total-card strong {
    font-size: 34px;
  }

  .order-panel .cart-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .order-panel .cart-label {
    display: block;
  }

  .order-panel .cart-list {
    min-height: 68px;
    max-height: 190px;
    font-size: 14px;
    line-height: 1.5;
  }

  .order-panel .cart-item {
    padding: 8px 0;
  }

  .order-panel .cart-item small {
    display: block;
  }

  .order-panel .cart-remove {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .order-panel .primary-button {
    min-height: 50px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .market-status {
    justify-content: center;
  }

  .top-actions {
    justify-content: space-between;
  }

  .workbench {
    padding: 18px 14px;
  }

  .hero-copy {
    padding: 24px;
  }

  h1 {
    font-size: 31px;
  }

  .metrics-strip,
  .right-panel,
  .detail-grid,
  .skill-detail-hero,
  .core-point-grid,
  .detail-two-col,
  .detail-update-panel,
  .delivery-spec-row,
  .checkout-hero-card,
  .checkout-simple-card,
  .checkout-ledger-card,
  .checkout-benefit-row,
  .pay-picker,
  .payment-group-grid,
  .toggle-grid,
  .codex-install-card {
    grid-template-columns: 1fr;
  }

  .checkout-simple-card {
    padding: 12px;
  }

  .checkout-ledger-card {
    padding: 14px;
  }

  .checkout-ledger-top,
  .checkout-ledger-note {
    min-height: 0;
    padding: 14px;
  }

  .checkout-ledger-top strong {
    font-size: 42px;
  }

  .checkout-step-line {
    grid-template-columns: 1fr;
  }

  .checkout-simple-total,
  .checkout-email-card,
  .checkout-simple-note {
    min-height: 0;
  }

  .checkout-simple-total strong {
    font-size: 38px;
  }

  .pay-qr-panel {
    min-height: 210px;
  }

  .payment-modal {
    width: calc(100vw - 18px);
    max-height: 96vh;
    padding: 16px;
  }

  .payment-modal .eyebrow {
    margin-bottom: 3px;
  }

  .payment-modal .modal-head h2 {
    margin: 0 0 10px;
    font-size: 25px;
    line-height: 1.12;
  }

  .payment-modal .order-copy-card {
    gap: 10px;
    margin-bottom: 10px;
  }

  .payment-modal .checkout-ledger-card {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
  }

  .payment-modal .checkout-ledger-top {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    padding: 10px;
  }

  .payment-modal .checkout-ledger-top span {
    font-size: 12px;
  }

  .payment-modal .checkout-ledger-top strong {
    font-size: 34px;
  }

  .payment-modal .checkout-ledger-top small {
    max-width: 130px;
    overflow-wrap: anywhere;
    font-size: 12px;
  }

  .payment-modal .checkout-step-line {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: 1fr;
    align-self: center;
    width: 96px;
  }

  .payment-modal .checkout-step-line span {
    min-height: 26px;
    padding: 0 8px;
    font-size: 11px;
  }

  .payment-modal .checkout-ledger-note {
    display: none;
  }

  .payment-modal .premium-checkout-shell {
    padding: 10px;
  }

  .payment-modal .premium-payment-head {
    gap: 4px;
  }

  .payment-modal .premium-payment-head h3 {
    font-size: 24px;
  }

  .payment-modal .premium-payment-head p {
    display: none;
  }

  .payment-modal .pay-picker {
    gap: 12px;
  }

  .payment-modal .pay-choice-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .payment-modal .pay-choice-button {
    min-height: 58px;
    grid-template-columns: 34px 1fr;
    padding: 10px;
  }

  .payment-modal .pay-choice-button b {
    width: 34px;
    height: 34px;
  }

  .payment-modal .pay-choice-button span {
    font-size: 15px;
  }

  .payment-modal .pay-choice-button small {
    font-size: 12px;
  }

  .payment-modal .pay-qr-panel {
    min-height: 0;
    gap: 10px;
    padding: 12px;
  }

  .payment-modal .selected-pay-head strong {
    font-size: 22px;
  }

  .payment-modal .selected-pay-head p {
    display: none;
  }

  .payment-modal .selected-qr-shell {
    width: min(286px, 100%);
  }

  .payment-modal .pay-done-button {
    width: min(286px, 100%);
  }

  .payment-modal .delivery-email-row {
    grid-template-columns: 1fr;
  }

  .payment-group-head {
    align-items: start;
    flex-direction: column;
  }

  .checkout-brief,
  .simple-pay-grid,
  .more-payment-grid,
  .consult-card,
  .support-section,
  .support-card {
    grid-template-columns: 1fr;
  }

  .support-section {
    padding: 18px;
  }

  .support-copy {
    min-height: 0;
  }

  .support-copy h2 {
    font-size: 26px;
  }

  .support-card img {
    width: 160px;
    height: 160px;
  }

  .skill-detail-hero {
    padding: 16px;
  }

  .detail-icon-large {
    width: 64px;
    height: 64px;
    font-size: 20px;
  }

  .detail-hero-copy h2 {
    font-size: 24px;
  }

  .detail-update-panel {
    gap: 12px;
  }

  .detail-actions-row,
  .receipt-action-card {
    align-items: stretch;
    flex-direction: column;
  }

  .checkout-info-pane {
    padding: 20px;
  }

  .checkout-visual-pane {
    min-height: 150px;
  }

  .premium-pay-card {
    grid-template-columns: 1fr;
  }

  .qr-frame {
    width: 100%;
  }

  .consult-card img {
    justify-self: center;
  }

  .simple-section-head,
  .after-pay-strip {
    align-items: start;
    flex-direction: column;
  }

  .simple-pay-card {
    grid-template-columns: 1fr;
  }

  .simple-pay-card .payment-qr {
    justify-self: center;
  }

  .order-copy-head {
    align-items: stretch;
    flex-direction: column;
  }

  .card-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .skill-card {
    min-height: 0;
    gap: 10px;
    padding: 14px;
  }

  .card-icon {
    width: 42px;
    height: 42px;
  }

  .skill-card h3 {
    font-size: 17px;
  }

  .skill-card p {
    -webkit-line-clamp: 2;
    line-height: 1.52;
  }

  .tag-row {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .tag-row .tag {
    min-width: 0;
    white-space: nowrap;
  }

  .card-bottom {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 8px;
    align-items: center;
    padding-top: 10px;
  }

  .price {
    font-size: 20px;
  }

  .mini-actions {
    width: 100%;
  }

  .mini-button {
    flex: 1;
  }

  .site-footer {
    width: calc(100% - 28px);
    padding: 20px;
  }

  .footer-brand-block {
    align-items: flex-start;
    min-width: 0;
  }

  .footer-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-meta span {
    justify-content: center;
  }
}
