:root {
  --ink: #16211b;
  --muted: #66756c;
  --line: rgba(22, 33, 27, 0.14);
  --paper: #fffdf7;
  --mist: #f3f8ef;
  --leaf: #15613e;
  --leaf-dark: #0c422d;
  --sprout: #d8ef8b;
  --gold: #b88a2a;
  --clay: #b6604d;
  --blue: #263a5e;
  --shadow: 0 16px 42px rgba(19, 39, 27, 0.13);
  --radius: 8px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.45;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 10px clamp(18px, 4vw, 54px);
  background: rgba(255, 253, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 172px;
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

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

.top-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav {
  justify-content: center;
  overflow-x: auto;
  padding: 6px 0;
}

.top-nav,
.header-actions,
.category-tabs {
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar,
.header-actions::-webkit-scrollbar,
.category-tabs::-webkit-scrollbar {
  display: none;
}

.top-nav a,
.top-cta,
.cart-button,
.text-button,
.category-tabs button,
.payment-grid button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.top-nav a {
  flex: 0 0 auto;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a.active,
.top-nav a:hover {
  color: white;
  background: var(--leaf-dark);
}

.header-actions {
  justify-content: end;
}

.header-actions select {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 0 8px;
}

.top-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  color: white;
  background: var(--leaf);
  font-weight: 800;
  white-space: nowrap;
}

.top-cta.outline {
  color: var(--leaf-dark);
  background: white;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
}

.bag-icon {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  position: relative;
}

.bag-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: -8px;
  height: 10px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.page-view {
  display: none;
}

.page-view.active {
  display: block;
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  padding: clamp(56px, 8vw, 86px) clamp(16px, 5vw, 70px) 34px;
  overflow: hidden;
  color: white;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 31, 20, 0.82) 0%, rgba(7, 31, 20, 0.48) 54%, rgba(7, 31, 20, 0.18) 100%),
    linear-gradient(0deg, rgba(7, 31, 20, 0.78) 0%, rgba(7, 31, 20, 0.1) 44%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-logo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sprout);
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.18;
}

h3 {
  line-height: 1.24;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.5;
}

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

.primary-button,
.secondary-button,
.add-button,
.checkout-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.primary-button,
.add-button {
  color: white;
  background: var(--leaf);
}

.secondary-button {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.hero-service {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(720px, 100%);
  margin-top: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-link {
  display: block;
  min-height: 94px;
  padding: 16px;
  border: 0;
  color: white;
  background: rgba(10, 62, 41, 0.72);
  text-align: left;
  cursor: pointer;
}

.service-link span,
.service-link strong {
  display: block;
}

.service-link span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.service-link strong {
  margin-top: 8px;
}

.section {
  padding: clamp(32px, 5vw, 58px) clamp(16px, 5vw, 70px);
}

.no-top {
  padding-top: 0;
}

.muted-band {
  background: var(--mist);
}

.section-head {
  max-width: 900px;
  margin-bottom: 26px;
}

.section-head.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  max-width: none;
}

.text-button {
  min-height: 42px;
  padding: 0 14px;
  color: var(--leaf-dark);
  font-weight: 800;
}

.page-hero {
  background: var(--mist);
}

.page-hero h1 {
  max-width: 960px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 36px);
}

.page-hero p:not(.eyebrow) {
  max-width: 900px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.shop-controls {
  position: sticky;
  top: 70px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 16px;
  padding: 14px clamp(18px, 5vw, 70px);
  background: rgba(255, 253, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.category-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  color: var(--muted);
}

.category-tabs button.active {
  color: white;
  background: var(--leaf-dark);
}

.search-box {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.search-box span {
  color: var(--muted);
  font-size: 13px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.product-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(22, 33, 27, 0.06);
}

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: #dce7d7;
  overflow: hidden;
  cursor: pointer;
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.watermark {
  position: absolute;
  right: 10px;
  bottom: 9px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(12, 66, 45, 0.72);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  pointer-events: none;
}

.product-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 6px 9px;
  color: white;
  background: rgba(12, 66, 45, 0.88);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px;
}

.product-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.product-title h3 {
  margin: 0;
  font-size: 16px;
}

.product-title span {
  max-width: 42%;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.product-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.spec-select {
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 0 10px;
}

.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0;
}

.price-line strong {
  color: var(--leaf-dark);
  font-size: 18px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--leaf-dark);
  font-weight: 900;
  cursor: pointer;
}

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

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

.offer-card {
  min-height: 285px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 18px 20px;
  border-radius: var(--radius);
  color: white;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  background: var(--leaf-dark);
}

.offer-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 150px;
  height: 150px;
  border: 24px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.offer-card:nth-child(1) {
  background: var(--leaf-dark);
}

.offer-card:nth-child(2) {
  background: var(--blue);
}

.offer-card:nth-child(3) {
  background: #5c3b26;
}

.offer-video,
.offer-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.offer-video {
  object-fit: cover;
}

.offer-shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 23, 16, 0.22), rgba(7, 23, 16, 0.92)),
    linear-gradient(90deg, rgba(7, 23, 16, 0.82), rgba(7, 23, 16, 0.16));
}

.offer-card > :not(.offer-video):not(.offer-shade) {
  position: relative;
  z-index: 2;
}

.offer-card .offer-label {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.offer-highlight {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: var(--radius);
  color: #102318;
  background: var(--sprout);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
  letter-spacing: 0;
}

.offer-card h3 {
  position: relative;
  z-index: 1;
  max-width: 340px;
  margin: 0 0 10px;
  font-size: clamp(17px, 2vw, 22px);
}

.offer-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.offer-card .watermark {
  z-index: 3;
}

.video-logo {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 6px 9px 6px 6px;
  border-radius: 999px;
  color: white;
  background: rgba(12, 66, 45, 0.82);
  pointer-events: none;
}

.video-logo img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.video-logo strong,
.video-logo small {
  display: block;
  line-height: 1.1;
}

.video-logo small {
  margin-top: 2px;
  max-width: 180px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-section {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 18px;
}

.agent-actions {
  display: grid;
  align-content: start;
  gap: 18px;
}

.agent-table-wrap,
.agent-login,
.member-card,
.cart-panel,
.checkout-form,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 32px rgba(22, 33, 27, 0.07);
}

.agent-table-wrap {
  overflow-x: auto;
}

.agent-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.agent-table th,
.agent-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.agent-table th {
  background: var(--leaf-dark);
  color: white;
}

.agent-table td strong {
  color: var(--clay);
}

.agent-login,
.member-card,
.checkout-form {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.agent-login input,
.agent-login select,
.member-card input,
.checkout-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.member-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
}

.member-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.member-card.info {
  align-content: start;
}

.cart-panel {
  padding: 18px;
}

.cart-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.cart-line h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.cart-line p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.qty-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-box button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
}

.cart-qty-input,
.detail-qty-input {
  width: 66px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 8px;
  text-align: center;
}

.cart-total {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.summary-line.total {
  color: var(--leaf-dark);
  font-size: 22px;
  font-weight: 900;
}

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

.contact-card {
  min-height: 160px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px;
  text-align: left;
  cursor: pointer;
}

.contact-card strong {
  font-size: 22px;
  color: var(--leaf-dark);
}

.contact-card span {
  color: var(--muted);
}

.service-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 18px;
}

.support-panel,
.admin-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(22, 33, 27, 0.07);
}

.support-head,
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.support-head {
  justify-content: flex-start;
}

.support-head img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.support-panel label,
.admin-order-form {
  display: grid;
  gap: 7px;
}

.support-panel input,
.support-panel select,
.message-form input,
.message-form select,
.admin-order-form input,
.admin-order-form select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 0 12px;
}

.message-thread {
  display: grid;
  gap: 10px;
  min-height: 220px;
  max-height: 460px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}

.message-bubble {
  max-width: 92%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.admin-message {
  margin-left: auto;
  border-color: rgba(21, 97, 62, 0.28);
  background: #eaf6df;
}

.message-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.message-info {
  color: var(--gold);
  font-size: 12px;
}

.message-bubble p {
  margin-bottom: 6px;
}

.message-asset {
  display: block;
  width: min(320px, 100%);
  max-width: 100%;
  border-radius: var(--radius);
  background: white;
}

img.message-asset {
  height: auto;
  max-height: 360px;
  object-fit: contain;
}

video.message-asset {
  max-height: 340px;
  object-fit: contain;
}

audio.message-asset {
  height: 42px;
}

.message-form,
.order-query,
.admin-order-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--leaf-dark);
  background: var(--mist);
  font-weight: 900;
  cursor: pointer;
}

.file-button input {
  display: none;
}

.order-results {
  display: grid;
  gap: 10px;
}

.review-block {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

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

.review-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(21, 97, 62, 0.2);
  border-radius: var(--radius);
  background: #f8fbf2;
}

.review-card.bad {
  border-color: rgba(139, 47, 40, 0.25);
  background: #fff6f4;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.review-head strong {
  color: var(--leaf-dark);
  font-size: 14px;
}

.review-card.bad .review-head strong {
  color: #8b2f28;
}

.review-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.review-card small {
  color: var(--muted);
}

.review-form {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.review-form select,
.review-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 10px 12px;
}

.order-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.order-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.status-pill {
  padding: 5px 8px;
  border-radius: 999px;
  color: #102318;
  background: #e9e3d1;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.shipping {
  color: white;
  background: var(--blue);
}

.status-pill.delivered {
  color: white;
  background: var(--leaf);
}

.status-pill.paid {
  color: white;
  background: #28796a;
}

.status-pill.invalid {
  color: white;
  background: #8b2f28;
}

dialog {
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

dialog::backdrop {
  background: rgba(6, 18, 12, 0.58);
}

.product-modal {
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  background: var(--paper);
}

.modal-close {
  position: sticky;
  top: 10px;
  left: calc(100% - 52px);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  font-size: 24px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 18px;
  padding: 8px 20px 22px;
}

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

.detail-gallery .media-frame {
  border-radius: var(--radius);
}

.detail-gallery .video-tile {
  grid-column: span 3;
  aspect-ratio: 16 / 8;
}

.detail-copy h2 {
  margin-bottom: 10px;
  font-size: clamp(21px, 2.5vw, 30px);
}

.detail-copy h3 {
  margin: 18px 0 8px;
  font-size: 15px;
}

.detail-copy p,
.detail-copy li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.spec-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.spec-row button {
  min-height: 34px;
  border: 0;
  border-radius: var(--radius);
  color: white;
  background: var(--leaf);
  cursor: pointer;
  font-weight: 800;
}

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

.payment-content {
  padding: 24px;
}

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

.payment-grid button {
  min-height: 82px;
  display: grid;
  place-items: center;
  color: var(--leaf-dark);
  font-weight: 900;
}

.payment-grid button:only-child {
  grid-column: 1 / -1;
}

.payment-result {
  min-height: 76px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--muted);
  line-height: 1.6;
}

.crypto-address {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.crypto-meta,
.crypto-countdown {
  color: var(--leaf-dark);
  font-weight: 800;
}

.crypto-countdown {
  margin: 10px 0 0;
}

.payment-help-actions {
  margin-top: 12px;
}

.copy-button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--leaf);
  color: #fff;
  padding: 11px 14px;
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px clamp(18px, 5vw, 70px);
  color: rgba(255, 255, 255, 0.76);
  background: #111815;
}

.site-footer img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.site-footer strong {
  display: block;
  color: white;
}

.site-footer p {
  margin: 6px 0 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 90;
  min-width: min(340px, 88vw);
  padding: 12px 14px;
  border-radius: var(--radius);
  color: white;
  background: rgba(17, 24, 21, 0.94);
  text-align: center;
  transform: translate(-50%, 120px);
  transition: transform 0.22s ease;
}

.toast.show {
  transform: translate(-50%, 0);
}

.hidden {
  display: none !important;
}

body.agent-only .admin-only {
  display: none !important;
}

.backoffice-body {
  background: #f6f8f3;
}

.backoffice-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 10px clamp(14px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 243, 0.96);
  backdrop-filter: blur(16px);
}

.backoffice-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.backoffice-brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.backoffice-brand strong,
.backoffice-brand small {
  display: block;
  line-height: 1.2;
}

.backoffice-brand small {
  color: var(--muted);
}

.backoffice-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}

.backoffice-nav a,
.ghost-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: white;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
}

.ghost-button:hover,
.backoffice-nav a:hover {
  border-color: rgba(21, 97, 62, 0.4);
  color: var(--leaf);
}

.backoffice-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px clamp(14px, 3vw, 34px) 56px;
}

.backoffice-login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: 26px;
  min-height: calc(100vh - 130px);
}

.backoffice-login-panel h1,
.backoffice-hero h1 {
  margin: 8px 0 12px;
  max-width: 760px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
}

.backoffice-login-panel p,
.backoffice-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
}

.backoffice-login-card,
.backoffice-card,
.metric-card,
.agent-tier-card,
.backoffice-user {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 32px rgba(22, 33, 27, 0.07);
}

.backoffice-login-card,
.backoffice-card {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.backoffice-login-card input,
.backoffice-card input,
.backoffice-card select,
.backoffice-card textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: white;
}

.backoffice-card textarea {
  resize: vertical;
}

.backoffice-dashboard {
  display: grid;
  gap: 18px;
}

.backoffice-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: clamp(24px, 5vw, 56px) 0 18px;
}

.backoffice-user {
  min-width: 210px;
  padding: 18px;
}

.backoffice-user span,
.metric-card span,
.agent-tier-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.backoffice-user strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

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

.metric-card {
  padding: 16px;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  color: var(--leaf-dark);
  font-size: 24px;
  line-height: 1.1;
}

.backoffice-section {
  display: grid;
  gap: 14px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.small-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(21, 97, 62, 0.22);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--leaf-dark);
  background: var(--mist);
  font-size: 13px;
  white-space: nowrap;
}

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

.agent-tier-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.agent-tier-card strong {
  color: var(--leaf-dark);
  font-size: 25px;
}

.agent-tier-card p {
  margin: 0;
  color: var(--muted);
}

.backoffice-two-col {
  display: grid;
  grid-template-columns: minmax(320px, 0.74fr) minmax(360px, 1.26fr);
  gap: 14px;
  align-items: start;
}

.balance-form {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.balance-form:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.table-scroll {
  overflow-x: auto;
}

.compact-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.compact-table th,
.compact-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compact-table th {
  background: var(--leaf-dark);
  color: white;
  font-weight: 700;
}

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

.table-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .header-actions {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .shop-controls {
    top: 178px;
  }

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

@media (max-width: 880px) {
  .hero {
    min-height: 620px;
  }

  .hero-service,
  .offer-grid,
  .offer-grid.large,
  .agent-section,
  .member-layout,
  .checkout-layout,
  .contact-grid,
  .service-layout,
  .admin-layout,
  .detail-layout,
  .shop-controls {
    grid-template-columns: 1fr;
  }

  .shop-controls {
    position: static;
  }

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

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

@media (max-width: 560px) {
  .site-header {
    gap: 6px;
    padding: 8px 10px;
  }

  .brand {
    display: none;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .top-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    padding: 0;
    overflow: visible;
  }

  .top-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 4px;
    font-size: 12px;
    text-align: center;
  }

  .header-actions {
    gap: 6px;
    width: 100%;
    justify-content: space-between;
  }

  .top-cta,
  .cart-button,
  .header-actions select {
    min-height: 36px;
    height: 36px;
    font-size: 13px;
  }

  .header-actions select {
    max-width: 78px;
  }

  .hero {
    min-height: 560px;
    padding: 44px 14px 26px;
  }

  .hero-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 20px;
  }

  .section {
    padding: 26px 12px;
  }

  .page-hero {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .shop-controls {
    gap: 10px;
    padding: 10px 12px;
  }

  .category-tabs button,
  .detail-button,
  .add-button,
  .primary-button,
  .secondary-button {
    min-height: 44px;
  }

  .product-grid,
  .product-grid.compact,
  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .detail-gallery .video-tile {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .product-body {
    padding: 12px;
  }

  .product-title {
    align-items: start;
  }

  .offer-card {
    min-height: 245px;
    padding: 16px;
  }

  .offer-highlight {
    font-size: 24px;
  }

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

  .product-modal {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .detail-layout {
    padding: 4px 12px 18px;
  }

  .card-actions,
  .spec-row,
  .payment-grid,
  .message-form,
  .order-query,
  .admin-order-form {
    grid-template-columns: 1fr;
  }

  .support-head,
  .admin-toolbar,
  .order-card-head,
  .review-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 1180px) {
  .backoffice-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .backoffice-nav {
    width: 100%;
  }

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

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

@media (max-width: 880px) {
  .backoffice-login-panel,
  .backoffice-hero,
  .backoffice-two-col {
    grid-template-columns: 1fr;
  }

  .backoffice-login-panel {
    min-height: auto;
    padding: 24px 0;
  }

  .backoffice-user {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .backoffice-shell {
    padding: 14px 10px 42px;
  }

  .backoffice-header {
    gap: 8px;
    padding: 8px 10px;
  }

  .backoffice-brand img {
    width: 40px;
    height: 40px;
  }

  .backoffice-nav a,
  .ghost-button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .backoffice-login-panel h1,
  .backoffice-hero h1 {
    font-size: 28px;
  }

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

  .metric-card,
  .agent-tier-card,
  .backoffice-card,
  .backoffice-login-card {
    padding: 14px;
  }

  .metric-card strong,
  .agent-tier-card strong {
    font-size: 20px;
  }

  .agent-tier-grid {
    grid-template-columns: 1fr;
  }
}
