:root {
  --bg: #0b1522;
  --bg-elevated: #132236;
  --panel: #16263a;
  --panel-strong: #1c2d43;
  --line: rgba(165, 188, 214, 0.14);
  --text: #eef5ff;
  --muted: #b8c7da;
  --soft: #8ca3be;
  --accent: #b4edf2;
  --accent-strong: #85dbe4;
  --shadow: rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  overflow-y: scroll;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(48, 85, 130, 0.18), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(93, 174, 196, 0.14), transparent 24%),
    linear-gradient(180deg, #08111d 0%, #0b1522 38%, #0f1d30 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button, input, select, textarea { font: inherit; }

.page-shell { width: min(1220px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 52px; }
.site-header, .site-footer, .product-grid, .service-panel, .faq-list { width: 100%; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 4px 0 20px;
}

.brand-lockup { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line); font-weight: 800; font-size: 1.65rem;
}
.brand-name { font-size: 1.4rem; font-weight: 800; }
.brand-tag { color: var(--muted); max-width: 500px; line-height: 1.35; font-size: 0.98rem; }

.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.site-nav a { color: var(--muted); font-weight: 650; }
.site-nav a:hover { color: var(--text); }

.eyebrow { color: var(--soft); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.subtle-eyebrow { margin-top: 24px; }
h1, h2, h3, p { margin: 0; }
h1, .page-title { font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.45rem, 5.2vw, 4.15rem); line-height: 0.98; }
h2 { font-size: clamp(1.55rem, 2.2vw, 2.1rem); line-height: 1.08; }
h3 { font-size: 1.2rem; line-height: 1.2; }
p { color: var(--muted); line-height: 1.7; }

.hero, .section-block, .product-detail-layout { margin-bottom: 24px; }
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; align-items: stretch;
}
.hero-copy, .hero-card, .content-panel, .product-card, .product-detail-copy, .product-detail-media, .editorial-card, .quality-panel, .category-card, .trust-card {
  background: linear-gradient(180deg, rgba(24, 38, 58, 0.98), rgba(19, 34, 54, 0.98));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 42px var(--shadow);
}
.hero-copy, .product-detail-copy, .content-panel, .editorial-card, .quality-panel, .category-card, .trust-card { padding: 24px; }
.hero-copy { padding: 18px; }
.hero-copy > p { margin-top: 8px; font-size: 0.91rem; max-width: 42rem; }
.hero-copy h1 { font-size: clamp(1.7rem, 3.65vw, 2.85rem); max-width: 8.1ch; line-height: 0.92; }
.hero-card { overflow: hidden; padding: 16px; }
.hero-card img { border-radius: 18px; aspect-ratio: 1 / 1; object-fit: cover; }
.hero-card-text { padding: 14px 4px 4px; }
.hero-card-name { font-weight: 800; font-size: 1.25rem; margin-top: 4px; }
.hero-card-price { color: var(--accent); font-weight: 700; margin-top: 6px; }

.hero-proof-grid, .product-spec-grid, .quality-grid, .page-link-grid, .payment-grid, .editorial-grid, .catalog-controls, .form-grid {
  display: grid; gap: 18px;
}
.hero-proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
.hero-proof-card {
  padding: 11px 13px; border-radius: 18px; background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  display: grid; gap: 8px;
}
.hero-proof-card strong { font-size: 0.94rem; }
.hero-proof-card span { color: var(--muted); line-height: 1.38; font-size: 0.9rem; }

.hero-actions, .card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font-weight: 800;
}
.button-primary { background: var(--accent); color: #0a1621; box-shadow: 0 10px 24px rgba(180, 237, 242, 0.14); }
.button-secondary { background: rgba(255,255,255,0.02); color: var(--text); border-color: var(--line); }
.button-small { min-height: 42px; padding: 0 16px; font-size: 0.95rem; }

.brand-marquee {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px;
}
.brand-marquee > div {
  padding: 12px 14px; border-radius: 999px; text-align: center;
  border: 1px solid var(--line); background: rgba(255,255,255,0.025); color: var(--muted); font-weight: 650; font-size: 0.94rem;
}

.trust-strip, .product-grid, .quality-grid, .category-grid, .page-link-grid, .payment-grid { display: grid; gap: 18px; }
.trust-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quality-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-grid, .page-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.product-card { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.product-media img, .product-detail-media img { border-radius: 18px; aspect-ratio: 4 / 3; object-fit: cover; }
.product-body { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product-meta, .detail-points, .faq-topic-list, .selected-interest-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--muted); font-size: 0.9rem; font-weight: 700;
}
.pill-soft { background: rgba(255,255,255,0.01); }
.product-headline-row { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.product-headline-row h3 { flex: 1; }
.price, .detail-price { color: var(--accent); font-weight: 800; white-space: nowrap; }
.product-description, .product-detail, .detail-lead, .detail-body { color: var(--muted); }
.card-actions { margin-top: auto; }

.product-media-toggle { border: 0; background: transparent; padding: 0; width: 100%; cursor: pointer; position: relative; }
.product-media-toggle-badge {
  position: absolute; right: 14px; bottom: 14px; background: rgba(11, 21, 34, 0.72); color: var(--text);
  padding: 8px 10px; border-radius: 999px; font-size: 0.82rem; border: 1px solid var(--line);
}

.product-detail-layout { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 20px; align-items: start; }
.product-detail-media { padding: 16px; }
.product-media-caption { margin-top: 12px; color: var(--muted); }
.detail-lead { margin-top: 16px; font-size: 1.03rem; }
.detail-body { margin-top: 14px; }
.detail-points { margin-top: 18px; }

.page-hero { padding-top: 8px; }
.section-heading { display: grid; gap: 8px; margin-bottom: 16px; }
.section-heading-split { grid-template-columns: 1fr minmax(280px, 480px); align-items: end; gap: 22px; }
.section-note { color: var(--muted); font-size: 0.98rem; line-height: 1.55; max-width: 34rem; }

.service-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service-panel-single { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-panel-highlight { align-items: start; }
.service-list { display: grid; gap: 12px; padding-left: 20px; color: var(--muted); line-height: 1.6; }
.home-peptides-panel h2 { font-size: clamp(2rem, 3.1vw, 2.7rem); line-height: 0.98; max-width: 12ch; }
.home-peptides-panel p { color: #d5deeb; font-size: 1.02rem; line-height: 1.58; max-width: 44rem; }
.home-peptides-list { gap: 18px; padding-left: 26px; }
.home-peptides-list li { color: #e3ebf7; font-size: 1rem; line-height: 1.5; }
.home-peptides-list li::marker { color: var(--soft); }
.compact-list { gap: 10px; }

.catalog-controls { grid-template-columns: 2fr 1fr 1fr; }
.field-block { display: grid; gap: 10px; }
.field-block span { font-weight: 700; color: var(--text); }
input, select, textarea {
  width: 100%; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.04);
  color: var(--text); padding: 14px 16px;
}
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--soft); }
.catalog-results-line, .form-status { color: var(--muted); }
.form-status.success { color: var(--accent); }
.form-status.error { color: #ffb7b7; }
.form-panel { display: grid; gap: 18px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.summary-row, .cart-line-item { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.summary-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-list { display: grid; gap: 14px; }
.cart-line-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line-copy { display: grid; gap: 6px; }
.cart-line-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.faq-section { display: grid; gap: 14px; }
.faq-entry-list { display: grid; gap: 12px; }
.faq-entry {
  border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; background: rgba(255,255,255,0.02);
}
.faq-entry summary { cursor: pointer; font-weight: 750; color: var(--text); }
.faq-entry p { margin-top: 12px; }

.page-link-card { display: grid; gap: 8px; padding: 22px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(24,38,58,.98), rgba(19,34,54,.98)); box-shadow: 0 18px 42px var(--shadow); }
.page-link-card span { color: var(--soft); font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.page-link-card strong { font-size: 1.1rem; line-height: 1.4; }

.payment-grid-single { grid-template-columns: minmax(0, 640px); justify-content: center; }
.payment-card-featured { padding: 30px; text-align: center; }
.payment-image { max-width: 250px; margin: 16px auto 0; border-radius: 24px; box-shadow: 0 16px 36px rgba(0,0,0,0.26); }

.site-footer {
  margin-top: 40px; padding: 24px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15,27,43,.98), rgba(11,21,34,.98));
  display: grid; gap: 18px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 0.95rem; }
.footer-contact-line { color: var(--soft); font-size: 0.95rem; }

.site-toast {
  position: fixed; right: 18px; bottom: 18px; background: #d7f4f6; color: #06111a; padding: 12px 16px;
  border-radius: 14px; box-shadow: 0 12px 28px rgba(0,0,0,0.28); opacity: 0; transform: translateY(8px); transition: all 0.18s ease;
}
.site-toast.is-visible { opacity: 1; transform: translateY(0); }

.product-spotlight[hidden] { display: none; }
.product-spotlight { position: fixed; inset: 0; z-index: 50; }
.product-spotlight-backdrop { position: absolute; inset: 0; background: rgba(4, 8, 14, 0.72); backdrop-filter: blur(4px); }
.product-spotlight-panel {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(380px, calc(100% - 24px)); background: linear-gradient(180deg, rgba(24,38,58,.99), rgba(19,34,54,.99));
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.42);
}
.product-spotlight-media { padding: 14px 14px 0; }
.product-spotlight-media img { border-radius: 18px; aspect-ratio: 4 / 3; object-fit: cover; }
.product-spotlight-copy { padding: 18px; }
.product-spotlight-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(11,21,34,0.84); color: var(--text); cursor: pointer;
}
.spotlight-open .product-grid .product-card { opacity: 0.38; transform: scale(0.98); }
.spotlight-open .product-grid .product-card.product-card-active { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero, .product-detail-layout, .section-heading-split, .service-panel, .service-panel-single, .product-spec-grid, .quality-grid, .trust-strip, .catalog-controls, .form-grid, .product-grid, .category-grid, .page-link-grid, .hero-proof-grid {
    grid-template-columns: 1fr;
  }
  .site-header { flex-direction: column; align-items: flex-start; }
  .site-nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 20px, 1220px); padding-bottom: 42px; }
  .hero-copy, .content-panel, .editorial-card, .quality-panel, .category-card, .trust-card, .product-detail-copy { padding: 22px; }
  .button { width: 100%; }
  .hero-actions, .card-actions, .form-actions { flex-direction: column; align-items: stretch; }
  .product-headline-row, .summary-row, .cart-line-item { flex-direction: column; align-items: flex-start; }
  .brand-marquee { grid-template-columns: 1fr; }
}

.brand-link { min-width: 0; }
.brand-lockup > div { min-width: 0; }
.brand-mark {
  position: relative;
  overflow: hidden;
}
.brand-mark-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 32%, rgba(180, 237, 242, 0.16), transparent 22%),
    radial-gradient(circle at 68% 26%, rgba(255, 255, 255, 0.14), transparent 14%),
    linear-gradient(180deg, rgba(17, 32, 49, 0.98), rgba(10, 20, 33, 0.98));
}
.brand-mark-star {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: 14px;
  left: 21px;
  background: #f4fbff;
  box-shadow: 0 0 14px rgba(180, 237, 242, 0.78);
}
.brand-mark-trail {
  position: absolute;
  width: 22px;
  height: 1px;
  top: 18px;
  left: 12px;
  transform: rotate(-18deg);
  background: linear-gradient(90deg, transparent, rgba(180, 237, 242, 0.9));
}
.brand-mark-word {
  position: relative;
  z-index: 1;
}

.site-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.site-nav {
  align-items: center;
  gap: 12px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(180, 237, 242, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  line-height: 1;
  font-size: 0.98rem;
  font-weight: 750;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.site-nav a:hover {
  color: var(--text);
  border-color: rgba(180, 237, 242, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav-cta {
  padding: 0 18px !important;
}

.language-app {
  display: inline-flex;
  justify-content: flex-end;
  opacity: 0.66;
}

.language-field {
  display: grid;
  gap: 3px;
  min-width: 104px;
}

.language-field span {
  color: var(--soft);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  display: none;
}

.language-field select {
  min-height: 34px;
  padding: 4px 9px;
  font-size: 0.84rem;
  border-radius: 11px;
}

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

.assistant-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #09131d;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
  font-size: 1rem;
}

.site-footer-main {
  display: grid;
  gap: 8px;
}

.section-heading-reading {
  align-items: start;
}

.direct-pay-overview-grid,
.product-spec-grid,
.custom-hero-grid,
.contact-direct-grid,
.ordering-grid,
.payment-order-summary-grid,
.purchase-fact-grid,
.quality-report-grid,
.catalog-category-grid {
  display: grid;
  gap: 18px;
}

.direct-pay-overview-grid,
.custom-hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.payment-card,
.catalog-controls-panel,
.notice-panel,
.support-panel,
.selected-interest-panel,
.ordering-card,
.purchase-fact-card,
.catalog-category-card,
.quality-report-card,
.assistant-message {
  background: linear-gradient(180deg, rgba(24, 38, 58, 0.98), rgba(19, 34, 54, 0.98));
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px var(--shadow);
}

.payment-card-home {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.home-direct-pay-stage {
  padding: 24px;
}

.home-direct-pay-stage-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 24px;
  align-items: start;
}

.home-direct-pay-copy,
.home-direct-pay-visual {
  display: grid;
  gap: 12px;
}

.home-direct-pay-visual {
  justify-items: center;
  text-align: center;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.payment-handle {
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
}

.home-category-section .hero-actions,
.catalog-controls-panel .hero-actions,
.payment-quick-path .hero-actions {
  margin-top: 18px;
}

.category-card-link,
.catalog-category-link {
  overflow: hidden;
  text-decoration: none;
}

.category-card-link h3,
.catalog-category-copy .eyebrow {
  margin-top: 12px;
}

.category-card-image,
.catalog-category-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
}

.category-card-linkline {
  margin-top: 10px;
  color: var(--accent);
  font-weight: 700;
}

.documentation-panel {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.documentation-panel > div,
.documentation-panel > ul {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}

.quality-report-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: start;
  gap: 14px;
}

.quality-report-card {
  padding: 10px 8px 12px;
  border-radius: 18px;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.quality-report-thumb-wrap {
  position: relative;
  overflow: hidden;
  width: min(100%, 60px);
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.quality-report-thumb {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: blur(0.95px) saturate(0.95);
  transform: none;
}

.quality-report-overlay {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(8, 17, 29, 0.82);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.quality-report-card h3 {
  max-width: 12ch;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
}

.catalog-controls-panel {
  border-radius: 24px;
  padding: 22px;
}

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

.catalog-category-card {
  border-radius: 24px;
  overflow: hidden;
}

.catalog-category-copy {
  padding: 18px;
  display: grid;
  gap: 8px;
}

.payment-stage-primary {
  display: grid;
  gap: 22px;
}

.payment-stage-card {
  padding: 24px;
  display: grid;
  gap: 24px;
}

.payment-stage-header {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 22px;
  align-items: end;
}

.payment-stage-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 24px;
  align-items: start;
}

.payment-stage-visual,
.payment-stage-side {
  display: grid;
  gap: 18px;
}

.payment-stage-visual {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}

.payment-card-copy {
  display: grid;
  gap: 8px;
  text-align: center;
}

.payment-card-copy p {
  max-width: 34rem;
  margin-inline: auto;
}

.payment-visual-shell {
  display: flex;
  justify-content: center;
}

.payment-selection-note {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(180, 237, 242, 0.08);
  border: 1px solid rgba(180, 237, 242, 0.18);
  color: var(--accent);
}

.payment-order-summary {
  display: grid;
  gap: 12px;
  text-align: left;
}

.payment-order-summary-wide {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}

.payment-order-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-proof-card {
  margin-top: 2px;
}

.payment-quick-path {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}

.payment-quick-path h2 {
  font-size: clamp(1.08rem, 1.45vw, 1.4rem);
  line-height: 1.04;
}

.payment-action-list {
  display: grid;
  gap: 8px;
}

.payment-action-item {
  padding: 10px 13px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.92rem;
}

.payment-stage-header .section-note,
.page-hero .section-note {
  max-width: 24rem;
}

.assistant-layout {
  margin-top: -6px;
}

.assistant-layout-tight {
  margin-top: -6px;
}

.assistant-app {
  display: grid;
  gap: 10px;
}

.assistant-guide-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}

.assistant-guide-copy {
  display: grid;
  gap: 4px;
}

.assistant-guide-copy p {
  max-width: 520px;
  font-size: 0.86rem;
  line-height: 1.34;
}

.assistant-guide-copy h2 {
  font-size: 0.96rem;
  line-height: 1.02;
}

.assistant-guide-actions {
  display: flex;
  align-items: center;
}

.assistant-app-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.assistant-page-title {
  font-size: clamp(1.58rem, 2.9vw, 2.15rem);
  line-height: 0.96;
}

.assistant-app-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.assistant-status,
.assistant-vision-badge {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.assistant-vision-badge.is-ready {
  color: var(--accent);
  border-color: rgba(180, 237, 242, 0.25);
}

.assistant-vision-badge.is-offline {
  color: var(--soft);
}

.assistant-controls {
  display: grid;
  gap: 8px;
}

.assistant-topic-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.assistant-topic-chip {
  width: 100%;
  min-height: 50px;
  font-size: 0.95rem;
}

.assistant-thread {
  min-height: 196px;
  max-height: 700px;
  overflow: auto;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 14px;
}

.assistant-empty-state {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 138px;
}

.assistant-empty-state > strong {
  font-size: 1.08rem;
}

.assistant-empty-checklist {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.assistant-empty-step {
  color: var(--muted);
  line-height: 1.45;
}

.assistant-empty-step-heading {
  color: var(--text);
  font-weight: 800;
  margin-top: 6px;
}

.assistant-empty-substeps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.assistant-message {
  padding: 18px 20px;
  border-radius: 22px;
  display: grid;
  gap: 10px;
}

.assistant-message strong {
  color: var(--soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.assistant-message p {
  color: var(--text);
  line-height: 1.6;
}

.assistant-message-user {
  background: linear-gradient(180deg, rgba(30, 47, 68, 0.98), rgba(21, 34, 51, 0.98));
}

.assistant-message-assistant {
  background: linear-gradient(180deg, rgba(23, 36, 54, 0.98), rgba(16, 27, 43, 0.98));
}

.assistant-message-images,
.assistant-pending-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.assistant-message-image-card,
.assistant-pending-image {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.assistant-message-image,
.assistant-pending-image-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.assistant-pending-image-meta {
  display: grid;
  gap: 6px;
}

.assistant-pending-image-meta span {
  color: var(--soft);
  font-size: 0.88rem;
}

.assistant-message-actions {
  display: flex;
  justify-content: flex-start;
}

.assistant-compose {
  display: grid;
  gap: 8px;
}

.assistant-compose textarea {
  min-height: 96px;
}

.assistant-compose-actions {
  margin-top: 0;
}

.assistant-compose-actions .button {
  min-width: 0;
}

.assistant-mic-button.is-listening {
  border-color: rgba(180, 237, 242, 0.3);
  background: rgba(180, 237, 242, 0.1);
  color: var(--accent);
}

.assistant-dropzone {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px dashed rgba(165, 188, 214, 0.32);
  background: rgba(255, 255, 255, 0.018);
}

.assistant-dropzone.is-dragover {
  border-color: rgba(180, 237, 242, 0.45);
  background: rgba(180, 237, 242, 0.06);
}

.assistant-dropzone-copy {
  display: grid;
  gap: 4px;
}

.assistant-upload-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.form-meta-note {
  color: var(--soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.purchase-panel {
  margin-top: 20px;
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.purchase-fact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.purchase-fact-card {
  padding: 16px;
  border-radius: 18px;
  display: grid;
  gap: 8px;
}

.purchase-fact-card span {
  color: var(--soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.purchase-fact-card strong {
  line-height: 1.5;
}

.detail-point {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-weight: 700;
}

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

.ordering-card {
  padding: 22px;
  border-radius: 22px;
  display: grid;
  gap: 10px;
}

.ordering-step {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(180, 237, 242, 0.12);
  color: var(--accent);
}

.custom-steps-intro,
.compact-note {
  margin-top: 4px;
}

.step-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.contact-direct-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-direct-card {
  display: grid;
  gap: 8px;
}

@media (max-width: 980px) {
  .site-header-actions {
    width: 100%;
    align-items: flex-start;
  }

  .language-app {
    width: 100%;
    justify-content: flex-start;
  }

  .language-field {
    width: min(100%, 136px);
  }

  .direct-pay-overview-grid,
  .custom-hero-grid,
  .home-direct-pay-stage-grid,
  .payment-stage-header,
  .payment-stage-grid,
  .documentation-panel,
  .ordering-grid,
  .contact-direct-grid,
  .payment-order-summary-grid,
  .purchase-fact-grid,
  .quality-report-grid,
  .catalog-category-grid,
  .assistant-topic-chips,
  .assistant-message-images,
  .assistant-pending-images {
    grid-template-columns: 1fr;
  }

  .assistant-guide-strip,
  .assistant-app-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .assistant-app-meta {
    justify-items: start;
  }

  .home-direct-pay-visual {
    padding-left: 0;
    padding-top: 18px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .site-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .language-field {
    min-width: 0;
    width: min(100%, 160px);
  }

  .assistant-launcher {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }

  .assistant-thread {
    padding: 16px;
    min-height: 220px;
  }

  .assistant-guide-strip,
  .assistant-dropzone,
  .purchase-panel {
    padding: 16px;
  }

  .quality-report-card,
  .ordering-card,
  .catalog-controls-panel,
  .home-direct-pay-stage,
  .payment-stage-card,
  .payment-quick-path,
  .payment-stage-visual {
    padding: 16px;
  }
}
