/* ==========================================================================
   Newstore — Editorial page compositions
   Home, catalog, product, cart, checkout, auth, account and content pages.
   ========================================================================== */

/* ---------- Home --------------------------------------------------------- */

.home-page { background: transparent; }
.hero-carousel {
  position: relative;
  padding: 66px 0 54px;
  background: transparent;
  border-bottom: 1px solid var(--line);
  overflow: visible;
}
.hero-carousel::before, .hero-carousel::after, .hero-orbit, .hero-stars { display: none !important; }
.hero-carousel-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: 54px; align-items: center; }
.hp-copy .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--muted); }
.hp-copy .eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--ink); }
.hp-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.2rem, 6.3vw, 6.4rem);
  line-height: .9;
  letter-spacing: -.075em;
  font-weight: 700;
}
.hp-copy h1 span { display: block; }
.hp-copy h1 em { display: block; font-style: normal; color: var(--blue); white-space: normal !important; }
.hp-copy h1 .hp-outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hp-sub { max-width: 500px; margin: 26px 0 28px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.hp-search {
  display: flex; align-items: center; gap: 6px;
  max-width: 520px; padding: 5px; margin-bottom: 24px;
  background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none;
}
.hp-search svg { margin-left: 9px; color: var(--muted); flex: none; }
.hp-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 13px; box-shadow: none; }
.hp-search input:focus { outline: none; box-shadow: none; }
.hp-search .btn { flex: none; min-height: 38px; }
.hp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hp-proof { display: flex; flex-wrap: wrap; gap: 0; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }
.hp-proof > div { padding: 0 24px; border-left: 1px solid var(--line); }
.hp-proof > div:first-child { padding-left: 0; border-left: 0; }
.hp-proof strong { display: block; font: 700 19px/1.1 var(--font-heading); letter-spacing: -.04em; }
.hp-proof span { display: block; margin-top: 4px; font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

.hero-reel { position: relative; width: 100%; max-width: 510px; justify-self: end; background: transparent; border: 0; padding: 0; box-shadow: none; }
.hero-reel::before, .hero-reel::after { display: none; }
.hero-reel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 12px; border-bottom: 1px solid var(--ink); }
.hero-reel-head span { font: 650 9.5px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-frame { position: relative; min-height: 0; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper-soft); box-shadow: 0 22px 48px -38px rgba(12, 17, 28, .45); }
.hero-slide-media { display: block; aspect-ratio: 16 / 10; max-height: 340px; min-height: 0; border-radius: 0; overflow: hidden; background: var(--paper-deep); }
.hero-slide-media img { display: block; width: 100%; height: 100%; min-height: 0 !important; max-height: 340px; object-fit: cover; border-radius: 0; transform: none; }
.hero-slide.is-active .hero-slide-media img { transform: none; }
.hero-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 42px 18px 16px;
  background: linear-gradient(transparent, rgba(8, 12, 20, .9));
  color: #fff; border-radius: 0;
}
.hero-slide-caption h3, .hero-slide-title { margin: 0 0 3px; color: #fff; font-size: 17px; line-height: 1.25; letter-spacing: -.025em; }
.hero-slide-caption p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 11.5px; }
.hero-slide-caption .price, .hero-slide-buy .price { color: #fff; font-size: 16px; }
.hero-slide-copy .hero-slide-cat { color: rgba(255, 255, 255, .66); font-size: 8.5px; letter-spacing: .1em; }
.hero-slide-cta { color: #fff; border-color: rgba(255, 255, 255, .38); }
.hero-slide:hover .hero-slide-cta { color: #fff; border-color: #fff; }
.hero-reel-foot { margin-top: 12px; }
.hero-dots { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.hero-dot { width: 22px; height: 2px; border: 0; border-radius: 0; background: var(--line); padding: 0; }
.hero-dot.is-active { background: var(--ink); width: 42px; }
.hero-nav { display: flex; gap: 6px; }

.trust-strip { padding: 0 0; margin-top: 0; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); background: transparent; }
.hp-trust-wrap { padding: 0; }
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-strip span, .trust-strip .trust-item {
  display: flex; align-items: center; gap: 9px; padding: 16px 20px;
  border-left: 1px solid var(--line); background: transparent; border-radius: 0;
  font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft);
}
.trust-strip span:first-child, .trust-strip .trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-strip svg { color: var(--blue); }

.hp-section { padding: 76px 0; border-bottom: 1px solid var(--line); background: transparent; }
.hp-section.hp-tint, .hp-tint { background: transparent; }
.hp-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin: 0 0 34px; padding: 0 0 20px; border-bottom: 1px solid var(--ink); }
.hp-sec-head > div { max-width: 720px; }
.hp-sec-label { display: block; margin-bottom: 11px; color: var(--blue); }
.hp-sec-head h2 { margin: 0; font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: .98; letter-spacing: -.06em; }
.hp-sec-head p { max-width: 560px; margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.hp-sec-head .link-arrow { flex: none; margin-bottom: 4px; }

.hp-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hp-cat {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 190px;
  padding: 24px 22px; background: transparent !important; border: 0 !important; border-right: 1px solid var(--line) !important;
  border-radius: 0 !important; box-shadow: none !important; text-decoration: none; color: var(--ink);
  transition: background .18s ease;
}
.hp-cat:hover { background: var(--paper-deep) !important; transform: none; }
.hp-cat.is-main { grid-column: span 2; background: var(--ink) !important; color: var(--paper); }
.hp-cat.is-main:hover { background: var(--blue-deep) !important; }
.hp-cat.is-main p, .hp-cat.is-main span { color: color-mix(in srgb, var(--paper) 62%, transparent); }
.hp-cat-icon, .hp-cat .hp-cat-icon {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: transparent; border: 1px solid var(--line); border-radius: 50%; color: var(--blue);
}
.hp-cat.is-main .hp-cat-icon { border-color: color-mix(in srgb, var(--paper) 25%, transparent); color: var(--accent); }
.hp-cat h3, .hp-cat-name { display: block; margin: 26px 0 5px; font: 700 21px/1.1 var(--font-heading); letter-spacing: -.04em; color: inherit; }
.hp-cat.is-main h3, .hp-cat.is-main .hp-cat-name { font-size: 31px; }
.hp-cat p, .hp-cat-count { display: block; margin: 0; font-size: 11.5px; color: var(--muted); }
.hp-cat > .hp-cat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hp-cat-num { font: 650 9px var(--font-body); letter-spacing: .12em; color: var(--muted); }
.hp-cat.is-main .hp-cat-num { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.hp-cat-go { position: absolute; right: 20px; bottom: 20px; color: var(--muted); }
.hp-cat { position: relative; }
.hp-cat.is-main .hp-cat-go { color: var(--accent); }
.hp-cat-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: 10px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }

.hp-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card {
  display: flex; flex-direction: column;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: none; overflow: hidden;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow-lift); }
.product-media { position: relative; display: block; aspect-ratio: 4 / 2.9; overflow: hidden; background: var(--paper-deep); border-radius: 0; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-media img { transform: scale(1.025); }
.product-cat { position: absolute; left: 10px; top: 10px; padding: 4px 7px; background: var(--paper); color: var(--ink); font-size: 8.5px; letter-spacing: .1em; }
.product-sale { position: absolute; right: 10px; top: 10px; padding: 4px 7px; background: var(--accent); color: var(--accent-ink); font: 700 9px var(--font-body); letter-spacing: .06em; }
.product-gallery-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.product-gallery-strip a { display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-deep); }
.product-gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.product-gallery-strip a:hover img { transform: scale(1.04); }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 18px 18px 16px; }
.product-body h3 { margin: 0; font-size: 17px; letter-spacing: -.035em; line-height: 1.25; }
.product-body h3 a { text-decoration: none; }
.product-body h3 a:hover { color: var(--blue); }
.product-info { margin: 8px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.product-meta { margin: 0 0 12px; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.product-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.product-foot .price { font-size: 19px; }

.hp-promo { padding: 0; border-bottom: 1px solid var(--line); background: var(--ink); color: var(--paper); }
.hp-promo-card { display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: center; padding: 64px 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.hp-promo-copy h2 { margin: 0 0 16px; color: var(--paper); font-size: clamp(2.2rem, 4vw, 4.2rem); line-height: .98; letter-spacing: -.06em; }
.hp-promo-copy p { max-width: 560px; margin: 0 0 26px; color: color-mix(in srgb, var(--paper) 62%, transparent); font-size: 14px; }
.hp-promo-copy .eyebrow { color: var(--accent); }
.hp-promo-art { position: relative; min-height: 220px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--paper) 20%, transparent); }
.hp-promo-art::before { content: "N"; font: 700 200px/1 var(--font-heading); letter-spacing: -.1em; color: color-mix(in srgb, var(--paper) 8%, transparent); }
.hp-promo-art > * { position: absolute; }

.hp-process { padding: 76px 0; border-bottom: 1px solid var(--line); }
.hp-process-grid { display: grid; grid-template-columns: .8fr 2.2fr; gap: 0; border-top: 1px solid var(--ink); }
.hp-process-head { padding: 30px 32px 30px 0; border-right: 1px solid var(--line); }
.hp-process-head h2 { margin: 10px 0 0; font-size: 30px; letter-spacing: -.05em; }
.hp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.hp-step { min-height: 190px; padding: 28px 26px; background: transparent; border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.hp-step:last-child { border-right: 0; }
.hp-step-num { display: block; margin-bottom: 28px; font: 650 10px var(--font-body); letter-spacing: .12em; color: var(--blue); }
.hp-step h3 { margin: 0 0 7px; font-size: 17px; }
.hp-step p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.hp-faq, .faq-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; padding: 76px 0; border-bottom: 1px solid var(--line); }
.hp-faq-head h2, .hp-faq-intro h2 { margin: 10px 0 14px; font-size: 38px; }
.hp-faq-head p, .hp-faq-intro p { max-width: 340px; font-size: 13px; color: var(--muted); }
.hp-faq-intro .hp-sec-label { margin-bottom: 14px; }
.hp-faq-intro .hp-text-link { display: inline-flex; margin-top: 8px; font-size: 11.5px; font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--line); gap: 6px; padding-bottom: 3px; }
.hp-faq-list { border-top: 1px solid var(--ink); }
.faq-item { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.faq-item summary, .faq-question { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; cursor: pointer; font: 650 13.5px var(--font-body); color: var(--ink); }
.faq-answer, .faq-item p { padding: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }

.hp-cta { padding: 0; border-bottom: 1px solid var(--line); background: var(--blue-solid); color: #fff; }
.hp-cta .shell { padding: 48px 0; }
.hp-cta-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hp-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
.hp-cta h2 { margin: 0 0 6px; font-size: clamp(2rem, 4vw, 3.6rem); color: #fff; letter-spacing: -.06em; }
.hp-cta p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 13px; }
.hp-cta-kicker { display: block; margin-bottom: 9px; color: var(--accent); font: 650 9.5px var(--font-body); letter-spacing: .13em; text-transform: uppercase; }
.hp-cta .btn, .hp-cta .btn-white { background: #fff; border-color: #fff; color: var(--blue-deep); }
.hp-cta .btn:hover, .hp-cta .btn-white:hover { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.hp-cta .btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.hp-cta .btn-outline-light:hover { background: #fff; border-color: #fff; color: var(--blue-solid); }

/* ---------- Catalog ------------------------------------------------------ */

.store-page { padding: 0 0 76px; }
.store-mast { padding: 54px 0 36px; border-bottom: 1px solid var(--ink); background: transparent; }
.store-mast-inner, .store-mast-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; align-items: end; gap: 48px; }
.store-mast h1 { margin: 10px 0 0; font-size: clamp(2.8rem, 5.5vw, 5.4rem); line-height: .93; letter-spacing: -.07em; }
.store-mast p { max-width: 480px; margin: 10px 0 0; color: var(--muted); font-size: 13.5px; }
.store-mast-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font: 650 9.5px var(--font-body); letter-spacing: .11em; text-transform: uppercase; }
.store-mast-chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.store-mast-chips span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.store-mast-board { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.store-mast-stat, .store-mast-member { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.store-mast-member { grid-column: 1 / -1; }
.store-mast-member strong { overflow-wrap: anywhere; }
.store-browser { padding: 0 0 76px; }
.store-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); color: var(--ink); font: 650 10px var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.store-rail-head b { color: var(--blue); }
.store-search { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 180px; padding: 0 0 6px; border-bottom: 1px solid var(--line); }
.store-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font-size: 12px; }
.store-search input:focus { outline: none; box-shadow: none; }
.store-search button { border: 0; background: transparent; color: var(--blue); font: 650 10px var(--font-body); letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.store-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.store-list-head h2 { margin: 0; font-size: 18px; letter-spacing: -.035em; }
.store-list-head span { color: var(--muted); font-size: 10.5px; letter-spacing: .04em; }
.store-view { display: flex; gap: 3px; }
.store-view .view-btn { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 1px; background: transparent; color: var(--muted); cursor: pointer; }
.store-view .view-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.store-rail-note { margin-top: 24px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.store-rail-note-icon { color: var(--blue); }
.store-rail-note h2 { margin: 8px 0 4px; font-size: 14px; letter-spacing: -.02em; }
.store-rail-note p { margin: 0 0 8px; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.store-rail-links { display: grid; gap: 0; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.store-rail-links a { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; color: var(--muted); font-size: 10.5px; text-decoration: none; }
.store-rail-links a:hover { color: var(--ink); }
.store-mast-board > div { padding: 13px 24px; border-left: 1px solid var(--line); }
.store-mast-board > div:first-child { padding-left: 0; border-left: 0; }
.store-mast-board strong { display: block; font: 700 16px var(--font-heading); letter-spacing: -.03em; }
.store-mast-board span { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.store-browser-layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 44px; padding-top: 38px; }
.store-rail { position: sticky; top: 96px; align-self: start; padding-right: 26px; border-right: 1px solid var(--line); background: transparent; border-radius: 0; }
.store-rail-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; padding-bottom: 11px; border-bottom: 1px solid var(--ink); color: var(--ink); }
.store-cats { display: grid; gap: 0; }
.store-cat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: transparent; color: var(--ink-soft); font: 500 12px var(--font-body); text-decoration: none; }
.store-cat:hover { color: var(--ink); }
.store-cat.is-active { color: var(--blue); font-weight: 650; }
.store-cat b { font: 600 10px var(--font-body); color: var(--muted); }
.store-price-filter, .store-filter-group { padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.store-main { min-width: 0; }
.store-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 0 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; box-shadow: none; }
.store-result-count { font-size: 11.5px; color: var(--muted); }
.store-result-count strong { color: var(--ink); font-weight: 650; }
.store-sort { display: flex; align-items: center; gap: 8px; }
.store-sort select { min-height: 36px; width: auto; padding: 6px 30px 6px 10px; font-size: 11.5px; border-color: var(--line); background-color: transparent; }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.store-empty { padding: 64px 24px; border: 1px solid var(--line); text-align: center; }
.store-pagination { display: flex; justify-content: center; gap: 5px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.page-link, .page-num, .page-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 1px; font-size: 11.5px; text-decoration: none; }
.page-link:hover, .page-num:hover, .page-btn:hover { border-color: var(--line); }
.page-link.is-active, .page-num.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.page-numbers { display: flex; align-items: center; gap: 2px; }
.page-gap { padding: 0 4px; color: var(--muted); }

.filter-toggle, .store-filter-toggle { display: none; }

/* ---------- Product ------------------------------------------------------ */

.product-page { padding-bottom: 76px; }
.product-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) 390px; gap: 56px; align-items: start; padding: 34px 0 54px; border-bottom: 1px solid var(--line); }
.product-shot { position: relative; border: 1px solid var(--line); border-radius: 0; background: var(--paper-deep); overflow: hidden; }
.product-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10.5; object-fit: cover; }
.buy-box { position: sticky; top: 98px; padding: 0 0 0 40px; border-left: 1px solid var(--line); background: transparent; border-top: 0; border-right: 0; border-bottom: 0; border-radius: 0; box-shadow: none; }
.buy-box .eyebrow { color: var(--muted); }
.buy-box h1 { margin: 13px 0 14px; font-size: clamp(2.2rem, 3.8vw, 3.8rem); line-height: .96; letter-spacing: -.065em; }
.buy-summary { margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.buy-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.buy-price .price-xl { font-size: 40px; letter-spacing: -.06em; }
.buy-price .price-old { font-size: 16px; }
.buy-meta { display: grid; gap: 0; margin: 0 0 20px; }
.buy-meta > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 11.5px; }
.buy-meta dt, .buy-meta span:first-child { color: var(--muted); }
.buy-meta dd, .buy-meta span:last-child { margin: 0; font-weight: 600; text-align: right; }
.buy-box-head .kicker, .kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 650 9.5px var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.buy-box .btn-block { margin-top: 8px; }
.buy-box .btn + .btn { margin-top: 8px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.qty-row > label { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); }
.qty-control button { width: 32px; height: 32px; border: 0; background: transparent; color: var(--ink); font-size: 16px; cursor: pointer; }
.qty-control button:hover { background: var(--paper-deep); }
.qty-control input { width: 44px; height: 32px; border: 0; border-inline: 1px solid var(--line); background: transparent; color: var(--ink); text-align: center; font-size: 12px; appearance: textfield; }
.qty-control input::-webkit-inner-spin-button { appearance: none; }
.product-quick { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 0 0; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.product-quick span { display: inline-flex; align-items: center; gap: 6px; }
.buy-points { display: grid; gap: 8px; margin: 16px 0 20px; padding: 16px 0 0; border-top: 1px solid var(--line-soft); font-size: 11.5px; color: var(--ink-soft); }
.buy-points li, .buy-points span { display: flex; align-items: flex-start; gap: 8px; }
.buy-points svg { color: var(--ok); flex: none; margin-top: 2px; }
.buy-form { display: grid; gap: 10px; }
.buy-note { margin: 4px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.5; }

.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 52px; }
.detail-block { padding: 0 0 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.detail-block:last-child { margin-bottom: 0; }
.detail-block h2 { margin: 8px 0 18px; font-size: 27px; letter-spacing: -.045em; }
.article-body, .detail-copy, .legacy-content { color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.legacy-content p { margin: 0 0 1em; color: var(--ink-soft); font-size: inherit; }
.legacy-content h2, .legacy-content h3 { margin: 1.5em 0 .5em; color: var(--ink); }
.legacy-content img { max-width: 100%; height: auto; }
.legacy-content a { color: var(--blue); }
.legacy-content ul, .legacy-content ol { padding-left: 20px; }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.detail-head h2 { margin: 0; padding-bottom: 10px; }
.count-pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); font: 600 9.5px var(--font-body); vertical-align: middle; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; align-items: center; gap: 10px; }
.review-head img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.review-head strong { display: block; font-size: 11.5px; }
.review-head time { display: block; color: var(--muted); font-size: 9.5px; }
.review-head .verified-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.review p { margin: 10px 0 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.7; }
.review-form { display: grid; gap: 8px; margin: 0 0 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-form label { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.review-form textarea { padding: 10px; border: 1px solid var(--line); border-radius: 1px; background: var(--paper-soft); color: var(--ink); font: 12px/1.6 var(--font-body); resize: vertical; }
.check-list { display: grid; gap: 7px; margin: 14px 0 18px; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; }
.check-list svg { color: var(--ok); }
.spec-list { display: grid; gap: 0; margin: 10px 0 0; }
.spec-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 11px; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 600; text-align: right; }
.detail-help { padding-left: 14px !important; background: var(--paper-deep) !important; }
.detail-help .btn { margin-top: 10px; }
.related-block { margin-top: 46px; padding-top: 34px; border-top: 1px solid var(--ink); }
.related-block .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.related-block .section-head h2 { margin: 0; font-size: 28px; letter-spacing: -.05em; }
.related-block .product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.article-body h2, .article-body h3 { margin: 1.6em 0 .55em; color: var(--ink); }
.article-body img { max-width: 100%; height: auto; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 20px; }
.detail-side { align-self: start; position: sticky; top: 100px; }
.detail-card { padding: 20px 0; }
.detail-card + .detail-card { border-top: 1px solid var(--line); }
.detail-card h3 { margin: 0 0 8px; font-size: 15px; }
.detail-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.detail-help { margin-top: 16px; padding: 16px; background: var(--paper-deep); border-left: 2px solid var(--blue); }
.detail-help strong { display: block; font-size: 12px; }
.detail-help a { font-size: 11.5px; color: var(--blue); }

/* ---------- Cart + checkout --------------------------------------------- */

.cart-page, .checkout-page { padding: 46px 0 76px; }
.page-head { padding: 0; margin: 0; border: 0; background: transparent; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 36px 0 22px; margin-bottom: 30px; border-bottom: 1px solid var(--ink); }
.page-head h1 { margin: 0 0 5px; font-size: clamp(2.4rem, 4.6vw, 4.4rem); line-height: .94; letter-spacing: -.065em; }
.page-head p { margin: 0; color: var(--muted); font-size: 12.5px; }
.result-pill { color: var(--muted); font-size: 10.5px; letter-spacing: .04em; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.cart-list { border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto auto; grid-template-areas: "thumb info price qty remove"; gap: 18px; align-items: center; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.cart-thumb { grid-area: thumb; width: 96px; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-deep); border: 1px solid var(--line); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { grid-area: info; min-width: 0; }
.cart-info h2, .cart-info h3 { margin: 0 0 4px; font: 700 15px/1.25 var(--font-heading); letter-spacing: -.03em; }
.cart-info h2 a, .cart-info h3 a { text-decoration: none; }
.cart-info p { margin: 0; color: var(--muted); font-size: 10.5px; }
.cart-price, .cart-item-price { grid-area: price; text-align: right; font: 700 18px var(--font-heading); letter-spacing: -.04em; white-space: nowrap; }
.cart-qty-form { grid-area: qty; }
.cart-qty-stepper { display: flex; align-items: center; border: 1px solid var(--line); }
.cart-qty-stepper button { width: 27px; height: 30px; border: 0; background: transparent; color: var(--ink); font-size: 14px; cursor: pointer; }
.cart-qty-stepper button:hover { background: var(--paper-deep); }
.cart-qty-stepper button:disabled { opacity: .3; cursor: default; }
.cart-qty-stepper input { width: 30px; height: 30px; border: 0; border-inline: 1px solid var(--line); background: transparent; color: var(--ink); text-align: center; font-size: 11px; appearance: textfield; }
.cart-qty-stepper input::-webkit-inner-spin-button { appearance: none; }
.cart-remove { grid-area: remove; display: inline-flex; align-items: center; gap: 4px; margin: 0; border: 0; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.cart-remove:hover { color: var(--danger); }
.cart-note { display: flex; align-items: flex-start; gap: 7px; margin: 18px 0; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.summary-total { margin-top: 8px; padding-top: 15px; border-top: 1px solid var(--ink); font: 700 18px var(--font-heading); letter-spacing: -.04em; color: var(--ink); }
.redeem-form { display: flex; gap: 6px; margin: 14px 0; }
.redeem-form input { flex: 1; min-width: 0; min-height: 36px; padding: 7px 9px; border: 1px solid var(--line); background: var(--paper-soft); color: var(--ink); font-size: 11px; }
.redeem-applied { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ok); font-size: 11px; }
.redeem-applied button { border: 0; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.summary-fine { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 11px 0 0; color: var(--muted); font-size: 9.5px; }
.summary-card { position: sticky; top: 100px; padding: 22px 0 0; border: 0; border-top: 2px solid var(--ink); border-radius: 0; background: transparent; box-shadow: none; }
.summary-card h2, .summary-card h3 { margin: 0 0 18px; font-size: 18px; letter-spacing: -.035em; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 12px; color: var(--ink-soft); }
.summary-row.total { margin-top: 8px; padding-top: 15px; border-top: 1px solid var(--ink); font: 700 19px var(--font-heading); color: var(--ink); letter-spacing: -.04em; }
.summary-card .btn { margin-top: 16px; }
.summary-note { margin: 12px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.55; text-align: center; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 56px; align-items: start; }
.checkout-main { min-width: 0; }
.checkout-main .panel { padding: 26px 0; }
.checkout-main .panel:first-child { border-top: 0; padding-top: 0; }
.panel-num { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--ink); border-radius: 50%; font: 650 9px var(--font-body); flex: none; }
.checkout-main .panel-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; }
.checkout-main .panel-head h2 { font-family: var(--font-heading); font-size: 17px; }
.checkout-side { align-self: start; position: sticky; top: 100px; }
.checkout-side .panel { border-top: 1px solid var(--line); padding: 20px 0; }
.checkout-side .panel h2, .checkout-side .panel h3 { margin: 0 0 10px; font-size: 15px; letter-spacing: -.025em; }
.checkout-side .panel p { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.checkout-side .panel > svg { color: var(--blue); }
.checkout-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.checkout-item small { color: var(--muted); font-size: 10px; }
.checkout-item strong { flex: none; font: 700 13px var(--font-heading); letter-spacing: -.02em; }
.gateway-radio { width: 14px; height: 14px; border: 1px solid var(--line); border-radius: 50%; flex: none; }
.gateway-option input:checked + .gateway-radio { border: 4px solid var(--ink); }
.gateway-body { flex: 1; min-width: 0; }
.gateway-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.gateway-top strong { font: 650 12.5px var(--font-body); letter-spacing: 0; }
.gateway-top em { padding: 2px 6px; border: 1px solid var(--line); font: 650 8px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.gateway-desc { display: block; margin-top: 2px; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.gateway-icon { color: var(--muted); flex: none; }
.gateway-option input { position: absolute; opacity: 0; pointer-events: none; }
.gateway-bank-preview { margin-top: 14px; padding: 16px; background: var(--paper-deep); border-left: 2px solid var(--blue); }
.gateway-bank-head { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.checkout-step { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.checkout-step span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--ink); border-radius: 50%; font-size: 10px; font-weight: 700; }
.checkout-step h2 { margin: 0; font-size: 17px; letter-spacing: -.03em; }
.gateway-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.gateway-option { display: flex; align-items: center; gap: 12px; padding: 15px 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; cursor: pointer; }
.gateway-option:has(input:checked) { background: var(--paper-deep); box-shadow: inset 2px 0 0 var(--blue); }
.gateway-option input { accent-color: var(--blue); }
.gateway-option strong { display: block; font-size: 12.5px; }
.gateway-option small { display: block; color: var(--muted); font-size: 10.5px; }
.gateway-logo { width: 34px; height: 24px; object-fit: contain; }

/* ---------- Auth --------------------------------------------------------- */

.auth-section { padding: 58px 0 76px; background: transparent; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 80px; align-items: center; }
.auth-card { width: 100%; padding: 0; }
.auth-card h1 { margin: 10px 0 10px; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: .96; letter-spacing: -.065em; }
.auth-card > p, .auth-lead { color: var(--muted); font-size: 13px; }
.auth-form { display: grid; gap: 16px; margin-top: 26px; }
.auth-head .kicker { margin-bottom: 4px; }
.kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); display: inline-block; }
.input-with-icon { position: relative; }
.input-with-icon .input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.input-with-icon input { padding-left: 38px; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-link { font-size: 10.5px; color: var(--blue); text-decoration: none; }
.password-wrap { position: relative; }
.password-wrap input { width: 100%; min-height: 44px; padding: 10px 42px 10px 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-soft); color: var(--ink); font-size: 13.5px; }
.password-toggle { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.check-field { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11.5px; }
.check-field input { width: 15px; height: 15px; accent-color: var(--blue); }
.auth-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; }
.auth-switch a { color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.auth-help { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; color: var(--muted); }
.auth-help strong { display: block; color: var(--ink); font-size: 11px; }
.auth-help p { margin: 2px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.auth-help a { color: var(--blue); }
.auth-art-inner { position: relative; display: flex; flex-direction: column; height: 100%; }
.auth-art-visual { display: none; }
.auth-sticker { position: relative; display: inline-flex; width: fit-content; align-items: center; gap: 6px; padding-bottom: 20px; color: var(--accent); font: 650 9px var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.auth-art h2 { margin-top: auto; }
.auth-art-cards { position: relative; display: grid; gap: 0; margin-top: 28px; border-top: 1px solid rgba(255,255,255,.18); }
.auth-art-cards .mini-card { display: flex; align-items: center; gap: 9px; padding: 11px 0; background: transparent !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.1) !important; border-radius: 0 !important; box-shadow: none !important; color: var(--paper); }
.auth-art-cards .mini-icon { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; color: var(--accent); }
.auth-art-cards strong { display: block; font-size: 10.5px; color: var(--paper); }
.auth-art-cards small { display: block; color: rgba(255,255,255,.52); font-size: 9px; }
.auth-shape { display: none; }
.auth-foot { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.auth-foot a { color: var(--ink); font-weight: 650; }
.auth-art {
  position: relative; min-height: 600px; padding: 44px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 0; overflow: hidden;
}
.auth-art::before { content: ""; position: absolute; inset: 20px; border: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); pointer-events: none; }
.auth-art h2 { position: relative; max-width: 400px; margin: 0; color: var(--paper); font-size: clamp(2rem, 3.4vw, 3.3rem); line-height: .98; letter-spacing: -.06em; }
.auth-art p { position: relative; max-width: 360px; margin: 14px 0 0; color: color-mix(in srgb, var(--paper) 62%, transparent); font-size: 12.5px; }
.auth-art-stats { position: relative; display: flex; gap: 28px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--paper) 20%, transparent); }
.auth-art-stats strong { display: block; font: 700 26px var(--font-heading); letter-spacing: -.05em; color: var(--accent); }
.auth-art-stats span { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 52%, transparent); }

/* ---------- Account ------------------------------------------------------ */

.account-page { padding: 44px 0 76px; }
.account-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; align-items: start; }
.account-nav { display: flex; align-items: center; gap: 22px; width: min(1280px, calc(100% - 64px)); margin: 0 auto; padding: 0; border-top: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.account-nav a, .account-nav button { display: inline-flex; align-items: center; gap: 7px; padding: 13px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: 600 10.5px var(--font-body); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; }
.account-nav a:hover, .account-nav button:hover { color: var(--ink); }
.account-nav a.is-active, .account-nav .account-nav-link.is-active { color: var(--ink); border-bottom-color: var(--blue); font-weight: 700; }
.account-nav form { margin: 0; }
.account-section { padding: 36px 0 76px; }
.account-greeting { display: flex; align-items: center; gap: 16px; padding-bottom: 24px; margin-bottom: 0; border-bottom: 1px solid var(--ink); }
.account-greeting .account-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.account-greeting h1 { margin: 1px 0 2px; font-size: clamp(2rem, 3.6vw, 3.2rem); letter-spacing: -.06em; }
.account-greeting p { margin: 0; color: var(--muted); font-size: 10.5px; }
.account-head-actions { margin-left: auto; display: flex; gap: 8px; }
.panel-head-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.panel-head-between h2 { margin: 0; font-size: 17px; letter-spacing: -.03em; }
.order-table { border-top: 1px solid var(--line); }
.order-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.order-row-main strong { display: block; font-size: 12.5px; }
.order-row-main small { display: block; color: var(--muted); font-size: 9.5px; }
.order-row-amount { font: 700 12.5px var(--font-heading); letter-spacing: -.02em; white-space: nowrap; }
.account-quick-licenses { border-top: 1px solid var(--line); }
.account-quick-license { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.account-quick-icon { color: var(--muted); }
.account-quick-license code { display: block; margin-top: 2px; color: var(--muted); font: 500 9.5px ui-monospace, monospace; overflow-wrap: anywhere; }
.copy-chip { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 1px; background: transparent; color: var(--muted); cursor: pointer; }
.copy-chip:hover { border-color: var(--ink); color: var(--ink); }
.small-empty { padding: 24px 0; color: var(--muted); font-size: 11.5px; border-bottom: 1px solid var(--line); }
.small-empty a { color: var(--blue); }
.account-main { min-width: 0; }
.account-head { padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--ink); }
.account-head h1 { margin: 6px 0 0; font-size: clamp(2rem, 3.8vw, 3.4rem); letter-spacing: -.06em; }
.account-head p { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.account-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0 0 34px; border-bottom: 1px solid var(--line); }
.stat-card { padding: 18px 20px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.stat-card:first-child { border-left: 0; padding-left: 0; }
.stat-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 7px; border-radius: 50%; background: transparent; color: var(--blue); }
.stat-icon.stat-blue, .stat-icon.stat-green, .stat-icon.stat-yellow { background: transparent; color: var(--blue); }
.stat-card strong { display: block; font: 700 30px/1 var(--font-heading); letter-spacing: -.055em; }
.stat-card span { display: block; margin-top: 6px; font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.account-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; }
.order-list, .license-list, .download-list { border-top: 1px solid var(--line); }
.order-item-card, .license-card, .download-card { padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.order-item-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.order-item-main h3 { margin: 0; font-size: 14px; }
.order-item-main small { color: var(--muted); font-size: 10.5px; }
.order-item-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.license-card { position: relative; padding: 18px 0; }
.license-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.license-title h2, .license-title h3 { margin: 0; font-size: 14px; }
.license-key { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 10px; border: 1px dashed var(--line); background: var(--paper-deep); font: 500 11px/1.4 ui-monospace, monospace; color: var(--ink-soft); word-break: break-all; }
.license-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 10.5px; color: var(--muted); }
.account-quick-license { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.account-quick-license strong { display: block; font-size: 12px; }
.account-quick-license small { color: var(--muted); font-size: 10px; }
.profile-grid, .account-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile-grid .field-full { grid-column: 1 / -1; }

/* ---------- Content, blog, faq, contact, status ------------------------- */

.content-page, .blog-page, .faq-page, .contact-page, .status-page, .bank-page { padding: 44px 0 76px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border: 0; }
.blog-card { display: flex; flex-direction: column; background: var(--paper); border: 0; border-radius: 12px; box-shadow: none; overflow: hidden; }
.blog-card:hover { transform: none; box-shadow: none; background: var(--paper-deep); }
.blog-media { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-deep); }
.blog-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-body, .blog-card-link { display: block; padding: 20px; text-decoration: none; color: var(--ink); }
.blog-num { display: block; margin-bottom: 20px; color: var(--blue); font: 650 9.5px var(--font-body); letter-spacing: .1em; }
.blog-card .blog-tag { display: inline-block; margin-bottom: 9px; font: 650 9px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.blog-card .blog-arrow { display: inline-flex; margin-top: 12px; color: var(--blue); }
.blog-body h3 { margin: 8px 0; font-size: 19px; line-height: 1.22; letter-spacing: -.035em; }
.blog-body p { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 60px; }
.post-head { padding-bottom: 24px; margin-bottom: 30px; border-bottom: 1px solid var(--ink); }
.post-head h1 { margin: 8px 0 12px; font-size: clamp(2.6rem, 4.6vw, 4.6rem); line-height: .96; letter-spacing: -.065em; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; }
.post-cover { margin: 0 0 30px; border: 1px solid var(--line); }
.post-cover img { display: block; width: 100%; height: auto; }
.page-article { max-width: 820px; margin-inline: auto; padding: 0; }
.page-article h1 { margin: 8px 0 22px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 56px; }
.contact-form { padding: 0; border: 0; background: transparent; }
.faq-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; }
.faq-cats { border-top: 1px solid var(--ink); }
.faq-cats a { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); text-decoration: none; }
.faq-cats a:hover, .faq-cats a.is-active { color: var(--ink); }
.faq-list { border-top: 1px solid var(--ink); }
.bank-layout, .status-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.bank-details { border-top: 2px solid var(--ink); }
.bank-detail-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.bank-detail-row dt { color: var(--muted); }
.bank-detail-row dd { margin: 0; font-weight: 600; text-align: right; }
.notice { padding: 15px 18px; border-left: 2px solid var(--blue); background: var(--blue-wash); color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.payxem-summary { margin: 20px 0; border-top: 1px solid var(--line); }
.payxem-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 12px; }
.status-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.status-line > span:first-child { color: var(--muted); }
.status-line strong { font: 650 12px var(--font-heading); letter-spacing: -.015em; }
.notice.is-warning { border-left-color: #b17b00; background: #fbf3dc; color: #5e4600; }
[data-theme="dark"] .notice.is-warning { background: #2a2312; color: #e8cf94; }
.error-page { min-height: 54vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.error-page h1 { margin: 0; font-size: clamp(5rem, 13vw, 11rem); line-height: .8; color: var(--blue); letter-spacing: -.08em; }

/* ---------- Tables ------------------------------------------------------- */

.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th { padding: 10px 12px; border-bottom: 1px solid var(--ink); color: var(--muted); font: 650 9.5px var(--font-body); letter-spacing: .1em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.data-table tbody tr:hover { background: var(--paper-deep); }
.data-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: 10.5px; }

/* ---------- Responsive --------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-carousel-grid { grid-template-columns: minmax(0, 1fr) 370px; gap: 36px; }
  .hp-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-hero { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; }
  .auth-grid { gap: 44px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .shell { width: min(100% - 40px, 1280px); }
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
  .head-search { width: 150px; }
  .head-row { gap: 12px; min-height: 64px; }
  .brand-tag, .brand-sub { display: none; }
  .brand-mark, [data-theme="dark"] .brand-mark { width: 34px; height: 34px; }
  .brand-mark svg, [data-theme="dark"] .brand-mark svg { width: 32px; height: 32px; }
  .hero-carousel-grid, .hp-faq, .faq-wrap, .hp-promo-card, .product-hero, .product-detail,
  .cart-layout, .checkout-layout, .auth-grid, .account-layout, .contact-grid,
  .faq-layout, .bank-layout, .status-layout, .post-layout { grid-template-columns: 1fr; }
  .hero-reel { display: block; max-width: none; justify-self: stretch; margin-top: 6px; }
  .hero-slide-media, .hero-slide-media img { max-height: 320px; }
  .hp-copy h1 { font-size: clamp(3rem, 12vw, 5.2rem); }
  .hp-process-grid { grid-template-columns: 1fr; }
  .hp-process-head { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .hp-steps { grid-template-columns: 1fr; }
  .hp-step { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .buy-box { position: static; padding: 26px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .account-layout { gap: 24px; }
  .account-nav { width: calc(100% - 40px); gap: 18px; }
  .account-nav a, .account-nav button { padding: 10px 0; }
  .store-browser-layout, .store-mast-grid { grid-template-columns: 1fr; gap: 24px; }
  .store-rail { position: static; display: block; padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .store-rail-note, .store-rail-links { display: none; }
  .store-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .filter-toggle, .store-filter-toggle { display: inline-flex; }
  .account-columns { grid-template-columns: 1fr; gap: 28px; }
  .auth-art { min-height: 320px; padding: 30px; }
  .summary-card { position: static; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .head-search { display: none; }
  .brand-word { font-size: 13.5px; }
  .account-name { display: none; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 30px; padding: 44px 0 32px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bot, .foot-bottom { flex-direction: column; align-items: flex-start; }
  .hp-section, .hp-process, .hp-faq, .faq-wrap { padding: 52px 0; }
  .hp-sec-head, .store-mast-inner, .page-head-row, .hp-cta-card, .pagination { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hp-cat-grid, .store-grid, .hp-product-grid, .blog-grid { grid-template-columns: 1fr; }
  .hp-cat.is-main { grid-column: auto; }
  .trust-strip .shell { grid-template-columns: repeat(2, 1fr); }
  .trust-strip span:nth-child(3), .trust-strip .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .hp-cta .shell { padding: 36px 0; }
  .hp-copy h1 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .hp-proof > div { padding: 0 14px; }
  .hp-proof strong { font-size: 16px; }
  .store-mast-board { flex-wrap: wrap; }
  .store-mast-board > div { padding: 10px 16px; }
  .cart-item { grid-template-columns: 78px minmax(0, 1fr) auto; grid-template-areas: "thumb info remove" "price price qty"; gap: 10px 14px; }
  .cart-thumb { width: 78px; }
  .cart-price, .cart-item-price { text-align: left; }
  .auth-art { display: none; }
  .account-stats { grid-template-columns: repeat(2, 1fr); }
  .account-greeting { flex-wrap: wrap; }
  .account-head-actions { margin-left: 0; width: 100%; }
  .profile-grid, .account-form { grid-template-columns: 1fr; }
  .product-shot img { aspect-ratio: 4/3; }
  .related-block .product-grid { grid-template-columns: 1fr; }
  .data-table { min-width: 560px; }
}

/* ==========================================================================
   Blue polish pass — cool surfaces, generous type, rounded components.
   Loaded last so it settles over both the legacy app.css and the editorial
   composition layers above.
   ========================================================================== */

:root {
  --mint: #dbe7ff;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --surface-card: #ffffff;
  --surface-soft: #eef3fb;
}

[data-theme="dark"] {
  --surface-card: #111a27;
  --surface-soft: #162131;
}

body {
  font-size: 16px;
  line-height: 1.7;
  background:
    radial-gradient(1000px 520px at 82% -10%, color-mix(in srgb, var(--blue) 7%, transparent), transparent 70%),
    var(--paper);
}

p { line-height: 1.72; }

.eyebrow, .hp-sec-label, .foot-col h3, .field label, .summary-label,
.spec-label, .detail-label, .product-cat, .store-rail-title {
  font-size: 11.5px;
  letter-spacing: .11em;
}

/* ---------- Controls ----------------------------------------------------- */

.btn {
  border-radius: 11px;
  font-size: 14px;
  letter-spacing: -.005em;
  padding: 12px 20px;
}
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 15px; }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: 12.5px; border-radius: 9px; }
.btn-block { border-radius: 11px; }
.btn-dark { border-radius: 11px; }
.icon-btn, .head-icon, .head-action, .theme-toggle { border-radius: 11px; }

input, select, textarea, .field input, .field select, .field textarea,
.password-wrap input, .store-search input {
  border-radius: 10px;
  font-size: 14.5px;
}
.field input, .field select, .field textarea { min-height: 48px; padding: 11px 14px; }
.field-hint { font-size: 12.5px; }

/* ---------- Shared surfaces --------------------------------------------- */

.panel, .detail-card, .summary-card, .auth-card, .account-card, .order-card,
.license-card, .download-card, .bank-card, .gateway-option, .support-card,
.cart-item, .checkout-card, .order-summary, .empty-state, .page-head-card {
  border-radius: 16px;
}

.panel {
  padding: 24px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(13, 30, 65, .04);
}
.panel + .panel { margin-top: 14px; }
.panel-head h2, .panel-head h3 { font-size: 21px; }
.panel-head p { font-size: 14px; }

.detail-card {
  padding: 22px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(13, 30, 65, .04);
}
.detail-card + .detail-card { margin-top: 14px; border-top: 1px solid var(--line); }
.detail-card p { font-size: 14px; }
.detail-help { padding: 22px; border-left: 1px solid var(--line); border-top: 2px solid var(--blue); }
.detail-help strong { font-size: 14px; }
.detail-help a { font-size: 13px; }

.summary-card {
  padding: 24px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  box-shadow: var(--shadow-lift);
}
.summary-row { font-size: 14px; padding: 10px 0; }
.summary-row.total { font-size: 21px; }
.summary-note { font-size: 12.5px; }

/* ---------- Hero --------------------------------------------------------- */

.hero-carousel { padding: 36px 0 44px; border-bottom: 0; }
.hero-carousel-grid {
  padding: 48px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue) 8%, transparent), transparent 52%),
    var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 30px 70px -55px rgba(10, 24, 55, .55);
}
.hp-copy .eyebrow { font-size: 12px; margin-bottom: 20px; }
.hp-copy h1 { font-size: clamp(3rem, 5.7vw, 5.7rem); line-height: .94; }
.hp-sub { font-size: 17px; margin: 22px 0 26px; max-width: 540px; }
.hp-search { min-height: 58px; border-radius: 14px; padding: 6px; }
.hp-search input { font-size: 15px; }
.hp-search .btn { min-height: 44px; border-radius: 10px; }
.hp-proof > div { padding: 0 26px; }
.hp-proof strong { font-size: 22px; }
.hp-proof span { font-size: 11px; }
.hero-reel-head { border-bottom-color: var(--line); }
.hero-reel-head span { font-size: 11px; }
.hero-frame { border-radius: 20px; margin-top: 14px; }
.hero-slide-media { max-height: 360px; }
.hero-slide-media img { max-height: 360px; }
.hero-slide-caption { padding: 46px 20px 18px; }
.hero-slide-caption h3, .hero-slide-title { font-size: 19px; }
.hero-slide-caption p { font-size: 13px; }
.hero-slide-copy .hero-slide-cat { font-size: 10.5px; }
.hero-dot { height: 3px; border-radius: 999px; }
.hero-dot.is-active { width: 44px; }

/* ---------- Trust strip -------------------------------------------------- */

.trust-strip { gap: 12px; padding: 20px 0; border: 0; }
.trust-strip span, .trust-strip .trust-item {
  min-height: 58px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-card);
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: none;
}
.trust-strip span:first-child, .trust-strip .trust-item:first-child { padding-left: 18px; }
.trust-strip svg { flex: none; }

/* ---------- Sections, categories, products ------------------------------- */

.hp-section, .hp-process, .hp-faq, .faq-wrap { padding: 72px 0; border-bottom: 0; }
.hp-sec-head { margin-bottom: 28px; padding-bottom: 18px; border-bottom-color: var(--line); }
.hp-sec-head h2 { font-size: clamp(2.1rem, 3.6vw, 3.4rem); }
.hp-sec-head p { max-width: 620px; font-size: 15px; }
.hp-sec-label { font-size: 11.5px; }
.hp-text-link, .link-arrow { font-size: 13px; }

.hp-cat-grid { gap: 14px; border: 0; }
.hp-cat {
  min-height: 205px;
  padding: 24px;
  background: var(--surface-card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  box-shadow: 0 1px 2px rgba(13, 30, 65, .04) !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hp-cat:hover {
  transform: translateY(-3px) !important;
  background: var(--surface-card) !important;
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line)) !important;
  box-shadow: var(--shadow-lift) !important;
}
.hp-cat.is-main {
  background: linear-gradient(145deg, #1557ff 0%, #0b3fd1 58%, #0a2f9e 100%) !important;
  border-color: transparent !important;
  color: #fff;
}
.hp-cat.is-main:hover { background: linear-gradient(145deg, #2a68ff 0%, #1557ff 58%, #0b3fd1 100%) !important; }
.hp-cat.is-main p, .hp-cat.is-main span { color: rgba(255, 255, 255, .74); }
.hp-cat.is-main h3 { font-size: 33px; }
.hp-cat-icon, .hp-cat .hp-cat-icon {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--blue-wash);
  border: 0;
}
.hp-cat.is-main .hp-cat-icon { background: rgba(255, 255, 255, .16); color: #fff; }
.hp-cat h3, .hp-cat-name { margin-top: 30px; font-size: 22px; }
.hp-cat p, .hp-cat-count { font-size: 13px; }
.hp-cat-num { font-size: 10.5px; }
.hp-cat-foot { font-size: 11px; }

.product-card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(13, 30, 65, .04);
}
.product-card:hover { border-color: color-mix(in srgb, var(--blue) 38%, var(--line)); }
.product-media { aspect-ratio: 16 / 10.4; background: var(--surface-soft); border-bottom: 1px solid var(--line-soft); }
.product-body { padding: 18px 18px 19px; }
.product-body h3 { font-size: 17px; line-height: 1.3; }
.product-body h3 a { letter-spacing: -.025em; }
.product-info { margin: 7px 0 14px; font-size: 14px; line-height: 1.6; }
.product-meta { font-size: 11px; }
.product-cat { top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; font-size: 10px; }
.product-sale { top: 12px; right: 12px; padding: 5px 10px; border-radius: 999px; font-size: 10.5px; }
.product-foot { padding-top: 14px; }
.product-foot .price, .product-foot .price-xl { font-size: 20px; }

/* ---------- Promo band (always dark, never flips to white) --------------- */

.hp-promo {
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.hp-promo-card {
  padding: 52px 56px;
  background:
    radial-gradient(620px 320px at 88% 12%, rgba(37, 99, 235, .5), transparent 70%),
    linear-gradient(135deg, #0a1736 0%, #0c1e46 55%, #081226 100%);
  border: 1px solid rgba(145, 180, 255, .22);
  border-radius: 28px;
  overflow: hidden;
}
.hp-promo-copy h2 { color: #fff; font-size: clamp(2.1rem, 3.7vw, 3.8rem); }
.hp-promo-copy p { color: rgba(226, 236, 255, .72); font-size: 15.5px; }
.hp-promo-copy .eyebrow { color: #9dbcff; font-size: 11.5px; }
.hp-promo-art {
  min-height: 330px;
  padding: 26px;
  border: 1px solid rgba(145, 180, 255, .24);
  border-radius: 22px;
  background: rgba(255, 255, 255, .055);
  overflow: hidden;
}
.hp-promo-art::before { display: none; }
.hp-promo-art > * { position: relative; }
.hp-promo-art .ns-art { width: min(390px, 100%); margin: 0 auto; }

/* ---------- Process ------------------------------------------------------ */

.hp-process-grid { border: 0; gap: 44px; }
.hp-process-head { padding: 8px 0 0; border-right: 0; }
.hp-process-head h2 { font-size: 32px; }
.hp-process-head p { font-size: 14.5px; }
.hp-steps { gap: 14px; }
.hp-step {
  min-height: 220px;
  padding: 24px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(13, 30, 65, .04);
}
.hp-step:last-child { border-right: 1px solid var(--line); }
.hp-step-num { margin-bottom: 0; font-size: 11.5px; }
.hp-step h3 { font-size: 19px; }
.hp-step p { font-size: 14px; line-height: 1.65; }
.hp-step-top { min-height: 62px; margin-bottom: 22px; }
.hp-step-art, .hp-step-art .ns-art { width: 68px; }
.hp-step-art {
  display: grid;
  place-items: center;
  padding: 10px;
  margin: -4px 0 0;
  border-radius: 16px;
  background: var(--blue-wash);
  opacity: 1;
}
.hp-step-art .art-img { max-height: 48px; object-fit: contain; }

/* ---------- FAQ ---------------------------------------------------------- */

.hp-faq-list { display: grid; gap: 10px; border-top: 0; }
.faq-item {
  padding: 0 18px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.faq-item summary, .faq-question { padding: 18px 0; font-size: 15px; }
.faq-answer, .faq-item p { padding: 0 0 18px; font-size: 14.5px; }
.hp-faq-head p, .hp-faq-intro p { font-size: 14.5px; max-width: 380px; }
.hp-faq-head h2, .hp-faq-intro h2 { font-size: 40px; }
.hp-faq-intro .hp-text-link { font-size: 13px; }

/* ---------- CTA ---------------------------------------------------------- */

.hp-cta { background: transparent; border: 0; color: #fff; }
.hp-cta .shell { padding: 0; }
.hp-cta-card {
  padding: 48px 56px;
  background: linear-gradient(135deg, #1557ff 0%, #0b3fd1 70%, #0a2f9e 100%);
  border-radius: 28px;
}
.hp-cta h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.hp-cta p { font-size: 15px; }
.hp-cta-kicker { font-size: 11.5px; }

/* ---------- Store ------------------------------------------------------- */

.store-mast { padding: 46px 0 32px; border-bottom-color: var(--line); }
.store-mast p { font-size: 15px; }
.store-mast-kicker { font-size: 11px; }
.store-mast-chips span { font-size: 12px; }
.store-mast-stat, .store-mast-member { padding: 16px 18px; }
.store-mast-board strong { font-size: 18px; }
.store-mast-board span { font-size: 11px; }
.store-rail {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-card);
}
.store-rail-head { font-size: 11.5px; }
.store-cat { font-size: 14px; }
.store-cat b { font-size: 11.5px; }
.store-list-head h2 { font-size: 21px; }
.store-list-head span, .store-result-count { font-size: 12.5px; }
.store-view .view-btn { width: 36px; height: 36px; border-radius: 10px; }
.store-rail-note h2 { font-size: 16px; }
.store-rail-note p, .store-rail-links a { font-size: 12.5px; }
.store-search { padding: 0 0 8px; }
.store-search input { font-size: 14.5px; }
.store-search button { font-size: 11.5px; }

/* ---------- Product detail ---------------------------------------------- */

.product-shot { border-radius: 20px; overflow: hidden; }
.product-page .summary-card { border-radius: 20px; }
.buy-box {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-card);
  box-shadow: 0 1px 2px rgba(13, 30, 65, .04);
}
.demo-actions { display: grid; gap: 8px; margin-top: 10px; }
.demo-external { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; color: var(--muted); font-size: 12.5px; font-weight: 600; text-decoration: none; border-radius: 9px; }
.demo-external:hover { color: var(--blue); background: var(--blue-wash); }
.buy-points li { font-size: 13.5px; }
.detail-block h2 { font-size: 26px; }
.spec-list div { padding: 10px 0; }
.spec-list dt { font-size: 12px; }
.spec-list dd { font-size: 14px; }
.breadcrumbs, .product-crumbs { font-size: 12.5px; }
.product-detail-grid, .product-layout { gap: 40px; }

/* ---------- Cart, checkout, auth, account, blog ------------------------- */

.cart-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--surface-card);
  margin-bottom: 12px;
}
.cart-info h2, .cart-info h3 { font-size: 17px; }
.cart-info p { font-size: 12.5px; }
.cart-price, .cart-item-price { font-size: 20px; }
.cart-thumb { border-radius: 12px; overflow: hidden; }
.cart-qty-stepper { border-radius: 9px; overflow: hidden; }

.checkout-main .panel, .gateway-option {
  background: var(--surface-card);
  border: 1px solid var(--line);
}
.checkout-main .panel { padding: 24px; margin-bottom: 14px; }
.checkout-main .panel:first-child { padding-top: 24px; border-top: 1px solid var(--line); }
.gateway-option { border-radius: 13px; margin-bottom: 10px; padding: 16px 15px; }
.gateway-option:has(input:checked) { background: var(--blue-wash); box-shadow: inset 3px 0 0 var(--blue); border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); }
.gateway-option strong { font-size: 14.5px; }
.gateway-option small { font-size: 12.5px; }
.panel-num { width: 26px; height: 26px; font-size: 11px; }

.auth-card > p, .auth-lead { font-size: 15px; }
.field-link { font-size: 12.5px; }
.auth-art-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 330px;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid rgba(160, 193, 255, .2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 45%, rgba(70, 128, 255, .32), transparent 70%),
    rgba(255, 255, 255, .06);
}
.auth-art-visual .ns-art { width: min(240px, 90%); }
.auth-art {
  padding: 44px;
  background:
    radial-gradient(520px 300px at 85% 8%, rgba(70, 128, 255, .5), transparent 70%),
    linear-gradient(150deg, #0a1736 0%, #0c1e46 58%, #081226 100%);
  border: 1px solid rgba(145, 180, 255, .22);
  border-radius: 24px;
  color: #fff;
  overflow: hidden;
}
.auth-art::before { inset: 18px; border: 1px solid rgba(190, 213, 255, .2); border-radius: 16px; }
.auth-art h2 { color: #fff; }
.auth-art p { color: rgba(226, 236, 255, .74); font-size: 14px; }
.auth-sticker { color: #cfe0ff; font-size: 10.5px; }
.auth-art-cards { border-top-color: rgba(160, 193, 255, .24); }
.auth-art-cards .mini-card { padding: 12px 0; border-bottom-color: rgba(160, 193, 255, .16) !important; color: #fff; }
.auth-art-cards .mini-icon { width: 34px; height: 34px; border-color: rgba(160, 193, 255, .35); border-radius: 10px; background: rgba(255, 255, 255, .08); color: #cfe0ff; }
.auth-art-cards strong { font-size: 13px; color: #fff; }
.auth-art-cards small { font-size: 11px; color: rgba(226, 236, 255, .6); }
.auth-art-stats { border-top-color: rgba(160, 193, 255, .2); }
.auth-art-stats span { font-size: 10.5px; color: rgba(226, 236, 255, .6); }
.auth-art-stats strong { color: #cfe0ff; }

.stat-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-card);
  box-shadow: 0 1px 2px rgba(13, 30, 65, .04);
}
.stat-card:first-child { padding-left: 20px; border-left: 1px solid var(--line); }
.stat-icon, .stat-icon.stat-blue, .stat-icon.stat-green, .stat-icon.stat-yellow { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-wash); color: var(--blue); }
.stat-card span { font-size: 11px; }
.account-stats { gap: 14px; border-bottom: 0; }
.order-item-card {
  padding: 20px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-card);
}
.order-item-main h3 { font-size: 16px; }
.order-item-main small { font-size: 12px; }
.copy-chip { border-radius: 8px; }
.account-name { font-size: 14px; }
.account-quick-license strong { font-size: 14px; }
.account-quick-license small { font-size: 12px; }

.blog-card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.blog-card:hover { background: var(--surface-card); border-color: color-mix(in srgb, var(--blue) 38%, var(--line)); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.blog-media { border-bottom: 1px solid var(--line-soft); }
.blog-body h3 { font-size: 20px; }
.blog-body p { font-size: 14px; }
.blog-tag, .blog-num { font-size: 10.5px; }

.license-card, .download-card {
  padding: 18px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.license-title h2, .license-title h3 { font-size: 16px; }
.license-key { border-radius: 10px; font-size: 12.5px; }
.license-meta { font-size: 12px; }

/* ---------- Preview modal ------------------------------------------------ */

.preview-modal[hidden] { display: none !important; }
.preview-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; }
.preview-backdrop { position: absolute; inset: 0; background: rgba(4, 10, 24, .72); backdrop-filter: blur(6px); }
.preview-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1180px, 100%);
  height: min(820px, calc(100vh - 48px));
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.preview-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--paper-soft); }
.preview-title { min-width: 0; margin-right: auto; }
.preview-title strong { display: block; overflow: hidden; font-size: 14.5px; text-overflow: ellipsis; white-space: nowrap; }
.preview-title span { display: block; font-size: 11.5px; color: var(--muted); }
.preview-views { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.preview-views button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 600 12px var(--font-body); cursor: pointer; }
.preview-views button.is-active { background: var(--blue); color: #fff; }
.page-hero-art { padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface-card); }
.empty-art, .side-art {
  padding: 16px;
  border-radius: 20px;
  background: var(--blue-wash);
}
.error-art .ns-art { width: min(300px, 90%); }
.preview-head .icon-btn { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); cursor: pointer; }
.preview-head .icon-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.preview-stage { flex: 1; min-height: 0; padding: 18px; background: var(--paper-deep); overflow: auto; }
.preview-frame-wrap { width: 100%; height: 100%; margin: 0 auto; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px -24px rgba(0, 0, 0, .5); overflow: hidden; transition: width .25s ease; }
.preview-stage.is-mobile .preview-frame-wrap { width: 390px; max-width: 100%; border-radius: 24px; border: 8px solid #0b1220; }
.preview-frame-wrap iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.preview-note { margin: 0; padding: 9px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; text-align: center; }
body.preview-open { overflow: hidden; }

@media (max-width: 980px) {
  .hero-carousel-grid { padding: 34px; gap: 34px; }
  .hp-promo-card { padding: 36px; }
  .hp-promo-art { min-height: 260px; }
  .hp-process-grid { gap: 26px; }
  .hp-cta-card { padding: 36px; }
  .hp-step-art, .hp-step-art .ns-art { width: 58px; }
}

@media (max-width: 760px) {
  .hero-carousel { padding: 20px 0 30px; }
  .hero-carousel-grid { padding: 24px 20px; border-radius: 20px; }
  .hp-copy h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .hp-sub { font-size: 15.5px; }
  .trust-strip { grid-template-columns: 1fr 1fr; gap: 9px; }
  .trust-strip span, .trust-strip .trust-item { padding: 12px 13px; min-height: 50px; border-left: 1px solid var(--line); }
  .trust-strip span:first-child, .trust-strip .trust-item:first-child { padding-left: 13px; }
  .hp-section, .hp-process, .hp-faq, .faq-wrap { padding: 46px 0; }
  .hp-cat { min-height: 170px; }
  .hp-promo-card { padding: 26px 22px; border-radius: 20px; }
  .hp-promo-art { min-height: 220px; padding: 18px; }
  .hp-cta-card { padding: 28px 22px; border-radius: 20px; }
  .preview-modal { padding: 10px; }
  .preview-dialog { height: calc(100vh - 20px); border-radius: 16px; }
  .preview-head { flex-wrap: wrap; gap: 8px; padding: 10px; }
  .preview-title { width: 100%; margin-right: 0; }
  .preview-views { margin-right: auto; }
  .preview-stage { padding: 8px; }
  .preview-stage.is-mobile .preview-frame-wrap { width: 100%; border-width: 4px; }
}

/* ---------- Refined process cards ---------------------------------------- */

.hp-steps { align-items: stretch; }
.hp-step {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 16px 16px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hp-step:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--blue) 36%, var(--line));
  box-shadow: 0 18px 38px -26px rgba(10, 36, 96, .45);
}
.hp-step-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  width: 100%;
  min-height: 188px;
  margin: 0 0 24px;
  padding: 34px 14px 14px;
  border: 1px solid color-mix(in srgb, var(--blue) 15%, var(--line));
  border-radius: 16px;
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 255, 255, .5), transparent 46%),
    linear-gradient(145deg, var(--blue-wash), color-mix(in srgb, var(--blue) 10%, var(--surface-card)));
  overflow: hidden;
}
.hp-step-top::before {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -58px;
  width: 158px;
  height: 158px;
  border: 1px dashed color-mix(in srgb, var(--blue) 22%, transparent);
  border-radius: 50%;
}
.hp-step-num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--blue) 16%, var(--line));
  border-radius: 11px;
  background: var(--surface-card);
  box-shadow: 0 4px 12px -7px rgba(10, 36, 96, .4);
  color: var(--blue);
  font: 650 11.5px var(--font-body);
  letter-spacing: .08em;
}
.hp-step-art,
.hp-step-art .ns-art {
  width: 100%;
  max-width: 148px;
}
.hp-step-art {
  display: block;
  justify-self: center;
  aspect-ratio: 1;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  opacity: 1;
}
.hp-step-art .ns-art { height: 100%; }
.hp-step-art .art-img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(9, 37, 100, .14));
  transition: transform .3s ease;
}
.hp-step:hover .hp-step-art .art-img { transform: translateY(-3px) scale(1.035); }
.hp-step h3 { margin: 0 0 8px; padding: 0 8px; font-size: 21px; line-height: 1.25; }
.hp-step p { margin: 0; padding: 0 8px; color: var(--muted); font-size: 14.5px; line-height: 1.68; overflow-wrap: anywhere; }

/* ---------- Product detail cards ---------------------------------------- */

.product-detail .detail-main { min-width: 0; }
.product-detail .detail-block {
  padding: 28px 30px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-card);
  box-shadow: 0 1px 2px rgba(13, 30, 65, .04);
}
.product-detail .detail-block:last-child { margin-bottom: 0; }
.product-detail .detail-block h2 { margin-top: 0; }
.product-detail .detail-block > p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.product-detail .legacy-content { max-width: 74ch; font-size: 15.5px; line-height: 1.85; }
.product-detail .detail-head { margin-bottom: 16px; }
.product-detail .review-form { margin-top: 0; }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
  .head-search { width: 150px; }
  .head-row { gap: 12px; }
  .brand-tag, .brand-sub { display: none; }
  .brand-mark, [data-theme="dark"] .brand-mark { width: 34px; height: 34px; }
  .brand-mark svg, [data-theme="dark"] .brand-mark svg { width: 32px; height: 32px; }
  .hp-process-grid { grid-template-columns: 1fr; gap: 28px; }
  .hp-process-head { padding: 0 0 4px; border-right: 0; }
  .hp-step { min-height: 0; }
  .hp-step-top { min-height: 178px; }
  .hp-step-art, .hp-step-art .ns-art { max-width: 136px; }
  .product-detail .detail-block { padding: 26px; }
}

@media (max-width: 860px) {
  .hp-step {
    display: grid;
    grid-template-columns: clamp(132px, 22vw, 168px) minmax(0, 1fr);
    grid-template-areas: "top h3" "top p";
    align-items: start;
    column-gap: 20px;
    row-gap: 8px;
    min-height: 0;
    padding: 16px 20px 20px;
    border-radius: 20px;
  }
  .hp-step-top {
    grid-area: top;
    height: 100%;
    min-height: 148px;
    margin: 0;
    padding: 34px 12px 12px;
    border-radius: 14px;
  }
  .hp-step-art, .hp-step-art .ns-art { max-width: 140px; }
  .hp-step h3 { grid-area: h3; margin: 6px 0 0; padding: 0; font-size: 20px; }
  .hp-step p { grid-area: p; padding: 0; font-size: 14.5px; line-height: 1.6; }
}

@media (max-width: 640px) {
  .hp-step {
    grid-template-columns: clamp(98px, 34vw, 126px) minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 7px;
    padding: 14px 16px 20px;
    border-radius: 18px;
  }
  .hp-step-top { min-height: 132px; padding: 34px 9px 10px; border-radius: 13px; }
  .hp-step-num { top: 9px; left: 9px; width: 32px; height: 32px; border-radius: 9px; font-size: 10.5px; }
  .hp-step-art, .hp-step-art .ns-art { max-width: 104px; }
  .hp-step h3 { margin: 4px 0 0; font-size: 18.5px; }
  .hp-step p { font-size: 13.5px; line-height: 1.58; }
  .product-detail .detail-block { padding: 22px 18px; margin-bottom: 14px; border-radius: 16px; }
  .product-detail .detail-block h2 { margin-bottom: 14px; font-size: 23px; }
  .product-detail .legacy-content { font-size: 15px; line-height: 1.75; }
}

/* ---------- Unified product layout -------------------------------------- */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 24px 52px;
  align-items: start;
  padding: 28px 0 56px;
  border-bottom: 1px solid var(--line);
}
.product-main { min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.product-gallery { min-width: 0; }
.product-page .product-shot {
  border: 1px solid color-mix(in srgb, var(--blue) 14%, var(--line));
  border-radius: 24px;
  background: linear-gradient(145deg, var(--blue-wash), var(--surface-card) 58%);
  box-shadow: 0 18px 44px -30px rgba(13, 42, 110, .45);
}
.product-page .product-shot img { aspect-ratio: 16 / 10; }

.product-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
  overflow: hidden;
}
.product-quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 13px 14px;
  background: var(--surface-card);
}
.product-quick .quick-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue-wash);
  color: var(--blue);
}
.product-quick .quick-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.product-quick .quick-copy small {
  color: var(--muted);
  font: 650 9.5px/1.2 var(--font-body);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.product-quick .quick-copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

.product-main .detail-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  margin: 0;
}
.product-main .detail-block {
  padding: 28px 30px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-card);
  box-shadow: 0 1px 2px rgba(13, 30, 65, .04);
}
.product-main .detail-block h2 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  line-height: 1.15;
  letter-spacing: -.045em;
}
.product-main .detail-head h2 { margin: 0; padding-bottom: 10px; }
.product-main .detail-head { margin-bottom: 16px; }
.product-main .detail-block > p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.product-main .legacy-content { max-width: 74ch; font-size: 15.5px; line-height: 1.85; }
.product-main .review-form { margin-top: 0; }

.product-rail {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding-left: 40px;
  border-left: 1px solid var(--line);
}
.product-rail .buy-box {
  position: static;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.product-rail .buy-box .kicker { color: var(--blue); }
.product-rail .buy-box h1 {
  margin: 12px 0 14px;
  font-size: clamp(2.15rem, 3.1vw, 3.25rem);
  line-height: 1;
  letter-spacing: -.06em;
}
.product-rail .buy-summary { margin-bottom: 20px; font-size: 13.5px; line-height: 1.72; }
.product-rail .buy-price { padding: 16px 0; }
.product-rail .buy-price .price-xl { font-size: 38px; }
.product-rail .detail-side { position: static; display: grid; gap: 14px; }
.product-rail .detail-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-card);
}
.product-rail .detail-card + .detail-card { border-top: 1px solid var(--line); }
.product-rail .detail-help {
  margin-top: 0;
  padding: 20px 22px !important;
  border-left: 1px solid color-mix(in srgb, var(--blue) 30%, var(--line)) !important;
  background: linear-gradient(145deg, var(--blue-wash), var(--surface-card)) !important;
}
.product-rail .detail-help > svg { color: var(--blue); }

@media (max-width: 1080px) {
  .product-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); gap: 24px 36px; }
  .product-rail { padding-left: 28px; }
  .product-rail .buy-box h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
  .product-quick-item { padding: 12px; gap: 9px; }
  .product-quick .quick-icon { width: 32px; height: 32px; }
}

@media (max-width: 860px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 20px 0 42px;
  }
  .product-main, .product-rail { display: contents; }
  .product-gallery { order: 1; }
  .product-rail .buy-box {
    order: 2;
    padding: 24px 0 8px;
    border-top: 1px solid var(--line);
  }
  .product-main .detail-main { order: 3; margin-top: 24px; gap: 14px; }
  .product-rail .detail-side {
    order: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
  .product-rail .buy-box h1 { font-size: clamp(2.2rem, 6.5vw, 3.2rem); }
}

@media (max-width: 640px) {
  .product-page { padding-bottom: 54px; }
  .product-page .product-shot { border-radius: 18px; }
  .product-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 14px; }
  .product-quick-item { padding: 11px 12px; }
  .product-quick-item:last-child { grid-column: 1 / -1; }
  .product-quick .quick-copy strong { font-size: 12.5px; }
  .product-rail .detail-side { grid-template-columns: 1fr; }
  .product-main .detail-block { padding: 22px 18px; border-radius: 18px; }
  .product-main .detail-block h2 { margin-bottom: 14px; font-size: 23px; }
  .product-main .legacy-content { font-size: 15px; line-height: 1.75; }
  .product-rail .detail-card { padding: 18px; }
  .product-rail .detail-help { padding: 18px !important; }
}

/* ---------- Store ratings ------------------------------------------------- */

.hp-ratings { overflow: hidden; }
.hp-ratings-head { align-items: flex-end; }
.hp-ratings-tools { display: flex; align-items: center; gap: 22px; }
.hp-rating-score { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; }
.hp-rating-score strong {
  color: var(--ink);
  font: 700 2.6rem/1 var(--font-heading);
  letter-spacing: -.06em;
}
.hp-rating-score .stars { display: inline-flex; gap: 2px; color: #f4ad14; }
.hp-rating-score .stars svg { fill: currentColor; stroke: currentColor; }
.hp-rating-score small { flex-basis: 100%; color: var(--muted); font-size: 11px; }
.hp-ratings-nav { display: flex; gap: 8px; }
.hp-ratings-nav .hero-arrow { width: 40px; height: 40px; }
.hp-ratings-viewport { margin: 0 -4px; }
.hp-ratings-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.hp-ratings-track::-webkit-scrollbar { display: none; }
.hp-ratings-track:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 18px; }
.hp-rating-card {
  display: flex;
  flex: 0 0 clamp(300px, 32%, 400px);
  flex-direction: column;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-card);
  box-shadow: 0 12px 34px -30px rgba(13, 42, 110, .4);
  scroll-snap-align: start;
}
.hp-rating-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hp-rating-card-top .stars { display: inline-flex; gap: 2px; color: #f4ad14; }
.hp-rating-card-top .stars svg { fill: currentColor; stroke: currentColor; }
.hp-rating-card-top strong { color: var(--ink); font: 700 14px/1 var(--font-heading); }
.hp-rating-card blockquote {
  flex: 1;
  margin: 18px 0 22px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
  letter-spacing: -.005em;
  overflow-wrap: anywhere;
}
.hp-rating-user { display: flex; align-items: center; gap: 10px; padding-top: 15px; border-top: 1px solid var(--line-soft); }
.hp-rating-user img { flex: none; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--blue-wash); }
.hp-rating-user div { min-width: 0; }
.hp-rating-user strong { display: block; color: var(--ink); font-size: 12px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-rating-user span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.hp-rating-user time { margin-left: auto; color: var(--muted); font-size: 9.5px; white-space: nowrap; }
.hp-ratings-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.hp-ratings-foot > span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10.5px; }
.hp-ratings-foot > span svg { color: var(--blue); }

.store-rate {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-card);
}
.store-rate-head { display: flex; align-items: flex-start; gap: 9px; }
.store-rate-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #fff3cf;
  color: #c78600;
}
[data-theme="dark"] .store-rate-icon { background: rgba(244, 173, 20, .14); color: #f4c14f; }
.store-rate-head h2 { margin: 0; color: var(--ink); font-size: 14px; letter-spacing: -.02em; }
.store-rate-head p { margin: 3px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.store-rate-score { margin-left: auto; text-align: right; white-space: nowrap; }
.store-rate-score strong { display: block; color: var(--ink); font: 700 19px/1 var(--font-heading); letter-spacing: -.04em; }
.store-rate-score small { display: block; margin-top: 3px; color: var(--muted); font-size: 8.5px; text-transform: uppercase; letter-spacing: .04em; }
.store-rate-form { display: grid; gap: 10px; margin-top: 15px; }
.store-rate-field { margin: 0; padding: 0; border: 0; }
.store-rate-field legend {
  padding: 0;
  color: var(--muted);
  font: 650 9px var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rate-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 3px; margin-top: 7px; }
.rate-stars input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rate-stars label { cursor: pointer; color: var(--line); transition: color .15s ease, transform .15s ease; }
.rate-stars label svg { display: block; fill: transparent; stroke: currentColor; }
.rate-stars label:hover { transform: translateY(-1px); }
.rate-stars input:checked ~ label,
.rate-stars label:hover,
.rate-stars label:hover ~ label { color: #f4ad14; }
.rate-stars input:checked ~ label svg,
.rate-stars label:hover svg,
.rate-stars label:hover ~ label svg { fill: currentColor; }
.rate-stars input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.store-rate-form textarea {
  width: 100%;
  min-height: 78px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
  resize: vertical;
}
.store-rate-form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-wash); }
.store-rate-form .btn { min-height: 40px; font-size: 12px; }
.store-rate-thanks { display: grid; gap: 7px; margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--blue-wash); }
.store-rate-thanks .stars { display: inline-flex; gap: 2px; color: #d99400; }
.store-rate-thanks .stars svg { fill: currentColor; stroke: currentColor; }
.store-rate-thanks p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.store-rate-thanks small { color: var(--muted); font-size: 10.5px; line-height: 1.5; }

@media (max-width: 1080px) {
  .hp-rating-card { flex-basis: calc((100% - 18px) / 2); }
}
@media (max-width: 860px) {
  .hp-ratings-head { align-items: flex-start; }
  .hp-rating-card { flex-basis: calc((100% - 18px) / 2); }
  .store-rail .store-rate { display: block; }
}
@media (max-width: 640px) {
  .hp-ratings-tools { width: 100%; justify-content: space-between; margin-top: 14px; }
  .hp-rating-card { flex-basis: 86%; min-height: 230px; padding: 20px; }
  .hp-rating-card blockquote { font-size: 14.5px; }
  .hp-ratings-foot { align-items: flex-start; flex-direction: column; gap: 10px; }
  .hp-ratings-foot > span { align-items: flex-start; }
}

.hp-ratings-nav .hero-arrow:disabled { opacity: .35; cursor: not-allowed; transform: none; }

/* ---------- Final home composition polish ------------------------------- */

/* Open editorial hero: no enclosing card. */
.hero-carousel {
  padding: clamp(46px, 6vw, 80px) 0 clamp(44px, 6vw, 72px);
  background:
    radial-gradient(64% 120% at 84% 18%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 72%),
    transparent;
  border-bottom: 1px solid var(--line);
}
.hero-carousel-grid {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: clamp(34px, 5vw, 72px);
}
.hero-reel { max-width: 520px; }

/* Category rhythm: feature tile balances four equal cards. */
.hp-cat-grid { grid-auto-rows: minmax(198px, auto); align-items: stretch; }
.hp-cat { min-height: 0; }
.hp-cat.is-main { grid-row: span 2; }
.hp-cat .hp-cat-num {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 32px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--muted);
  font: 700 11px/1 var(--font-body);
  letter-spacing: .02em;
}
.hp-cat.is-main .hp-cat-num {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

/* FAQ: numbered, continuous accordion with a support panel. */
.faq-wrap {
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: start;
  padding: clamp(58px, 7vw, 92px) 0;
  border-bottom: 1px solid var(--line);
}
.hp-faq-intro { position: sticky; top: 100px; }
.hp-faq-intro h2 { margin: 10px 0 14px; font-size: clamp(2.3rem, 3.6vw, 3.7rem); line-height: .97; letter-spacing: -.06em; }
.hp-faq-intro > p { max-width: 390px; font-size: 15px; line-height: 1.7; }
.hp-faq-support {
  max-width: 440px;
  margin-top: 30px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--blue) 16%, var(--line));
  border-radius: 18px;
  background: linear-gradient(145deg, var(--blue-wash), var(--surface-card) 72%);
}
.hp-faq-support-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--blue);
  color: #fff;
}
.hp-faq-support h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.03em; }
.hp-faq-support p { margin: 0 0 14px; max-width: 280px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.hp-faq-support a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
}
.hp-faq-support a:hover { text-decoration: underline; text-underline-offset: 3px; }

.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.faq-item {
  position: relative;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 36px;
  gap: 12px;
  align-items: center;
  padding: 21px 6px;
  color: var(--ink);
  font: 600 16px/1.5 var(--font-body);
  letter-spacing: -.015em;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary:hover .faq-q { color: var(--blue); }
.faq-num {
  display: inline-grid;
  place-items: center;
  place-self: center start;
  width: 100%;
  max-width: 32px;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--blue-wash);
  color: var(--blue);
  font: 700 11px/1 var(--font-body);
  letter-spacing: .01em;
}
.faq-q { transition: color .18s ease; }
.faq-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-card);
  color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.faq-item[open] .faq-icon {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  transform: rotate(45deg);
}
.faq-item[open] .faq-q { color: var(--blue); }
.faq-answer { padding: 0 52px 22px 56px; }
.faq-answer p { margin: 0; max-width: 660px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.faq-item[open] .faq-answer { animation: ns-faq-reveal .22s ease both; }
@keyframes ns-faq-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Closing CTA: flat, generous clearance before the footer. */
.hp-cta { padding: clamp(28px, 4vw, 46px) 0 clamp(82px, 10vw, 124px); }
.hp-cta .shell { padding: 0; }
.hp-cta-card {
  border: 1px solid color-mix(in srgb, var(--blue) 68%, transparent);
  border-radius: clamp(20px, 2.4vw, 30px);
  box-shadow: none;
}

/* Keep native browser UI in the active theme. */
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

@media (max-width: 1080px) {
  .hp-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-cat.is-main { grid-column: span 2; grid-row: auto; min-height: 190px; }
}
@media (max-width: 980px) {
  .hero-carousel { padding: 38px 0 46px; }
  .hero-carousel-grid { padding: 0; gap: 34px; }
  .hp-cta { padding-bottom: 86px; }
}
@media (max-width: 760px) {
  .hero-carousel { padding: 26px 0 38px; }
  .hero-carousel-grid { padding: 0; border-radius: 0; gap: 30px; }
  .faq-wrap { grid-template-columns: 1fr; gap: 28px; padding: 50px 0; }
  .hp-faq-intro { position: static; }
  .hp-faq-support { max-width: 440px; }
  .hp-cta { padding: 18px 0 68px; }
  .hp-cta-card { padding: 30px 24px; border-radius: 20px; }
}
@media (max-width: 640px) {
  .hp-cat-grid { grid-template-columns: 1fr; }
  .hp-cat.is-main { grid-column: auto; }
  .faq-item summary { grid-template-columns: 30px minmax(0, 1fr) 32px; gap: 9px; padding: 17px 2px; font-size: 14.5px; }
  .faq-icon { width: 30px; height: 30px; }
  .faq-answer { padding: 0 34px 18px 39px; }
  .faq-answer p { font-size: 14px; line-height: 1.7; }
}

@media (max-width: 860px) {
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 50px 0; }
  .hp-faq-intro { position: static; }
  .hp-faq-support { max-width: 440px; }
}

/* The legacy home page rules are more specific; keep the new FAQ rhythm. */
.home-page .faq-wrap {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.home-page .faq-item {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.home-page .faq-item:last-child { border-bottom: 0; }
.home-page .faq-item summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 36px;
  gap: 12px;
  padding: 21px 6px;
  font: 600 16px/1.5 var(--font-body);
}
.home-page .faq-item p { padding: 0; font-size: 15px; line-height: 1.75; }
.home-page .faq-item .faq-answer { padding: 0 52px 22px 56px; }

@media (max-width: 900px) {
  .home-page .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hp-faq-intro { position: static; }
}
@media (max-width: 640px) {
  .home-page .faq-item summary { grid-template-columns: 30px minmax(0, 1fr) 32px; gap: 9px; padding: 17px 2px; font-size: 14.5px; }
  .home-page .faq-item .faq-answer { padding: 0 34px 18px 39px; }
  .home-page .faq-item p { font-size: 14px; line-height: 1.7; }
}

/* ---------- Storefront upload controls ---------------------------------- */

.bank-proof-form .upload-zone {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 20px;
  border: 1.5px dashed color-mix(in srgb, var(--blue) 26%, var(--line));
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-wash), var(--surface-card) 62%);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.bank-proof-form .upload-zone:hover,
.bank-proof-form .upload-zone:focus-within {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--blue-wash), var(--surface-card) 38%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 12%, transparent);
}
.bank-proof-form .upload-zone-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--blue) 85%, transparent);
}
.bank-proof-form .upload-zone-copy { min-width: 0; }
.bank-proof-form .upload-zone-copy strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}
.bank-proof-form .upload-zone-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.upload-zone-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line));
  border-radius: 10px;
  background: var(--surface-card);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.bank-proof-form .upload-zone:hover .upload-zone-action {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.upload-file-name {
  display: none;
  width: fit-content;
  max-width: 100%;
  margin: 10px 0 18px;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--blue) 24%, var(--line));
  border-radius: 10px;
  background: var(--blue-wash);
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.upload-file-name.is-visible { display: flex; align-items: center; gap: 8px; }
.upload-file-name::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

@media (max-width: 640px) {
  .bank-proof-form .upload-zone {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    min-height: 0;
  }
  .bank-proof-form .upload-zone-icon { width: 42px; height: 42px; border-radius: 12px; }
  .upload-zone-action { grid-column: 1 / -1; width: 100%; }
}

/* ---------- Site rhythm, breadcrumbs and card spacing ------------------- */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.hero-carousel { border-bottom: 0; }
.hp-trust-band {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}
.hp-trust-wrap { padding: 0; }
.hp-trust-band .trust-strip { padding: 0; border: 0; }

.hp-section,
.hp-process {
  border-bottom: 1px solid var(--line);
}
.hp-section.hp-tint { background: var(--paper-soft); }
.hp-promo { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hp-section,
.hp-process,
.hp-cta,
#faq { scroll-margin-top: calc(var(--head-h) + 24px); }

/* The FAQ is already inside an .hp-section; don't double its padding. */
.hp-section .faq-wrap {
  padding: 0;
  border: 0;
}

.breadcrumb {
  padding: 18px 0 0;
}
.breadcrumb ol {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-card);
  box-shadow: 0 1px 2px rgba(13, 30, 65, .04);
  list-style: none;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .16s ease;
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb li:last-child span { color: var(--ink); font-weight: 650; }
.breadcrumb .icon { flex: none; opacity: .5; }

/* Cart cards get their own breathing room instead of edge-to-edge rows. */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 0;
}
.cart-item {
  padding: 18px 20px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-card);
  box-shadow: 0 1px 2px rgba(13, 30, 65, .04);
}
.cart-item:hover {
  border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
  box-shadow: 0 14px 32px -28px rgba(10, 40, 110, .55);
}
.cart-info { padding: 2px 0; }
.cart-info h2, .cart-info h3 { overflow-wrap: anywhere; }
.cart-note { padding-left: 2px; }

/* ---------- FAQ page ---------------------------------------------------- */

.faq-hero {
  padding: clamp(34px, 4.5vw, 54px) 0 clamp(38px, 4.5vw, 54px);
  background:
    radial-gradient(70% 120% at 86% 18%, color-mix(in srgb, var(--blue) 9%, transparent), transparent 72%),
    var(--paper-soft);
  border-bottom: 1px solid var(--line);
}
.faq-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
}
.faq-hero-copy { max-width: 760px; }
.faq-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: .94;
  letter-spacing: -.065em;
}
.faq-hero p { max-width: 620px; margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.faq-hero-aside { display: flex; align-items: stretch; gap: 10px; flex: none; }
.faq-hero-stat {
  display: grid;
  place-items: center;
  min-width: 104px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-card);
  text-align: center;
}
.faq-hero-stat strong { font: 700 28px/1 var(--font-heading); letter-spacing: -.05em; }
.faq-hero-stat span { margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.faq-hero-aside .btn { min-height: 68px; border-radius: 16px; }

.faq-page-section { padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 7vw, 90px); }
.faq-page {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(36px, 5vw, 64px);
  max-width: none;
  padding: 0;
  align-items: start;
}
.faq-page .faq-list { border-top: 0; border-bottom: 1px solid var(--line); }
.faq-page .faq-item summary { padding: 22px 8px; }
.faq-page .faq-answer { padding: 0 58px 24px 62px; }
.faq-page .faq-answer p { font-size: 15px; }
.faq-empty { margin: 0; padding: 24px 0; color: var(--muted); font-size: 14px; }
.faq-side { position: sticky; top: calc(var(--head-h) + 20px); }
.faq-help-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  border-radius: 18px;
  background:
    radial-gradient(130% 100% at 100% 0%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 62%),
    var(--surface-card);
  box-shadow: 0 16px 38px -32px rgba(10, 36, 96, .55);
}
.faq-help-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
}
.faq-help-kicker { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.faq-help-card h2 { margin: 7px 0 8px; font-size: 25px; letter-spacing: -.045em; }
.faq-help-card p { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.faq-help-card .btn { margin-bottom: 12px; }
.faq-help-card .link-arrow { font-size: 12.5px; }

@media (max-width: 980px) {
  .faq-hero-inner { display: grid; gap: 24px; }
  .faq-hero-aside { justify-content: flex-start; }
  .faq-page { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .faq-side { position: static; }
  .faq-help-card { max-width: 560px; }
}
@media (max-width: 760px) {
  .hp-trust-band { padding: 16px 0; }
  .breadcrumb { padding-top: 14px; }
  .breadcrumb ol { width: 100%; border-radius: 12px; }
  .cart-item { padding: 14px; gap: 12px; border-radius: 14px; }
  .faq-hero-aside { flex-wrap: wrap; }
  .faq-hero-stat { min-width: 92px; }
  .faq-hero-aside .btn { flex: 1; min-height: 56px; }
  .faq-page .faq-item summary { padding: 18px 4px; }
  .faq-page .faq-answer { padding: 0 38px 20px 42px; }
  .faq-help-card { padding: 20px; }
}

@media (max-width: 760px) {
  .cart-item {
    position: relative;
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-areas:
      "thumb info"
      "thumb price"
      "thumb qty";
    gap: 9px 12px;
    padding: 14px 48px 14px 14px;
  }
  .cart-info { width: 100%; }
  .cart-info h2, .cart-info h3 { font-size: 15.5px; }
  .cart-price, .cart-item-price { align-self: end; }
  .cart-qty-form { align-self: start; }
  .cart-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
  }
  .cart-remove .icon-btn { width: 32px; height: 32px; }
}

/* Narrow-screen header: keep the logo, account/cart and menu usable without overflow. */
@media (max-width: 480px) {
  .head-actions .lang-pop { display: none; }
}
@media (max-width: 379px) {
  .head-row { gap: 8px; }
  .head-actions { gap: 5px; min-width: 0; }
  .head-actions > .icon-btn,
  .head-actions .head-pop > .icon-btn,
  .head-actions .theme-toggle,
  .head-actions .cart-btn,
  .head-actions .menu-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }
  .head-actions .account-trigger { min-height: 34px; padding: 3px 7px 3px 3px; }
}
@media (max-width: 340px) {
  .brand-text { display: none; }
  .head-actions { gap: 4px; }
}

/* ---------- Home section rhythm -----------------------------------------
   Give every major section a real gap and a contained surface. This removes
   the edge-to-edge bands and the doubled borders at promo/tinted boundaries. */
.home-page {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
}
.home-page > .hp-section,
.home-page > .hp-process {
  width: min(1344px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(52px, 6vw, 76px) 0;
  border: 1px solid var(--line);
  border-radius: clamp(20px, 2.2vw, 30px);
  background: var(--surface-card);
  box-shadow: 0 22px 50px -46px rgba(13, 30, 65, .35);
}
.home-page > .hp-section.hp-tint {
  border-color: color-mix(in srgb, var(--blue) 12%, var(--line));
  background: color-mix(in srgb, var(--blue) 4%, var(--paper-soft));
}
.home-page > .hp-process {
  border-color: rgba(145, 180, 255, .18);
  background: #081120;
  color: #f4f7fc;
}
.home-page > .hp-trust-band {
  padding: 0;
  border: 0;
  background: transparent;
}
.home-page > .hp-promo {
  padding: 0;
  border: 0;
  background: transparent;
}
.home-page > .hp-promo .shell,
.home-page > .hp-cta .shell {
  width: min(1344px, calc(100% - 32px));
}
.home-page > .hp-cta {
  padding-top: clamp(8px, 1.5vw, 16px);
  border: 0;
  background: transparent;
}
@media (max-width: 640px) {
  .home-page { gap: 16px; }
  .home-page > .hp-section,
  .home-page > .hp-process {
    width: calc(100% - 16px);
    padding: 40px 0;
    border-radius: 20px;
  }
  .home-page > .hp-promo .shell,
  .home-page > .hp-cta .shell {
    width: calc(100% - 16px);
  }
}

/* Process steps must stay dark glass inside the dark process panel. */
.home-page > .hp-process .hp-step {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(145, 180, 255, .18);
  box-shadow: none;
}
.home-page > .hp-process .hp-step h3 { color: #fff; }
.home-page > .hp-process .hp-step p { color: rgba(232, 239, 250, .68); }
.home-page > .hp-process .hp-step-num { color: #8fb0ff; }
.home-page > .hp-process .hp-step-art {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(145, 180, 255, .18);
}

/* Flex children keep their natural height; only the section gap controls rhythm. */
.home-page > * { flex: none; }

/* The trust strip no longer overlaps the hero; it sits inside its own gap. */
.home-page > .hp-trust-band .hp-trust-wrap { margin: 0 auto; }

/* ---------- Guides, reviews, store, mast board and header fixes ---------- */

/* Home guides are separate cards, so the old editorial grid border is a stray line. */
.home-page .blog-grid-home {
  gap: 14px;
  border: 0;
}

/* Review identity: avatar, name/date and stars each get their own space. */
.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.review-top img {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.review-top > div {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.review-top strong {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-top small {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-top .stars {
  flex: none;
  display: inline-flex;
  gap: 2px;
  margin-left: auto;
}
@media (max-width: 380px) {
  .review-top { flex-wrap: wrap; row-gap: 10px; }
  .review-top > div { flex-basis: calc(100% - 54px); }
  .review-top .stars { margin-left: 54px; }
}

/* Hero proof stats: three equal columns at every phone width, with no orphaned row. */
@media (max-width: 640px) {
  .hp-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    max-width: none;
  }
  .hp-proof > div {
    min-width: 0;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-right: 1px solid var(--line);
  }
  .hp-proof > div:first-child {
    padding-left: 0;
  }
  .hp-proof > div:last-child {
    padding-right: 0;
    border-right: 0;
  }
  .hp-proof strong {
    font-size: clamp(17px, 5vw, 20px);
  }
  .hp-proof span {
    font-size: 8px;
    letter-spacing: .07em;
  }
}
@media (max-width: 360px) {
  .hp-proof > div { padding: 0 7px; }
  .hp-proof > div:first-child { padding-left: 0; }
  .hp-proof > div:last-child { padding-right: 0; }
}

/* Restore the store mast's intended dark surface and make its stat board one piece. */
.store-mast {
  background: #081120;
  border-bottom-color: rgba(255, 255, 255, .12);
}
.store-mast h1 { color: #fff; }
.store-mast p { color: rgba(235, 242, 252, .66); }
.store-mast-kicker { color: #8fb0ff; }
.store-mast-chips span { color: rgba(235, 242, 252, .66); }
.store-mast-board {
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
}
.store-mast-board > div,
.store-mast-board > div:first-child {
  padding: 15px 18px;
  border: 0;
  background: rgba(255, 255, 255, .035);
}
.store-mast-board > .store-mast-member {
  background: rgba(255, 255, 255, .02);
}
.store-mast-board strong { color: #fff; }
.store-mast-board span { color: rgba(235, 242, 252, .52); }
.store-mast-member { color: #8fb0ff; }

@media (max-width: 640px) {
  .store-mast-board > div,
  .store-mast-board > div:first-child {
    padding: 12px 14px;
  }
  .store-mast-board > .store-mast-member {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .store-mast-board > .store-mast-member strong {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 380px) {
  .store-mast-board {
    grid-template-columns: 1fr;
  }
}

/* Store rail: one clean card, flat category rows, integrated rating block. */
.store-cats {
  display: grid;
  gap: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.store-cat {
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
}
.store-cat.is-active {
  background: var(--blue);
  color: #fff;
}
.store-cat.is-active b { color: rgba(255, 255, 255, .7); }
.store-rail .store-rate {
  margin-top: 18px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

@media (max-width: 860px) {
  .store-rail {
    position: static;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-card);
  }
  .store-rail-head {
    padding: 0 0 10px;
    border-bottom: 1px solid var(--line);
  }
  .store-cats {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 2px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scrollbar-width: none;
  }
  .store-cats::-webkit-scrollbar { display: none; }
  .store-cat {
    flex: 0 0 auto;
    gap: 8px;
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper-soft);
    color: var(--ink-soft);
    white-space: nowrap;
  }
  .store-cat.is-active {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
  }
  .store-rail-note,
  .store-rail-links {
    display: none;
  }
  .store-rail .store-rate {
    display: block;
    margin-top: 14px;
    padding-top: 14px;
  }
  .store-rail .store-rate-head p { display: none; }
  .store-rail .store-rate-form {
    gap: 9px;
    margin-top: 10px;
  }
  .store-rail .store-rate-form textarea { display: none; }
  .store-rail .store-rate-form .btn {
    min-height: 36px;
    font-size: 11.5px;
  }
}

/* Header: never let the account pill shrink below its avatar + chevron. */
.head-actions .account-trigger {
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
}
.account-trigger > img,
.account-trigger > .icon {
  flex: none;
}
@media (max-width: 480px) {
  .head-row { gap: 8px; }
  .head-actions { gap: 4px; }
  .head-actions > .icon-btn,
  .head-actions .head-pop > .icon-btn,
  .head-actions .theme-toggle,
  .head-actions .cart-btn,
  .head-actions .menu-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }
}
@media (max-width: 420px) {
  .site-head .brand-text { display: none; }
}

/* ---------- Store toolbar and mobile list view ---------------------------- */

/* One coherent toolbar: search field, sort select and view switch. */
.store-tools {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-card);
  box-shadow: none;
}
.store-search {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 5px 0 12px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}
.store-search:focus-within {
  border-color: var(--blue);
  background: var(--surface-card);
  box-shadow: 0 0 0 3px var(--blue-wash);
}
.store-search .icon {
  flex: none;
  color: var(--muted);
}
.store-search input {
  height: 100%;
  font-size: 13px;
}
.store-search button {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 10.5px;
  letter-spacing: .06em;
  white-space: nowrap;
}
.store-sort {
  flex: 0 0 auto;
  gap: 7px;
}
.store-sort select {
  min-height: 40px;
  height: 40px;
  padding: 0 30px 0 11px;
  border-radius: 10px;
  background: var(--surface-card);
  font-size: 12px;
}
.store-view {
  flex: 0 0 auto;
  gap: 6px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.store-view .view-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
}
.store-view .view-btn:hover {
  background: var(--paper-soft);
  color: var(--ink);
}
.store-view .view-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.store-view .view-btn.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

@media (max-width: 640px) {
  .store-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
  }
  .store-search {
    grid-column: 1 / -1;
    width: 100%;
    height: 42px;
  }
  .store-sort {
    grid-column: 1;
    min-width: 0;
  }
  .store-sort select {
    width: 100%;
    min-height: 38px;
    height: 38px;
  }
  .store-view {
    grid-column: 2;
    gap: 6px;
    padding-left: 0;
    border-left: 0;
  }
  .store-view .view-btn {
    width: 38px;
    height: 38px;
  }
}

/* Phones get a genuine compact list row instead of another stacked card. */
@media (max-width: 720px) {
  .store-page .store-grid.is-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .store-page .store-grid.is-list .product-card {
    flex-direction: row;
    align-items: stretch;
  }
  .store-page .store-grid.is-list .product-media {
    width: 118px;
    min-width: 118px;
    aspect-ratio: auto;
    border-right: 1px solid var(--hair);
    border-bottom: 0;
  }
  .store-page .store-grid.is-list .product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .store-page .store-grid.is-list .product-body {
    min-width: 0;
    padding: 12px 13px;
  }
  .store-page .store-grid.is-list .product-body h3 {
    font-size: 14px;
    line-height: 1.3;
  }
  .store-page .store-grid.is-list .product-info {
    display: -webkit-box;
    margin: 4px 0 8px;
    overflow: hidden;
    font-size: 11.5px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .store-page .store-grid.is-list .product-foot {
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
  }
  .store-page .store-grid.is-list .product-foot .btn {
    min-height: 28px;
    padding: 4px 8px;
  }
}
@media (max-width: 360px) {
  .store-page .store-grid.is-list .product-media {
    width: 100px;
    min-width: 100px;
  }
  .store-page .store-grid.is-list .product-body { padding: 10px; }
  .store-page .store-grid.is-list .product-body h3 { font-size: 13.5px; }
}

/* ==========================================================================
   FINAL LAYOUT INTEGRITY PASS
   Shared rhythm, surfaces and sizing for the storefront and every account
   page. This layer is intentionally last so it can settle the older app.css
   and editorial.css rules that fought each other.
   ========================================================================== */

:root,
[data-theme="dark"] {
  --border: var(--line);
  --hair: var(--line-soft);
  --ns-card-radius: 18px;
  --ns-card-pad: clamp(22px, 2.4vw, 30px);
  --ns-page-top: clamp(28px, 3.4vw, 40px);
  --ns-page-bottom: clamp(64px, 7vw, 90px);
}

/* ---------- Page rhythm --------------------------------------------------- */

.section {
  padding-block: clamp(44px, 5.5vw, 72px);
}
.section-flush {
  padding-block: var(--ns-page-top) var(--ns-page-bottom);
}
.account-section {
  padding-block: var(--ns-page-top) var(--ns-page-bottom);
}
.auth-section {
  padding-block: clamp(36px, 5vw, 60px) var(--ns-page-bottom);
}
.page-head-row,
.page-hero-inner {
  gap: 24px;
}
.page-title-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}
.page-title-row h1 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.page-title-row .kicker {
  display: block;
  margin-bottom: 8px;
}
.page-title-row p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.page-layout,
.contact-grid {
  gap: clamp(30px, 4vw, 48px);
}
.cart-layout,
.checkout-layout,
.bank-layout {
  gap: clamp(24px, 3vw, 36px);
}
.page-side,
.summary-card,
.buy-box,
.detail-side,
.checkout-side,
.faq-side,
.store-rail {
  top: calc(var(--head-h) + 20px);
}

/* ---------- Controls and forms ------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
  border: 1px solid var(--line);
  background: var(--surface-card);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 16%, transparent);
}
/* The header is dark in both themes, so its search field must stay dark too. */
.site-head .head-search input,
.site-head .head-search input:hover,
.site-head .head-search input:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.field {
  min-width: 0;
  margin-bottom: 0;
}
.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .045em;
}
.field-grid {
  gap: 16px;
}
.field input,
.field select,
.field textarea {
  min-height: 50px;
  font-size: 14.5px;
}

/* ---------- Shared cards -------------------------------------------------- */

.panel,
.detail-card,
.summary-card,
.auth-card,
.account-card,
.order-card,
.license-card,
.download-card,
.bank-card,
.gateway-option,
.support-card,
.cart-item,
.checkout-card,
.order-summary,
.empty-state,
.page-head-card,
.order-item-card {
  border-color: var(--line);
  border-radius: var(--ns-card-radius);
}
.panel {
  padding: var(--ns-card-pad);
}
.panel-head h2,
.panel-head h3 {
  font-size: clamp(20px, 2vw, 23px);
  letter-spacing: -.035em;
}
.panel-head p {
  font-size: 14px;
  line-height: 1.65;
}
.panel-head-between {
  margin-bottom: 4px;
  padding-bottom: 14px;
}
.panel-head-between h2 {
  font-size: clamp(19px, 1.9vw, 22px);
}
.panel + .panel {
  margin-top: 18px;
}

/* ---------- Account navigation ------------------------------------------- */

.account-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  width: min(1280px, calc(100% - 64px));
  margin: 24px auto 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-card);
  box-shadow: 0 1px 2px rgba(13, 30, 65, .04);
  overflow-x: auto;
  scrollbar-width: none;
}
.account-nav::-webkit-scrollbar {
  display: none;
}
.account-nav a,
.account-nav button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-bottom: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: 600 13px var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s, color .16s;
}
.account-nav a:hover,
.account-nav button:hover {
  background: var(--surface-soft);
  color: var(--ink);
}
.account-nav a.is-active,
.account-nav .account-nav-link.is-active {
  border: 0;
  background: var(--blue);
  color: #fff;
  font-weight: 650;
  box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--blue) 65%, transparent);
}
.account-nav a.is-active:hover {
  background: var(--blue);
  color: #fff;
}
.account-nav form {
  margin: 0 0 0 auto;
}
.account-nav form button {
  color: var(--muted);
}

/* ---------- Account overview --------------------------------------------- */

.account-greeting {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(22px, 2.8vw, 32px);
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--surface-card) 0%, var(--surface-soft) 100%);
  box-shadow: 0 1px 2px rgba(13, 30, 65, .04);
}
.account-greeting > div {
  min-width: 0;
}
.account-greeting .account-avatar {
  width: 62px;
  height: 62px;
  flex: none;
  border: 0;
  filter: none;
  box-shadow: 0 0 0 4px var(--surface-card), 0 0 0 5px var(--line);
}
.account-greeting .kicker {
  font-size: 11px;
}
.account-greeting h1 {
  margin: 4px 0;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.account-greeting p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.account-head-actions {
  margin-left: auto;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 26px;
  border: 0;
}
.stat-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 0 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-card);
  box-shadow: 0 1px 2px rgba(13, 30, 65, .04);
}
.stat-card:first-child {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.stat-icon,
.stat-icon.stat-blue,
.stat-icon.stat-green,
.stat-icon.stat-yellow {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--blue-wash);
  color: var(--blue);
}
.stat-icon.stat-green {
  background: color-mix(in srgb, var(--green) 14%, var(--surface-card));
  color: var(--green);
}
.stat-icon.stat-yellow {
  background: color-mix(in srgb, #f4ad14 16%, var(--surface-card));
  color: #9a6800;
}
[data-theme="dark"] .stat-icon.stat-yellow {
  color: #f4c14f;
}
.stat-card strong {
  font-size: clamp(28px, 3vw, 36px);
}
.stat-card > span:last-child {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .07em;
}
.stat-card > .stat-icon {
  align-self: center;
  justify-self: start;
  place-items: center;
  flex: none;
  margin: 0;
  padding: 0;
  line-height: 0;
  overflow: visible;
}
.stat-card > .stat-icon > svg {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
}

.account-columns {
  gap: 20px;
  margin-bottom: 20px;
  align-items: stretch;
}
.account-columns > .panel + .panel {
  margin-top: 0;
}
.account-columns .panel {
  height: 100%;
  padding: clamp(20px, 2.2vw, 26px);
}
.account-columns-bottom .panel {
  display: flex;
  flex-direction: column;
}
.account-columns-bottom .panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.account-columns-bottom .panel p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.65;
}
.account-columns-bottom .panel .btn {
  margin-top: auto;
}

.order-table {
  border-top: 0;
}
.order-row {
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
}
.order-row:first-child {
  border-top: 0;
}
.order-row-main strong {
  overflow: visible;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.35;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
.order-row-main small {
  margin-top: 3px;
  font-size: 12px;
}
.order-row-amount {
  font-size: 15px;
}
.account-quick-licenses {
  border-top: 0;
}
.account-quick-license {
  gap: 12px;
  padding: 12px 0;
}
.account-quick-license:first-child {
  padding-top: 4px;
}
.account-quick-license:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.account-quick-license strong {
  overflow: visible;
  font-size: 13.5px;
  line-height: 1.4;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
.account-quick-license code {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.5;
  word-break: break-all;
}
.account-quick-license small {
  font-size: 12px;
}
.small-empty {
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- Profile ------------------------------------------------------- */

.account-narrow {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 880px;
}
.account-narrow > *,
.account-narrow > .page-title-row,
.account-narrow > .panel + .panel {
  margin: 0;
}
.form-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: var(--ns-card-pad);
}
.form-panel > h2 {
  margin: 0;
  padding: 0;
  font-size: clamp(21px, 2.2vw, 24px);
  letter-spacing: -.035em;
}
.form-panel .field,
.form-panel .field:last-of-type {
  margin-bottom: 0;
}
.form-panel .field label {
  margin-bottom: 8px;
  font-size: 13px;
}
.form-panel .btn {
  align-self: flex-start;
  margin-top: 4px;
}

/* ---------- Orders -------------------------------------------------------- */

.order-card-list {
  gap: 16px;
}
.order-item-card {
  padding: var(--ns-card-pad);
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: var(--ns-card-radius);
  background: var(--surface-card);
}
.order-item-top {
  gap: 16px;
}
.order-item-title h2 {
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.order-item-title small {
  margin-top: 4px;
  font-size: 12px;
}
.order-item-meta {
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-soft);
}
.order-item-meta span {
  font-size: 10.5px;
}
.order-item-meta strong {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
  text-overflow: clip;
  overflow: visible;
  overflow-wrap: anywhere;
}
.order-license-block {
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
}
.order-license-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-size: 11.5px;
}
.license-copy-row {
  padding: 10px 12px;
  border-radius: 10px;
}
.order-item-actions {
  gap: 8px;
  margin-top: 16px;
}
.order-item-actions .btn {
  min-height: 38px;
}

/* ---------- Licences ------------------------------------------------------ */

.license-grid {
  gap: 18px;
}
.license-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: var(--ns-card-radius);
  background: var(--surface-card);
  box-shadow: 0 1px 2px rgba(13, 30, 65, .04);
}
.license-top {
  align-items: flex-start;
  gap: 12px;
}
.license-icon {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--blue-wash);
  color: var(--blue);
}
.license-title h2,
.license-title h3 {
  overflow: visible;
  font-size: 17px;
  line-height: 1.35;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
.license-title small {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.5;
}
.license-key {
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}
.license-key code {
  overflow: visible;
  font-size: 12.5px;
  line-height: 1.55;
  white-space: normal;
  text-overflow: clip;
  word-break: break-all;
}
.license-key .copy-chip {
  flex: none;
}
.license-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  font-size: 12.5px;
}
.license-meta > div {
  display: block;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-soft);
}
.license-meta dt {
  font-size: 10.5px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.license-meta dd {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.license-actions {
  gap: 8px;
  margin-top: auto;
}
.license-count-chip {
  min-height: 38px;
  padding: 8px 14px;
  border-color: var(--line);
  border-radius: 999px;
  font-size: 12.5px;
}
.license-help {
  margin-top: 18px;
  padding: 20px;
}
.license-help h3 {
  margin: 0;
  font-size: 16px;
}
.license-help p {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
}

/* ---------- Downloads ----------------------------------------------------- */

.download-list {
  gap: 0;
}
.download-row {
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.download-row:first-child {
  padding-top: 0;
}
.download-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.download-row img {
  width: 110px;
  height: 74px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-soft);
}
.download-info strong {
  overflow: visible;
  font-size: 15px;
  line-height: 1.4;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
.download-info small {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.5;
}
.download-row .btn {
  flex: none;
  margin-left: auto;
}

/* ---------- Store --------------------------------------------------------- */

.store-browser {
  padding-bottom: var(--ns-page-bottom);
}
.store-browser-layout {
  grid-template-columns: 264px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  padding-top: var(--ns-page-top);
}
.store-rail {
  position: sticky;
  align-self: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-card);
  box-shadow: 0 1px 2px rgba(13, 30, 65, .04);
}
.store-rail-head {
  padding: 0 2px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: .1em;
}
.store-rail-head b {
  display: inline-grid;
  place-items: center;
  min-width: 27px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--blue);
  font: 650 11px/1 var(--font-body);
}
.store-cats {
  display: grid;
  gap: 3px;
  padding: 12px 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.store-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  font: 600 14.5px/1.35 var(--font-body);
  text-decoration: none;
  transition: background .16s, color .16s;
}
.store-cat span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.store-cat b {
  flex: none;
  min-width: 28px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font: 650 11.5px/1.35 var(--font-body);
  text-align: center;
}
.store-cat:hover {
  padding-left: 12px;
  background: var(--surface-soft);
  color: var(--ink);
}
.store-cat.is-active,
.store-cat.is-active:hover {
  background: var(--blue);
  color: #fff;
  font-weight: 650;
  box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--blue) 70%, transparent);
}
.store-cat.is-active b {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}
.store-rail-note {
  margin-top: 22px;
  padding: 18px;
  border: 0;
  border-top: 0;
  border-radius: 16px;
  background: var(--surface-soft);
}
.store-rail-note-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--blue-wash);
  color: var(--blue);
}
.store-rail-note h2 {
  margin: 0 0 5px;
  font-size: 16.5px;
  letter-spacing: -.025em;
}
.store-rail-note p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.65;
}
.store-rail-note .link-arrow {
  font-size: 12.5px;
}
.store-rail-links {
  gap: 10px;
  margin-top: 18px;
  padding: 14px 2px 0;
  border-top: 1px solid var(--line-soft);
}
.store-rail-links a {
  padding: 3px 0;
  color: var(--muted);
  font-size: 12.5px;
}
.store-rail .store-rate {
  margin-top: 20px;
  padding: 16px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-soft);
}
.store-rate-head p {
  font-size: 12px;
  line-height: 1.5;
}
.store-rate-score small {
  font-size: 9.5px;
}

/* ---------- Responsive ---------------------------------------------------- */

@media (max-width: 1024px) {
  .account-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .license-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .account-nav {
    width: calc(100% - 40px);
    margin-top: 18px;
    padding: 6px;
    gap: 3px;
  }
  .account-nav a,
  .account-nav button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12.5px;
  }
  .account-nav form {
    margin-left: 0;
  }
  .account-greeting {
    flex-wrap: wrap;
    gap: 16px;
  }
  .account-head-actions {
    width: 100%;
    margin-left: 0;
  }
  .account-head-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .account-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .store-browser-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 24px;
  }
  .store-rail {
    position: static;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .store-rail-head {
    padding: 0 0 12px;
  }
  .store-cats {
    display: flex;
    gap: 8px;
    padding: 12px 0 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .store-cats::-webkit-scrollbar {
    display: none;
  }
  .store-cat {
    flex: 0 0 auto;
    width: auto;
    min-height: 40px;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-card);
    font-size: 13.5px;
    white-space: nowrap;
  }
  .store-cat:hover {
    padding-left: 13px;
    background: var(--surface-card);
    color: var(--ink);
  }
  .store-cat.is-active,
  .store-cat.is-active:hover {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
  }
  .store-rail-note,
  .store-rail-links {
    display: none;
  }
  .store-rail .store-rate {
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
  }
}

@media (max-width: 760px) {
  .field-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .page-title-row {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
  }
  .page-title-row > .btn,
  .page-title-row > .license-count-chip {
    flex: none;
  }
  .order-item-meta {
    grid-template-columns: 1fr 1fr;
  }
  .order-item-meta div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .account-nav {
    width: calc(100% - 32px);
    padding: 5px;
    border-radius: 14px;
  }
  .account-nav a,
  .account-nav button {
    min-height: 38px;
    padding: 0 11px;
    gap: 6px;
    font-size: 12px;
  }
  .account-greeting {
    padding: 20px;
    border-radius: 18px;
  }
  .account-greeting .account-avatar {
    width: 54px;
    height: 54px;
  }
  .account-greeting h1 {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
  }
  .account-stats {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 14px 0 20px;
  }
  .stat-card {
    padding: 18px;
  }
  .stat-card:first-child {
    padding-left: 18px;
  }
  .account-columns {
    gap: 14px;
  }
  .account-columns .panel,
  .panel {
    padding: 20px;
  }
  .form-panel {
    gap: 16px;
    padding: 20px;
  }
  .form-panel .btn {
    width: 100%;
    justify-content: center;
  }
  .order-item-card {
    padding: 20px;
  }
  .order-item-meta {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 13px 14px;
  }
  .order-item-meta div:last-child {
    grid-column: auto;
  }
  .order-item-actions .btn {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
  .license-card {
    padding: 20px;
  }
  .license-meta {
    grid-template-columns: 1fr;
  }
  .download-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }
  .download-row img {
    width: 84px;
    height: 60px;
  }
  .download-row .btn {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
  .store-browser {
    padding-bottom: 60px;
  }
  .store-browser-layout {
    gap: 16px;
    padding-top: 20px;
  }
  .store-rail {
    padding: 14px;
  }
  .store-cat {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }
  .store-cat:hover {
    padding-left: 12px;
  }
}

@media (max-width: 420px) {
  .account-stats {
    grid-template-columns: 1fr;
  }
  .stat-card {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 16px;
  }
  .stat-card:first-child {
    padding-left: 16px;
  }
  .stat-icon,
  .stat-icon.stat-blue,
  .stat-icon.stat-green,
  .stat-icon.stat-yellow {
    width: 38px;
    height: 38px;
  }
  .order-item-actions .btn {
    flex-basis: 100%;
  }
}

/* ---------- Phone profile and hero clearance ------------------------------ */

.account-narrow {
  min-width: 0;
  align-items: stretch;
}
.account-narrow > .form-panel {
  width: 100%;
  min-width: 0;
}
.form-panel,
.form-panel .field,
.form-panel .field-grid,
.form-panel .field-grid > *,
.form-panel .ns-select {
  min-width: 0;
}
.form-panel input,
.form-panel select,
.form-panel textarea {
  max-width: 100%;
}
.form-panel .field select {
  padding-right: 42px;
  text-overflow: ellipsis;
}

@media (max-width: 760px) {
  .hero-carousel {
    padding-block: 72px 48px;
  }
  .account-narrow .page-title-row {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  /* Two columns keep every account tab and its icon visible without a
     hidden horizontal scroll area clipping the last item. */
  .account-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
    overflow: visible;
  }
  .account-nav a,
  .account-nav button {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    justify-content: flex-start;
    border-radius: 9px;
    font-size: 12.5px;
    line-height: 1.25;
    white-space: normal;
  }
  .account-nav .icon {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
  }
  .account-nav form {
    display: flex;
    grid-column: 1 / -1;
    margin: 0;
  }
  .account-nav form button {
    justify-content: center;
  }

  .hero-carousel {
    padding-block: 64px 44px;
  }
  .account-narrow .page-title-row {
    gap: 10px;
    margin-bottom: 20px;
  }
  .account-narrow .page-title-row h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }
  .account-narrow .page-title-row p {
    font-size: 14px;
  }
  .form-panel {
    gap: 16px;
  }
  .form-panel .field input,
  .form-panel .field select,
  .form-panel .field textarea {
    min-height: 50px;
    font-size: 16px;
  }
  .form-panel .ns-select-trigger {
    min-height: 50px;
    padding-right: 42px;
    font-size: 16px;
  }
  .form-panel .ns-select-caret {
    right: 15px;
  }
  .form-panel .btn {
    min-height: 46px;
    white-space: normal;
  }
}

/* ---------- Final layout guards ------------------------------------------ */

/* Grid and flex children may not shrink below their intrinsic content width
   unless explicitly allowed. This prevents long titles, emails, prices and
   product rows from pushing their card past the page edge. */
.page-layout > *,
.contact-grid > *,
.product-hero > *,
.cart-layout > *,
.checkout-layout > *,
.store-browser-layout > *,
.account-columns > *,
.account-stats > *,
.hp-cat-grid > *,
.hp-product-grid > *,
.hp-promo-grid > *,
.blog-grid > *,
.blog-grid-home > *,
.field-grid > * {
  min-width: 0;
}

@media (max-width: 640px) {
  /* Keep action labels inside their buttons at narrow widths. */
  .btn {
    white-space: normal;
    line-height: 1.25;
  }
}

/* ==========================================================================
   Account pages — final redesign
   One rhythm for the overview and every account sub-page: a clear page head,
   linked summary cards, self-contained order/licence cards, and forms that
   keep their labels and controls together.
   ========================================================================== */

.account-section {
  padding-top: clamp(24px, 3vw, 36px);
}
.account-page-head {
  align-items: flex-end;
  margin-bottom: clamp(22px, 2.6vw, 30px);
}
.account-page-head > div {
  min-width: 0;
}
.account-page-head h1 {
  margin: 0;
  line-height: 1.02;
}
.account-page-head p {
  max-width: 720px;
}

/* Linked summary cards ------------------------------------------------ */

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
  border: 0;
}
.stat-card,
.stat-card:first-child {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  min-height: 112px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-card);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(13, 30, 65, .04);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--blue) 38%, var(--line));
  box-shadow: 0 12px 26px -20px rgba(13, 30, 65, .48);
}
.stat-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.stat-icon,
.stat-icon.stat-blue,
.stat-icon.stat-green,
.stat-icon.stat-yellow {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  line-height: 0;
  overflow: visible;
}
.stat-card > .stat-icon > svg {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
}
.stat-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.stat-card strong {
  display: block;
  margin: 0;
  color: var(--ink);
  font: 700 clamp(28px, 2.8vw, 34px)/.95 var(--font-heading);
  letter-spacing: -.05em;
}
.stat-label {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: .09em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

/* Account panels ------------------------------------------------------ */

.account-columns {
  gap: 20px;
  margin-bottom: 20px;
  align-items: stretch;
}
.account-columns > .panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.account-columns .panel-head-between {
  margin-bottom: 10px;
}
.account-columns .panel-head-between h2 {
  font-size: clamp(19px, 1.9vw, 22px);
}
.account-columns-bottom .panel {
  height: 100%;
}

/* Orders -------------------------------------------------------------- */

.order-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.order-item-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-card);
  box-shadow: 0 1px 2px rgba(13, 30, 65, .04);
}
.order-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.order-item-title {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.order-item-title > div {
  min-width: 0;
}
.order-item-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  line-height: 0;
}
.order-item-title h2 {
  margin: 0;
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.order-item-title small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.order-item-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding: 15px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-soft);
}
.order-item-meta > div {
  min-width: 0;
}
.order-item-meta span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.order-item-meta strong {
  display: block;
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.order-license-block {
  margin-top: 16px;
}
.license-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}
.license-copy-row + .license-copy-row {
  margin-top: 8px;
}
.license-copy-row code {
  min-width: 0;
  color: var(--ink-soft);
  font: 500 12.5px/1.5 ui-monospace, monospace;
  white-space: normal;
  overflow-wrap: anywhere;
}
.order-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.order-item-actions .btn {
  min-height: 40px;
}

/* Licences ------------------------------------------------------------ */

.account-license-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.license-card {
  gap: 16px;
  min-width: 0;
  height: 100%;
  padding: clamp(20px, 2.2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-card);
}
.license-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.license-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  line-height: 0;
}
.license-title {
  flex: 1;
  min-width: 0;
}
.license-title h2,
.license-title h3 {
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.license-title small {
  display: block;
  line-height: 1.5;
}
.license-card .status-pill {
  flex: none;
}
.license-key {
  min-width: 0;
  margin: 0;
}
.license-key code {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.license-key .copy-chip {
  flex: none;
}
.license-meta {
  margin: 0;
}
.license-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

/* Downloads ----------------------------------------------------------- */

.download-panel {
  padding: 6px clamp(16px, 2vw, 24px);
}
.download-list {
  display: flex;
  flex-direction: column;
}
.download-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.download-row:first-child {
  padding-top: 18px;
}
.download-row:last-child {
  padding-bottom: 18px;
  border-bottom: 0;
}
.download-row img {
  width: 110px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}
.download-info {
  min-width: 0;
}
.download-info strong {
  display: block;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.download-info small {
  display: block;
  margin-top: 5px;
  line-height: 1.5;
}
.download-row .btn {
  flex: none;
  margin-left: 0;
  white-space: nowrap;
}

/* Profile ------------------------------------------------------------- */

.account-narrow {
  width: 100%;
  max-width: 1080px;
}
.profile-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.profile-columns .form-panel {
  height: 100%;
  min-width: 0;
  padding: clamp(22px, 2.4vw, 28px);
}
.profile-columns .form-panel > h2 {
  font-size: clamp(20px, 2vw, 23px);
}

/* Account responsive -------------------------------------------------- */

@media (max-width: 1024px) {
  .account-license-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .account-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-stats .stat-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .profile-columns {
    grid-template-columns: 1fr;
  }
  .order-item-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .order-item-meta > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .account-page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .account-page-head > .btn,
  .account-page-head > .license-count-chip {
    flex: none;
  }
  .download-row {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
  }
  .download-row img {
    width: 92px;
    height: 64px;
  }
  .download-row .btn {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .account-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .account-stats .stat-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
  .stat-card,
  .stat-card:first-child {
    min-height: 96px;
    gap: 14px;
    padding: 16px;
  }
  .stat-icon,
  .stat-icon.stat-blue,
  .stat-icon.stat-green,
  .stat-icon.stat-yellow {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .order-item-card,
  .license-card {
    padding: 18px;
  }
  .order-item-top {
    align-items: flex-start;
    gap: 12px;
  }
  .order-item-title {
    align-items: flex-start;
    gap: 12px;
  }
  .order-item-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }
  .order-item-meta {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }
  .order-item-meta > div:last-child {
    grid-column: auto;
  }
  .order-item-actions {
    padding-top: 14px;
  }
  .order-item-actions .btn {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }
  .download-panel {
    padding: 4px 16px;
  }
  .download-row {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
  }
  .download-row img {
    width: 80px;
    height: 58px;
  }
  .profile-columns {
    gap: 14px;
  }
  /* Five tabs plus profile and logout now fill the two-column phone grid
     evenly instead of leaving an empty half-row. */
  .account-nav form {
    grid-column: auto;
    margin: 0;
  }
  .account-nav form button {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Support tickets and store rating pages
   ========================================================================== */

.support-section,
.rating-section {
  padding-top: clamp(24px, 3vw, 36px);
}
.support-hero p,
.rating-hero p {
  max-width: 680px;
}
.support-layout,
.rating-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
.support-main,
.rating-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.support-main > .panel + .panel,
.rating-main > .panel + .panel {
  margin-top: 0;
}
.support-side,
.rating-side {
  position: sticky;
  top: calc(var(--head-h) + 20px);
}
.support-side .panel + .panel,
.rating-side .panel + .panel {
  margin-top: 0;
}
.support-side-card h2,
.rating-summary-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -.025em;
}
.support-side-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.support-panel-icon,
.rating-form-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--blue-wash);
  color: var(--blue);
}
.support-guest h2 {
  margin: 0 0 10px;
  font-size: clamp(23px, 2.4vw, 29px);
  letter-spacing: -.035em;
}
.support-guest p {
  max-width: 620px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.support-guest .support-small {
  margin: 18px 0 0;
  font-size: 12px;
}
.support-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.support-small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.support-email {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.support-new .panel-head-between {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.support-new .panel-head-between > .support-small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-top: 4px;
}
.support-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.support-form textarea,
.ticket-reply textarea {
  width: 100%;
  resize: vertical;
}
.support-ticket-list-panel .panel-head-between {
  align-items: baseline;
}
.ticket-list {
  display: grid;
  margin-top: 4px;
}
.ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  text-decoration: none;
  transition: background .15s ease;
}
.ticket-row:last-child {
  border-bottom: 0;
}
.ticket-row:hover {
  background: var(--bg-tint);
}
.ticket-row-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.ticket-row-main strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.ticket-row-main small {
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: .015em;
}
.ticket-unread {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-wash);
  flex: none;
}
.ticket-row-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--muted);
}
.ticket-row-meta .status-pill {
  font-size: 9px;
  padding: 4px 8px;
}
.account-nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.support-thread-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.support-thread-head h2 {
  margin: 9px 0 0;
  font-size: clamp(21px, 2.2vw, 27px);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.support-thread-head .link-arrow {
  flex: none;
  padding-top: 3px;
}
.ticket-thread {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.ticket-message {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}
.ticket-message.is-staff {
  border-color: color-mix(in srgb, var(--blue) 25%, var(--line));
  background: var(--blue-wash);
}
.ticket-message header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}
.ticket-message header strong {
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.ticket-message header time {
  color: var(--muted);
  font-size: 10.5px;
  flex: none;
}
.ticket-message-body {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.ticket-reply {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.ticket-reply .btn {
  justify-self: start;
}
.ticket-close-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.support-closed-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12.5px;
}
.rating-form-panel .panel-head-between {
  align-items: flex-start;
}
.rating-form-panel .panel-head-between p {
  margin: 5px 0 0;
  max-width: 560px;
}
.rating-form-panel .rating-form-icon {
  margin: 0;
  flex: none;
}
.rating-form {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}
.rating-star-field legend {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .045em;
}
.rating-star-field .rate-stars {
  justify-content: flex-start;
  gap: 5px;
  margin-top: 8px;
}
.rating-star-field .rate-stars label svg {
  width: 30px;
  height: 30px;
}
.rating-star-help {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.field-optional {
  color: var(--muted);
  font-weight: 400;
}
.rating-done h2 {
  margin: 0 0 10px;
  font-size: clamp(23px, 2.4vw, 29px);
  letter-spacing: -.035em;
}
.rating-done p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.rating-done-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--green-wash);
  color: var(--green);
}
.rating-done p.rating-done-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}
.rating-quote {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--blue);
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}
.rating-done .support-small {
  margin-top: 18px;
}
.rating-summary-card {
  display: grid;
  justify-items: start;
  gap: 8px;
}
.rating-summary-card .eyebrow {
  margin: 0;
}
.rating-big {
  color: var(--ink);
  font: 700 clamp(44px, 5vw, 58px)/1 var(--font-heading);
  letter-spacing: -.06em;
}
.rating-big-stars {
  display: flex;
  gap: 2px;
}
.rating-summary-card p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}
.store-rate-copy {
  margin: 12px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.review-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 960px) {
  .support-layout,
  .rating-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .support-side,
  .rating-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .ticket-row {
    align-items: flex-start;
    gap: 10px;
  }
  .ticket-row-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding-top: 2px;
  }
  .ticket-row-meta > .icon {
    display: none;
  }
  .support-thread-head {
    flex-direction: column-reverse;
    gap: 12px;
  }
  .ticket-message header {
    flex-direction: column;
    gap: 3px;
  }
  .support-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
