:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --paper: #fffaf2;
  --ink: #171613;
  --muted: #706b61;
  --line: rgba(23, 22, 19, 0.12);
  --green: #229ed9;
  --green-dark: #116b98;
  --gold: #f1b649;
  --coral: #229ed9;
  --aqua: #61c8ed;
  --shadow: 0 24px 80px rgba(49, 42, 29, 0.14);
  font-family: "Inter", "Noto Sans SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(216, 153, 55, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 8%, rgba(74, 155, 179, 0.15), transparent 25rem),
    var(--bg);
  color: var(--ink);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 16px auto 0;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.82);
  box-shadow: 0 18px 52px rgba(49, 42, 29, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 72px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.header-actions,
.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.ghost-link,
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.exchange-link {
  color: var(--green);
}

.exchange-link:hover {
  color: var(--green-dark);
}

.primary-button,
.secondary-button,
.plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button:hover,
.plan-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(31, 138, 91, 0.24);
}

.primary-button:disabled,
.plan-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.primary-button.small {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.84);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 56px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: 76px 0 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.hero-subtitle,
.section-heading p:not(.eyebrow),
.order-copy p,
.site-footer p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-row span {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.72);
  color: var(--muted);
  font-size: 13px;
}

.trust-row strong {
  margin-right: 6px;
  color: var(--ink);
}

.hero-panel {
  min-height: 560px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 250, 242, 0.96), rgba(239, 232, 218, 0.9)),
    var(--paper);
  box-shadow: var(--shadow);
}

.status-bar,
.metric-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.status-bar {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-size: 14px;
}

.status-bar strong {
  color: var(--green-dark);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(31, 138, 91, 0.12);
}

.dashboard-visual {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  overflow: hidden;
  margin: 22px 0;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(31, 138, 91, 0.15), rgba(239, 125, 85, 0.12)),
    #fffdf8;
}

.orbital-ring {
  position: absolute;
  width: min(76%, 320px);
  aspect-ratio: 1;
  border: 1px solid rgba(31, 138, 91, 0.24);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

.product-chip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(82%, 330px);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 60px rgba(49, 42, 29, 0.16);
  backdrop-filter: blur(16px);
}

.chip-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 18px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 900;
}

.product-chip small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.timeline {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 13px;
}

.timeline-item span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.timeline-item.done span,
.timeline-item.active span {
  background: var(--green);
}

.timeline-item p {
  margin: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.metric-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.metric-grid small,
.plan-label,
.review-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
}

.notice-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 22px;
  border: 1px solid rgba(216, 153, 55, 0.34);
  border-radius: 18px;
  background: rgba(255, 243, 214, 0.72);
  color: #79521b;
  font-weight: 700;
  line-height: 1.7;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 0;
}

.products-only {
  min-height: calc(100vh - 90px);
  padding-top: 78px;
  padding-bottom: 80px;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card,
.plan-card,
.review-card,
.process-grid article,
.lead-form {
  border: 1px solid rgba(23, 22, 19, 0.1);
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.76);
  box-shadow: 0 18px 42px rgba(49, 42, 29, 0.08);
}

.feature-card {
  min-height: 250px;
  padding: 24px;
}

.feature-card svg,
.primary-button svg,
.secondary-button svg {
  width: 20px;
  height: 20px;
}

.feature-card > svg {
  width: 32px;
  height: 32px;
  margin-bottom: 28px;
  color: var(--green);
}

.feature-card p,
.process-grid p,
.plan-desc,
.review-card p,
.faq-list p {
  color: var(--muted);
  line-height: 1.7;
}

.process-section {
  padding-top: 112px;
}

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

.process-grid article {
  min-height: 220px;
  padding: 28px;
}

.process-grid span {
  display: block;
  margin-bottom: 38px;
  color: var(--coral);
  font-size: 42px;
  font-weight: 900;
}

.inline-link {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.flow-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
}

.plan-card.featured {
  background: #17251d;
  color: #fff;
  transform: translateY(-12px);
}

.plan-card.featured .plan-desc,
.plan-card.featured .plan-label,
.plan-card.featured li {
  color: rgba(255, 255, 255, 0.72);
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #271a05;
  font-size: 12px;
  font-weight: 900;
}

.price {
  font-size: 34px;
  line-height: 1;
}

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

.plan-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.plan-card li svg {
  flex: 0 0 auto;
  width: 18px;
  color: var(--green);
}

.plan-button {
  width: 100%;
  margin-top: auto;
  background: rgba(31, 138, 91, 0.12);
  color: var(--green-dark);
}

.plan-button.dark {
  background: #fff;
  color: var(--green-dark);
}

.reviews-section {
  overflow: hidden;
}

.review-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review-card {
  min-height: 230px;
  padding: 28px;
}

.review-card p {
  min-height: 118px;
  font-size: 17px;
}

.review-card strong {
  display: block;
  margin-bottom: 6px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 850px;
  margin: 0 auto;
}

details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 242, 0.78);
}

summary {
  min-height: 62px;
  padding: 20px 24px;
  font-weight: 900;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 24px 22px;
}

.order-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 96px;
}

.checkout-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 18px;
}

.checkout-hero h1 {
  max-width: 760px;
}

.checkout-section {
  padding-top: 42px;
}

.checkout-summary {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 242, 0.78);
}

.checkout-summary small,
.checkout-summary span {
  color: var(--muted);
  font-weight: 800;
}

.checkout-summary strong {
  font-size: 22px;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.lead-form input,
.lead-form select {
  min-height: 48px;
  padding: 0 14px;
}

.lead-form textarea {
  resize: vertical;
  padding: 12px 14px;
}

.primary-button.full {
  width: 100%;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 800;
}

.buy-page {
  min-height: calc(100vh - 88px);
  padding: 38px 0 84px;
  background: linear-gradient(90deg, rgba(17, 107, 152, 0.08), rgba(255, 255, 255, 0.72), rgba(17, 107, 152, 0.08));
}

.buy-shell {
  display: grid;
  gap: 28px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 34px 36px;
  border: 1px solid rgba(23, 22, 19, 0.08);
  border-radius: 0 0 16px 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 90px rgba(17, 22, 35, 0.1);
}

.buy-product {
  display: grid;
  gap: 24px;
  max-width: 560px;
}

.sku-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 16px 18px;
  border: 1px solid rgba(34, 158, 217, 0.38);
  border-radius: 14px;
  background: rgba(32, 126, 227, 0.14);
  box-shadow: inset 0 0 0 1px rgba(32, 126, 227, 0.14);
}

.sku-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.selected-product-desc {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.stock-pill {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid rgba(31, 178, 118, 0.32);
  border-radius: 999px;
  background: rgba(218, 255, 235, 0.86);
  color: #0a8a54;
  font-size: 12px;
  font-weight: 900;
}

.quantity-block h2,
.payment-block h2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
}

.qty-stepper {
  display: inline-grid;
  grid-template-columns: 46px 58px 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.qty-btn,
.qty-input {
  height: 44px;
  border: 0;
  background: #fff;
  color: var(--ink);
  text-align: center;
  font-weight: 900;
}

.qty-btn {
  cursor: pointer;
  color: var(--muted);
  font-size: 23px;
}

.qty-input {
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.quantity-hint,
.credentials-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.quick-buy-card {
  display: grid;
  gap: 20px;
  padding: 26px 28px;
  border: 1px solid rgba(23, 22, 19, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

.quick-buy-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.quick-buy-head h1 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.quick-buy-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.quick-buy-head span {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

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

.quick-buy-card label {
  color: var(--ink);
  font-size: 14px;
}

.quick-buy-card input {
  min-height: 54px;
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
}

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

.payment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f4f4f6;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.payment-option span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 900;
}

.pay-brand-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.payment-option small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.payment-option svg,
.payment-option img {
  width: 22px;
  height: 22px;
}

.payment-option img {
  display: block;
}

.payment-option.active {
  border-color: transparent;
  background: #0f7ae5;
  color: #fff;
}

.payment-option.active small {
  color: rgba(255, 255, 255, 0.78);
}

.pay-now-button {
  min-height: 58px;
  border-radius: 12px;
  background: #8bb8ef;
  font-size: 17px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(23, 22, 19, 0.42);
  backdrop-filter: blur(12px);
}

.modal.open {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-panel.wide {
  width: min(100%, 760px);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.auth-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.auth-tabs button {
  min-width: 74px;
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.auth-tabs button.active {
  background: var(--green-dark);
  color: #fff;
}

.auth-form,
.auth-form label {
  display: grid;
  gap: 12px;
}

.auth-form {
  gap: 16px;
}

.auth-form label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.auth-form input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.auth-note {
  min-height: 24px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 800;
}

.auth-form.login-mode .register-only {
  display: none;
}

.orders-list {
  display: grid;
  gap: 12px;
  max-height: min(64vh, 560px);
  overflow: auto;
}

.order-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
}

.order-row strong {
  display: block;
  margin-bottom: 4px;
}

.order-row small,
.order-row span {
  color: var(--muted);
}

.delivery-code {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed rgba(34, 158, 217, 0.38);
  border-radius: 10px;
  background: rgba(34, 158, 217, 0.08);
  color: var(--green-dark);
  font-size: 13px;
  word-break: break-all;
}

.status-pill {
  align-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(31, 138, 91, 0.12);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.result-page {
  display: grid;
  min-height: calc(100vh - 104px);
  place-items: center;
  padding: 56px 16px;
}

.result-card {
  width: min(100%, 620px);
  padding: 42px;
  border: 1px solid rgba(23, 22, 19, 0.1);
  border-radius: 22px;
  background: rgba(255, 250, 242, 0.82);
  text-align: center;
  box-shadow: var(--shadow);
}

.result-card > svg {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  color: var(--green);
}

.result-card h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.result-message {
  color: var(--muted);
  line-height: 1.8;
}

.admin-page {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.admin-heading {
  max-width: 700px;
  margin-bottom: 32px;
}

.admin-heading h1 {
  margin-bottom: 16px;
}

.admin-heading > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.admin-auth,
.import-form,
.product-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.admin-auth {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
}

.admin-auth .admin-note {
  grid-column: 1 / -1;
  margin: 0;
}

.admin-auth label,
.import-form label,
.product-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.admin-auth input,
.product-form input,
.product-form textarea,
.import-form select,
.import-form textarea {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.product-form textarea,
.import-form textarea {
  padding: 12px 14px;
  resize: vertical;
}

.admin-note,
.product-note,
.import-note {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 800;
}

.inventory-panel {
  margin-top: 28px;
}

.product-form {
  margin-bottom: 24px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
}

.checkbox-label input {
  min-height: auto;
  width: 18px;
  height: 18px;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.inventory-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 242, 0.8);
}

.inventory-card small,
.inventory-card span,
.inventory-card em {
  display: block;
  color: var(--muted);
}

.inventory-card em {
  margin-top: 10px;
  font-size: 13px;
  font-style: normal;
}

.inventory-card strong {
  display: block;
  margin: 12px 0 6px;
  color: var(--green-dark);
  font-size: 40px;
}

.admin-orders {
  margin-top: 30px;
}

.admin-orders-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.admin-orders-heading h2 {
  margin: 0;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.58;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .site-header {
    min-height: 64px;
  }

  .hero,
  .order-section {
    grid-template-columns: 1fr;
  }

  .buy-shell {
    padding: 24px;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-panel {
    min-height: 500px;
  }

  .feature-grid,
  .pricing-grid,
  .process-grid,
  .review-track {
    grid-template-columns: 1fr 1fr;
  }

  .plan-card.featured {
    transform: none;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .checkout-hero,
  .buy-shell,
  .notice-band,
  .section,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    margin-top: 10px;
    border-radius: 14px;
    gap: 12px;
    padding: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .brand-mark {
    width: 64px;
    font-size: 10px;
  }

  .header-actions {
    flex: 1;
    justify-content: flex-end;
    gap: 10px;
  }

  .buy-page {
    padding: 18px 0 58px;
  }

  .buy-shell {
    gap: 22px;
    padding: 18px;
    border-radius: 14px;
  }

  .buy-product {
    max-width: none;
  }

  .sku-card,
  .quick-buy-head {
    flex-direction: column;
  }

  .quick-buy-card {
    padding: 20px;
  }

  .quick-fields,
  .payment-grid {
    grid-template-columns: 1fr;
  }

  .ghost-link {
    font-size: 13px;
    padding: 0;
  }

  .primary-button.small {
    min-height: 40px;
    padding: 0 12px;
  }

  h1 {
    font-size: 42px;
  }

  .hero {
    gap: 32px;
    padding: 44px 0 34px;
  }

  .hero-actions,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .trust-row span {
    flex: 1 1 140px;
    border-radius: 14px;
  }

  .hero-panel {
    min-height: 440px;
    padding: 14px;
    border-radius: 22px;
  }

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

  .status-bar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  .product-chip {
    width: calc(100% - 30px);
  }

  .feature-grid,
  .pricing-grid,
  .process-grid,
  .review-track,
  .metric-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 74px;
  }

  .products-only {
    min-height: auto;
    padding-top: 48px;
  }

  .feature-card,
  .plan-card,
  .review-card,
  .process-grid article {
    min-height: unset;
  }

  .review-card p {
    min-height: unset;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-panel {
    padding: 22px;
  }

  .order-row {
    grid-template-columns: 1fr;
  }

.admin-auth,
  .inventory-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

/* TG Proxy storefront */
:root {
  --bg: #f3f6f5;
  --paper: #ffffff;
  --ink: #102a2b;
  --muted: #637778;
  --line: rgba(16, 42, 43, 0.13);
  --green: #229ed9;
  --green-dark: #087aaa;
  --gold: #ffb45c;
  --shadow: 0 28px 80px rgba(13, 54, 61, 0.13);
}

body {
  background:
    radial-gradient(circle at 82% 5%, rgba(34, 158, 217, 0.17), transparent 27rem),
    radial-gradient(circle at 8% 28%, rgba(214, 244, 232, 0.82), transparent 24rem),
    var(--bg);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, #34b7ef, #168ac2);
  font-size: 20px;
}

.site-header {
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 44px rgba(13, 54, 61, 0.08);
}

.proxy-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 690px;
  margin: 0 auto;
  padding: 72px 0 92px;
}

.proxy-hero h1 {
  margin-bottom: 26px;
  font-size: clamp(50px, 7vw, 88px);
  letter-spacing: -0.055em;
}

.proxy-hero-copy .hero-subtitle {
  max-width: 620px;
}

.proxy-visual {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 42%, rgba(34, 158, 217, 0.2), transparent 14rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(223, 242, 245, 0.86));
  box-shadow: var(--shadow);
}

.visual-topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
}

.visual-topline small {
  color: var(--muted);
}

.telegram-orb {
  display: grid;
  width: 154px;
  height: 154px;
  margin: 62px auto 52px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #42bdf1, #168ac2);
  color: #fff;
  font-size: 72px;
  box-shadow: 0 26px 70px rgba(34, 158, 217, 0.35), 0 0 0 22px rgba(34, 158, 217, 0.08);
}

.route-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.route-line i {
  width: 32px;
  height: 1px;
  background: rgba(34, 158, 217, 0.5);
}

.visual-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 34px;
}

.visual-stats div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.visual-stats small,
.visual-stats strong {
  display: block;
}

.visual-stats small {
  margin-bottom: 4px;
  color: var(--muted);
}

.products-only {
  min-height: auto;
  padding: 94px 0 110px;
}

.products-only .section-heading {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: end;
  gap: 60px;
  max-width: none;
  text-align: left;
}

.products-only .section-heading > p {
  margin-bottom: 12px;
}

.products-only .pricing-grid {
  grid-template-columns: minmax(300px, 460px);
  justify-content: center;
}

.plan-card.featured {
  border: 0;
  background: #0d3438;
  transform: none;
  box-shadow: 0 28px 70px rgba(13, 52, 56, 0.22);
}

.plan-card.featured .plan-button {
  background: #fff;
  color: var(--green-dark);
}

.tutorial-section {
  padding: 104px max(16px, calc((100% - 1180px) / 2)) 110px;
  background: #fff;
}

.tutorial-intro {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 112px;
}

.tutorial-intro > div:first-child > p:last-child {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.quick-import {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f6faf9;
  box-shadow: 14px 14px 0 rgba(34, 158, 217, 0.13);
}

.quick-import label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.proxy-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.proxy-input-row input {
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #b8ccce;
  border-radius: 12px;
  outline: none;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.proxy-input-row input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 158, 217, 0.11);
}

.proxy-open-button {
  min-height: 52px;
  white-space: nowrap;
}

.proxy-open-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

.device-tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f2f6f5;
}

.device-tabs button {
  min-width: 126px;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.device-tabs button.active {
  background: #0d3438;
  color: #fff;
}

.text-guide {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 56px;
  align-items: start;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #f7f9f8;
}

.text-guide-heading {
  position: sticky;
  top: 116px;
}

.text-guide-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.text-guide-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.text-guide-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.text-guide-list li > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #0d3438;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 900;
}

.text-guide-list h3 {
  margin: 0 0 7px;
}

.text-guide-list p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.tutorial-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tutorial-steps[hidden] {
  display: none;
}

.tutorial-steps article {
  min-width: 0;
  padding: 18px 18px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.tutorial-steps article > span {
  display: block;
  margin-bottom: 14px;
  color: #ef8a50;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 900;
}

.tutorial-steps article p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.mini-phone {
  display: grid;
  min-height: 170px;
  margin-bottom: 22px;
  padding: 34px 15px 18px;
  place-content: center;
  border: 7px solid #153536;
  border-radius: 24px;
  background: #f3f7f6;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.mini-phone strong {
  display: block;
  margin-top: 16px;
  padding: 10px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
}

.mini-phone.success strong {
  background: #d8f4e8;
  color: #08715f;
}

.manual-path {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: center;
  margin-top: 30px;
  padding: 28px 32px;
  border-radius: 18px;
  background: #0d3438;
  color: #fff;
}

.manual-path small {
  color: #84d7f6;
  font-weight: 800;
}

.manual-path h3,
.manual-path p {
  margin: 0;
}

.manual-path p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.screenshot-guide {
  margin-top: 96px;
}

.screenshot-guide-heading {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 38px;
}

.language-paths {
  display: grid;
  gap: 10px;
}

.language-paths span {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f6faf9;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.language-paths strong {
  color: var(--ink);
}

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

.screenshot-step-wide {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 36px;
  padding: 30px;
}

.screenshot-step-copy {
  padding: 6px;
}

.screenshot-number {
  display: block;
  margin-bottom: 18px;
  color: #ef8a50;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 900;
}

.step-kicker {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.screenshot-step-copy h3 {
  font-size: 26px;
}

.screenshot-step-copy > p:last-child {
  color: var(--muted);
  line-height: 1.8;
}

.bilingual-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.screenshot-step figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.screenshot-step img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-step figcaption {
  padding: 13px 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.language-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #0d3438;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(13, 52, 56, 0.2);
}

.language-badge.english {
  background: var(--green);
}

.screenshot-step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.screenshot-step-grid .screenshot-step-copy {
  padding: 28px 28px 18px;
}

.screenshot-step-grid figure {
  margin: 0 20px 20px;
}

.screenshot-step-grid img {
  aspect-ratio: 1.3;
  object-fit: contain;
  background: #ecefee;
}

.faq-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0;
}

.site-footer {
  align-items: center;
  grid-template-columns: auto 1fr;
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.delivery-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(34, 158, 217, 0.25);
  border-radius: 12px;
  background: rgba(34, 158, 217, 0.06);
}

.delivery-box .delivery-code {
  max-height: 92px;
  overflow: auto;
  background: #fff;
}

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

.dujiao-admin-body {
  min-height: 100vh;
  background: #f7f7f8;
  color: #202124;
}

.dujiao-admin-body .site-header {
  display: none;
}

.admin-login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: #f7f7f8;
}

.admin-login-card {
  display: grid;
  gap: 24px;
  width: min(760px, 100%);
  padding: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}

.dujiao-admin-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  min-height: 100vh;
  margin: 0;
  background: #f7f7f8;
}

.dujiao-admin-shell[hidden],
.admin-login-screen[hidden] {
  display: none;
}

.dujiao-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  height: 100vh;
  border-right: 1px solid #e5e7eb;
  background: #fff;
}

.dujiao-brand-block {
  display: grid;
  gap: 8px;
  padding: 42px 34px 28px;
}

.dujiao-brand-block strong {
  color: #111827;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.dujiao-brand-block span,
.dujiao-sidebar-footer span,
.dujiao-view-subtitle,
.order-contact,
.order-ip,
.order-time,
.order-pay,
.order-product span {
  color: #7c818c;
}

.dujiao-search {
  padding: 0 18px 18px;
}

.dujiao-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08);
}

.dujiao-nav {
  overflow-y: auto;
  padding: 4px 18px 24px;
}

.dujiao-nav-group {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.dujiao-nav-item,
.dujiao-sub-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  gap: 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #5f6673;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.dujiao-nav-item {
  padding: 0 18px;
}

.dujiao-nav-item b {
  margin-left: auto;
  color: #8a909a;
}

.dujiao-nav-item.active-group {
  color: #202124;
  background: #fbfbfc;
}

.dujiao-sub-item {
  width: calc(100% - 50px);
  margin-left: 50px;
  padding: 0 18px;
  font-size: 17px;
}

.dujiao-sub-item.active,
.dujiao-sub-item:hover,
.dujiao-nav-item:hover {
  color: #111827;
  background: #f2f2f4;
}

.dujiao-sidebar-footer {
  display: grid;
  gap: 10px;
  padding: 18px 34px 26px;
  border-top: 1px solid #e5e7eb;
  font-weight: 700;
}

.dujiao-collapse {
  justify-self: center;
  border: 0;
  background: transparent;
  color: #7c818c;
  font-size: 22px;
  cursor: pointer;
}

.dujiao-main {
  min-width: 0;
  background: #f7f7f8;
}

.dujiao-topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 34px;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.dujiao-topbar > div:first-child {
  display: grid;
  gap: 4px;
}

.dujiao-view-title {
  font-size: 20px;
  font-weight: 900;
}

.dujiao-view-subtitle {
  font-size: 13px;
  font-weight: 700;
}

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

.dujiao-top-actions a,
.dujiao-top-actions button,
.detail-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #202124;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 2px 5px rgba(17, 24, 39, 0.12);
  cursor: pointer;
}

.dujiao-view {
  padding: 0;
}

.dujiao-table-wrap {
  overflow: auto;
  height: calc(100vh - 76px);
  background: #fff;
}

.dujiao-table {
  min-width: 1560px;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
}

.dujiao-order-row {
  display: grid;
  grid-template-columns: 76px 54px 200px 200px 200px 170px 110px 74px 200px 90px 150px;
  align-items: center;
  min-height: 112px;
  padding: 0 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  font-size: 17px;
  line-height: 1.4;
}

.dujiao-order-row strong {
  font-weight: 900;
}

.order-id,
.order-no,
.order-product,
.order-price {
  color: #202124;
}

.order-no {
  display: flex;
  align-items: center;
  gap: 10px;
  word-break: break-all;
}

.order-product,
.order-price {
  display: grid;
  gap: 4px;
}

.copy-mini {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #727884;
  font-size: 18px;
  cursor: pointer;
}

.dujiao-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-height: 78px;
  padding: 8px 9px;
  border: 1px solid #dbeafe;
  border-radius: 24px;
  background: #f8fbff;
  color: #64748b;
  font-weight: 800;
  line-height: 1.2;
  writing-mode: vertical-rl;
}

.dujiao-empty {
  margin: 24px;
  padding: 26px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #7c818c;
  font-weight: 800;
}

.dujiao-view[data-view-panel="dashboard"],
.dujiao-view[data-view-panel="inventory"],
.dujiao-view[data-view-panel="products"],
.dujiao-view[data-view-panel="import"],
.dujiao-view[data-view-panel="risk"],
.dujiao-view[data-view-panel="refunds"] {
  padding: 28px;
}

.dujiao-admin-shell .product-form,
.dujiao-admin-shell .import-form {
  max-width: 920px;
  background: #fff;
}

@media (max-width: 980px) {
  .dujiao-admin-shell {
    grid-template-columns: 1fr;
  }

  .dujiao-sidebar {
    position: static;
    height: auto;
  }

  .dujiao-order-row {
    grid-template-columns: 80px 1fr;
    gap: 10px;
    min-height: auto;
    padding: 18px;
  }

  .dujiao-table {
    min-width: 0;
  }
}

@media (max-width: 980px) {
  .proxy-hero,
  .tutorial-intro {
    grid-template-columns: 1fr;
  }

  .proxy-hero {
    gap: 38px;
    padding-top: 54px;
  }

  .tutorial-steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .text-guide-heading {
    position: static;
  }

  .screenshot-guide-heading,
  .screenshot-step-wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .proxy-hero,
  .faq-section {
    width: calc(100% - 24px);
  }

  .brand-mark {
    width: 38px;
    font-size: 18px;
  }

  .header-actions > a.ghost-link:first-child {
    display: none;
  }

  .proxy-hero {
    min-height: auto;
    padding: 46px 0 70px;
  }

  .proxy-hero h1 {
    font-size: 48px;
  }

  .proxy-visual {
    min-height: 440px;
    padding: 18px;
  }

  .visual-topline {
    grid-template-columns: auto 1fr;
  }

  .visual-topline small {
    display: none;
  }

  .products-only .section-heading,
  .tutorial-intro,
  .manual-path,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .tutorial-section {
    padding-top: 74px;
  }

  .tutorial-intro {
    gap: 28px;
    margin-bottom: 76px;
  }

  .quick-import {
    padding: 20px;
    box-shadow: 8px 8px 0 rgba(34, 158, 217, 0.13);
  }

  .proxy-input-row {
    grid-template-columns: 1fr;
  }

  .guide-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .device-tabs button {
    flex: 1;
    min-width: 0;
  }

  .tutorial-steps {
    grid-template-columns: 1fr;
  }

  .text-guide {
    gap: 28px;
    padding: 22px;
  }

  .text-guide-list li {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 18px;
  }

  .text-guide-list li > span {
    width: 42px;
    height: 42px;
  }

  .bilingual-shots,
  .screenshot-step-grid {
    grid-template-columns: 1fr;
  }

  .manual-path {
    gap: 14px;
  }

  .screenshot-guide {
    margin-top: 72px;
  }

  .screenshot-step-wide {
    padding: 20px;
  }

  .site-footer p {
    text-align: left;
  }
}
