:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #eef4f1;
  --text: #20242a;
  --muted: #68707c;
  --line: #dfe4ea;
  --primary: #1f6f5b;
  --primary-dark: #185747;
  --accent: #bf6b21;
  --danger: #b83232;
  --warning: #9a6b12;
  --success: #24724f;
  --shadow: 0 12px 36px rgba(32, 36, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.country-progress-bar {
  position: sticky;
  top: 64px;
  z-index: 9;
  background: #edf5f1;
  border-bottom: 1px solid #cfe0d7;
}

.country-progress-inner {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(160px, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(1180px, calc(100% - 32px));
  min-height: 48px;
  margin: 0 auto;
}

.country-progress-inner strong,
.country-progress-inner span {
  display: inline-block;
}

.country-progress-inner div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.country-top-progress {
  height: 12px;
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 32px;
  border-radius: 6px;
  background: var(--primary);
  color: white;
  font-size: 13px;
}

.client-app {
  background:
    linear-gradient(180deg, rgba(31, 111, 91, 0.07), rgba(246, 247, 249, 0) 340px),
    var(--bg);
}

.client-app .topbar {
  min-height: 72px;
  padding-inline: clamp(18px, 4vw, 42px);
  border-bottom-color: rgba(31, 111, 91, 0.16);
  box-shadow: 0 10px 30px rgba(32, 36, 42, 0.04);
}

.client-app .brand {
  gap: 12px;
  font-size: 14px;
}

.client-app .brand-mark {
  width: 64px;
  height: 34px;
  background: linear-gradient(135deg, #155b4a, #2d8068);
  box-shadow: 0 8px 18px rgba(31, 111, 91, 0.22);
}

.client-app .nav {
  gap: 9px;
}

.client-app .nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  color: #47515d;
}

.client-app .nav a:hover {
  background: #edf4f0;
  color: var(--primary-dark);
  text-decoration: none;
}

.client-app .currency-form select,
.client-app .language-form select {
  min-height: 34px;
  border-color: #d5ded9;
  background: #f9fbfa;
}

.client-app .ghost-button {
  min-height: 34px;
  color: #47515d;
  background: #f9fbfa;
  border-color: #d5ded9;
}

.nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-weight: 650;
}

.nav form,
.actions form {
  margin: 0;
}

.currency-form select,
.language-form select {
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--text);
  font-weight: 700;
}

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

.page-heading,
.section-title,
.card-title-row,
.meta-row,
.button-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-heading {
  margin-bottom: 24px;
}

.page-heading h1,
.auth-panel h1,
.detail-panel h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted-text,
.hint {
  color: var(--muted);
}

.muted-text {
  margin: 0;
}

.hint {
  margin: 6px 0 0;
  font-size: 13px;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}

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

.primary-button:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.secondary-button {
  background: white;
  color: var(--primary);
  border-color: var(--line);
}

.ghost-button,
.link-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.link-button {
  padding: 0;
}

.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 14px;
}

.full {
  width: 100%;
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.danger-text {
  color: var(--danger);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
  min-height: calc(100vh - 160px);
}

.auth-experience {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 0.68fr);
  gap: 32px;
  align-items: stretch;
  min-height: calc(100vh - 128px);
}

.auth-copy-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 34px 0 30px;
}

.auth-copy-panel h1 {
  margin: 0;
  color: #181d27;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.auth-lead {
  max-width: 520px;
  margin: 14px 0 0;
  color: #69717f;
  font-size: 18px;
  line-height: 1.65;
}

.auth-modern-form {
  max-width: 520px;
  margin-top: 34px;
  gap: 20px;
}

.auth-modern-form label {
  color: #2d3542;
  font-size: 15px;
  gap: 9px;
}

.auth-modern-form input,
.auth-modern-form textarea,
.auth-modern-form select {
  min-height: 54px;
  border-color: #d0d6de;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 1px rgba(20, 28, 38, 0.03);
}

.auth-modern-form textarea {
  min-height: 96px;
}

.auth-submit {
  min-height: 56px;
  margin-top: 8px;
  background: #087650;
  border-color: #087650;
  font-size: 16px;
  box-shadow: 0 11px 22px rgba(8, 118, 80, 0.22);
}

.auth-submit:hover {
  background: #065f42;
}

.auth-experience .switch-link {
  max-width: 520px;
  margin-top: 24px;
  color: #5f6876;
}

.auth-experience .switch-link a {
  font-weight: 750;
}

.auth-assurance {
  display: grid;
  gap: 18px;
  max-width: 520px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid #dce2e8;
  color: #4f5967;
  font-size: 16px;
}

.auth-assurance-title,
.auth-assurance-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.auth-assurance-title {
  color: #151b24;
  font-size: 18px;
}

.auth-assurance svg {
  width: 30px;
  height: 30px;
  color: #087650;
  stroke-width: 1.8;
}

.auth-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(200px, 0.95fr) minmax(150px, 0.8fr);
  gap: 8px;
  width: min(100%, 540px);
  min-height: 360px;
  max-height: 500px;
  margin: 0 0 0 auto;
  overflow: hidden;
}

.auth-gallery figure {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d8dde4;
  border-radius: 0;
  background: #fff;
}

.auth-gallery-large {
  grid-column: 1 / -1;
}

.auth-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-gallery-large img {
  object-position: center 46%;
}

.auth-register-experience {
  grid-template-columns: minmax(560px, 1fr) minmax(340px, 0.6fr);
  gap: 34px;
}

.auth-register-experience .auth-copy-panel {
  justify-content: flex-start;
}

.auth-register-experience .auth-modern-form {
  max-width: 760px;
  margin-top: 28px;
}

.auth-register-gallery {
  grid-template-rows: minmax(190px, 0.95fr) minmax(145px, 0.78fr);
}

.auth-shell.wide {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

.auth-panel,
.auth-aside,
.panel,
.table-shell,
.product-card,
.detail-panel,
.media-panel,
.metric-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-panel,
.auth-aside,
.panel,
.detail-panel {
  padding: 28px;
}

.auth-aside {
  background: var(--surface-soft);
}

.auth-aside h2,
.panel h2,
.section-title h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.steps {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}

.steps li + li {
  margin-top: 12px;
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.filter-form,
.inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-form select,
.inline-form select,
.inline-form input {
  min-height: 36px;
  border: 1px solid #cbd3dc;
  border-radius: 6px;
  background: white;
  color: var(--text);
  padding: 7px 10px;
}

.inline-form input {
  width: 96px;
}

.compact-form {
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -6px 0 16px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.bulk-actions .hint {
  margin: 0;
}

.select-column {
  width: 44px;
  text-align: center;
}

.select-column input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.order-group {
  margin-bottom: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.order-group-header,
.order-group-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}

.order-group-header h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.order-group-total {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.order-group-total > strong {
  font-size: 22px;
}

.order-group-summary {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.order-group-summary span {
  display: inline-flex;
  gap: 6px;
}

.order-group > .hint {
  margin: 0;
  padding: 0 22px 18px;
  background: var(--surface-soft);
}

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

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

.form label {
  display: grid;
  gap: 7px;
  color: #3c434d;
  font-size: 14px;
  font-weight: 700;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid #cbd3dc;
  border-radius: 6px;
  background: white;
  color: var(--text);
  padding: 11px 12px;
}

.form textarea {
  resize: vertical;
}

.span-2 {
  grid-column: 1 / -1;
}

.switch-link {
  margin: 18px 0 0;
  color: var(--muted);
}

.alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid;
  background: #fff;
}

.alert.success {
  color: var(--success);
  border-color: #bcdccc;
  background: #eef8f2;
}

.alert.warning {
  color: var(--warning);
  border-color: #e7d4a4;
  background: #fff8e5;
}

.alert.danger {
  color: var(--danger);
  border-color: #e5b8b8;
  background: #fff0f0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 24, 31, 0.42);
}

.notice-modal {
  width: min(420px, 100%);
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(18, 24, 31, 0.28);
}

.notice-modal h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.notice-modal p {
  margin: 0 0 20px;
  color: var(--muted);
}

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

.product-card {
  overflow: hidden;
}

.product-image-frame {
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
}

.product-image-frame img,
.cart-product img,
.admin-product-name img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(var(--image-rotation, 0deg));
}

.detail-image {
  min-height: 460px;
}

.card-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.card-body h2 {
  margin: 0;
  font-size: 19px;
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ecef;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #84a957);
}

.progress.large {
  height: 14px;
  margin: 20px 0;
}

.progress.inline {
  display: inline-block;
  width: 110px;
  margin-right: 8px;
  vertical-align: middle;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
  gap: 24px;
}

.media-panel {
  overflow: hidden;
}

.stats-grid,
.metric-grid {
  display: grid;
  gap: 14px;
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.stats-grid div,
.metric-grid article {
  padding: 16px;
  border-radius: 8px;
  background: #f7faf8;
  border: 1px solid var(--line);
}

.stats-grid span,
.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stats-grid strong,
.metric-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.country-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.country-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  color: var(--text);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.country-stat:hover {
  text-decoration: none;
}

.country-stat.active {
  border-color: var(--primary);
  background: var(--surface-soft);
}

.country-stat span {
  color: var(--muted);
  font-weight: 700;
}

.country-stat strong {
  font-size: 24px;
}

.order-form {
  grid-template-columns: minmax(140px, 220px) auto;
  align-items: end;
}

.inline-cart-form {
  display: grid;
  grid-template-columns: 96px minmax(118px, 1fr) auto;
  gap: 10px;
}

.bundle-stepper {
  display: inline-grid;
  grid-template-columns: 34px minmax(52px, auto) 34px;
  align-items: center;
  min-height: 38px;
  border: 1px solid #cbd3dc;
  border-radius: 6px;
  overflow: hidden;
  background: white;
}

.bundle-stepper button {
  height: 100%;
  border: 0;
  background: #f3f6f8;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.bundle-stepper button:hover {
  background: #e3ece8;
}

.bundle-stepper input,
.bundle-stepper span {
  width: 100%;
  border: 0;
  background: white;
  color: var(--text);
  padding: 7px 6px;
  text-align: center;
  font-weight: 800;
}

.bundle-stepper input:focus {
  outline: 0;
}

.bundle-estimate {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.cart-stepper {
  grid-template-columns: 32px minmax(58px, auto) 32px;
  width: max-content;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.product-specs span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
}

.client-app .page {
  width: min(1240px, calc(100% - 36px));
  padding-top: 30px;
}

.client-app .page-heading {
  margin-bottom: 22px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 111, 91, 0.14);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(32, 36, 42, 0.06);
}

.client-app .page-heading h1 {
  font-size: clamp(30px, 3.2vw, 44px);
}

.client-app .page-heading .muted-text {
  max-width: 720px;
  color: #5d6874;
}

.client-app .button-row,
.client-app .filter-form {
  flex-wrap: wrap;
}

.client-app .filter-form {
  padding: 8px;
  background: #f3f7f5;
  border: 1px solid #dbe5df;
  border-radius: 8px;
}

.client-app .filter-form select,
.client-app .inline-form select,
.client-app .inline-form input {
  border-color: #d5ded9;
  background: #fff;
}

.client-app .primary-button {
  box-shadow: 0 10px 22px rgba(31, 111, 91, 0.18);
}

.client-app .secondary-button {
  border-color: #d7e0dc;
  background: #fbfcfc;
}

.client-app .panel,
.client-app .table-shell,
.client-app .product-card,
.client-app .detail-panel,
.client-app .media-panel,
.client-app .cart-summary,
.client-app .order-group,
.client-app .invoice-document,
.client-app .empty-state {
  border-color: #dce5e0;
  box-shadow: 0 16px 40px rgba(32, 36, 42, 0.06);
}

.client-app .panel,
.client-app .detail-panel {
  padding: 26px;
}

.client-app .panel h2,
.client-app .section-title h2 {
  color: #18231f;
}

.client-app .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.client-app .product-card {
  display: grid;
  align-content: start;
  overflow: hidden;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.client-app .product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 111, 91, 0.34);
  box-shadow: 0 22px 46px rgba(32, 36, 42, 0.11);
}

.client-app .product-image-frame {
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, rgba(31, 111, 91, 0.04), rgba(191, 107, 33, 0.06)),
    #fff;
}

.client-app .product-image-frame img {
  padding: 8px;
  object-fit: contain;
}

.client-app .card-body {
  gap: 13px;
  padding: 17px;
}

.client-app .card-body h2 {
  color: #1d2824;
  font-size: 18px;
  line-height: 1.28;
}

.client-app .meta-row {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.client-app .meta-row strong {
  color: var(--primary-dark);
  font-size: 20px;
}

.client-app .product-specs {
  gap: 7px;
}

.client-app .product-specs span {
  border-color: #dbe5df;
  background: #f4f8f6;
  color: #56616c;
}

.client-app .inline-cart-form {
  grid-template-columns: minmax(112px, 0.8fr) minmax(150px, 1fr);
  gap: 9px;
  padding: 12px;
  background: #f7faf8;
  border: 1px solid #e0e8e4;
  border-radius: 8px;
}

.client-app .inline-cart-form select {
  min-height: 42px;
}

.client-app .inline-cart-form .primary-button {
  grid-column: 1 / -1;
  width: 100%;
  white-space: nowrap;
}

.client-app .bundle-stepper {
  border-color: #d2ded8;
  border-radius: 7px;
}

.client-app .bundle-stepper button {
  background: #edf4f0;
  color: var(--primary-dark);
}

.client-app .bundle-estimate {
  padding-top: 2px;
  color: #66717b;
}

.client-app .detail-layout {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
}

.client-app .media-panel {
  background: #fff;
}

.client-app .detail-image {
  min-height: 0;
  aspect-ratio: 1;
}

.client-app .detail-panel h1 {
  font-size: clamp(30px, 3vw, 42px);
}

.client-app .stats-grid div,
.client-app .metric-grid article {
  background: #f7faf8;
  border-color: #dde6e1;
}

.client-app .stats-grid strong,
.client-app .metric-grid strong,
.client-app .cart-summary strong {
  color: var(--primary-dark);
}

.client-app .cart-product img {
  width: 84px;
  height: 62px;
  border: 1px solid #dce5e0;
  background: #fff;
}

.client-app .cart-summary {
  background: #fff;
  border-radius: 8px;
}

.client-app .order-group {
  border-radius: 8px;
  background: #fff;
}

.client-app .order-group-header {
  background: linear-gradient(180deg, #ffffff, #f8fbf9);
}

.client-app .order-group-summary {
  background: #f4f8f6;
}

.client-app .order-group-total > strong {
  color: var(--primary-dark);
}

.client-app .table-shell {
  background: #fff;
  border-radius: 8px;
}

.client-app table {
  min-width: 900px;
}

.client-app th {
  background: #f4f8f6;
  color: #52606b;
}

.client-app td {
  color: #28322f;
}

.client-app tbody tr:hover td {
  background: #fbfdfc;
}

.client-app .tag {
  border-radius: 6px;
}

.client-app .info-list {
  gap: 16px;
}

.client-app .info-list div {
  min-width: 0;
  padding: 12px;
  background: #f8fbf9;
  border: 1px solid #e0e8e4;
  border-radius: 8px;
}

.client-app .info-list dd {
  overflow-wrap: anywhere;
}

.client-app .logistics-choice,
.client-app .weight-options {
  border-color: #dce5e0;
  background: #f7faf8;
}

.client-app .invoice-document {
  max-width: 980px;
  border-radius: 8px;
}

.client-app .invoice-topline {
  border-bottom-color: var(--primary-dark);
}

.client-app .invoice-brand {
  color: var(--primary-dark);
}

.client-app .invoice-table th {
  background: #f4f8f6;
}

.client-app .invoice-note {
  background: #f6faf8;
}

.client-app .empty-state {
  background:
    linear-gradient(180deg, rgba(31, 111, 91, 0.04), rgba(255, 255, 255, 0)),
    #fff;
}

.client-app .cart-popover {
  border-color: rgba(31, 111, 91, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(20, 45, 38, 0.18);
}

.client-app .cart-popover-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #e1e9e5;
}

.client-app .cart-popover-header span {
  background: var(--primary-dark);
}

.cart-popover {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: grid;
  gap: 12px;
  width: min(330px, calc(100vw - 32px));
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(28, 39, 48, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cart-popover-added {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(25, 94, 72, 0.28);
}

.cart-popover-header,
.cart-popover-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-popover-header span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 7px;
  color: white;
  background: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.cart-popover-items {
  display: grid;
  gap: 9px;
  max-height: 154px;
  overflow: auto;
}

.cart-popover-item {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.cart-popover-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: grid;
  gap: 12px;
}

.floating-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: white;
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(20, 45, 38, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.floating-icon-button:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(20, 45, 38, 0.28);
}

.floating-icon-button svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.whatsapp-button {
  background: #25d366;
}

.whatsapp-button:hover {
  background: #1fb65a;
}

.compact-cart-button {
  background: var(--primary-dark);
}

.compact-cart-button span {
  position: absolute;
  top: -4px;
  right: -4px;
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  color: white;
  background: var(--accent);
  border: 2px solid white;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.dashboard-emphasis {
  display: inline-block;
  color: var(--primary);
  font-size: 34px;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-product img {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
}

.weight-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.weight-options legend {
  padding: 0 4px;
  color: #3c434d;
  font-size: 14px;
  font-weight: 700;
}

.weight-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.weight-options input {
  width: auto;
}

.logistics-choice {
  display: flex !important;
  grid-template-columns: auto 1fr !important;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.logistics-choice input {
  width: auto !important;
  margin-top: 3px;
}

.logistics-choice span {
  display: grid;
  gap: 4px;
}

.logistics-choice small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.admin-image-preview {
  width: 180px;
  align-self: end;
}

.admin-product-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.admin-product-name img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 4px;
  object-fit: cover;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cart-summary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.cart-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
}

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

.panel.narrow {
  width: min(860px, 100%);
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.info-list.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-list div {
  display: grid;
  gap: 4px;
}

.info-list dt {
  color: var(--muted);
  font-size: 13px;
}

.info-list dd {
  margin: 0;
  font-weight: 700;
}

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

.table-shell.bare {
  box-shadow: none;
  border: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  background: #fbfcfd;
}

tr:last-child td {
  border-bottom: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.tag.success {
  color: var(--success);
  background: #e6f4ed;
}

.tag.warning {
  color: var(--warning);
  background: #fff3d0;
}

.tag.danger {
  color: var(--danger);
  background: #ffe4e4;
}

.tag.muted {
  color: var(--muted);
  background: #edf0f3;
}

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

.proof-item {
  display: grid;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.proof-item:first-of-type {
  padding-top: 0;
}

.proof-item:last-child {
  border-bottom: 0;
}

.customer-proofs {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.customer-proofs h3 {
  margin: 0;
  font-size: 16px;
}

.customer-proof-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #f8fbfa;
  border: 1px solid #dbe7e2;
  border-radius: 8px;
}

.proof-image-link,
.proof-pdf-link {
  display: grid;
  width: 96px;
  height: 76px;
  overflow: hidden;
  place-items: center;
  background: #edf4f1;
  border: 1px solid #d4e2dc;
  border-radius: 6px;
}

.proof-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof-pdf-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.proof-file-name {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-weight: 700;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.customer-proof-item p {
  margin: 6px 0;
}

.bank-relationship {
  margin: 16px 0 10px;
  padding: 12px;
  color: #155b4d;
  background: #eef8f4;
  border-left: 3px solid var(--primary);
  border-radius: 4px;
  line-height: 1.55;
}

@media (max-width: 520px) {
  .customer-proof-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .proof-image-link,
  .proof-pdf-link {
    width: 76px;
    height: 64px;
  }
}

.review-form {
  margin-top: 0;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 320px;
  padding: 40px;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.empty-state.compact {
  min-height: 120px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
}

.invoice-document {
  max-width: 940px;
  margin: 0 auto 36px;
  padding: 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.invoice-topline,
.invoice-parties,
.invoice-totals {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.invoice-topline {
  padding-bottom: 26px;
  border-bottom: 3px solid var(--primary);
}

.invoice-brand {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
}

.invoice-topline h2 {
  margin: 7px 0 0;
  font-size: 30px;
  letter-spacing: 0;
}

.invoice-meta {
  display: grid;
  gap: 9px;
  min-width: 250px;
}

.invoice-meta div,
.invoice-totals div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.invoice-meta span,
.invoice-parties > div > span,
.invoice-totals span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.invoice-parties {
  padding: 28px 0;
}

.invoice-parties > div {
  flex: 1;
}

.invoice-parties strong {
  display: block;
  margin-top: 8px;
}

.invoice-parties p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
}

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

.invoice-table th {
  background: #f5f8f6;
}

.invoice-table td span {
  color: var(--muted);
  font-size: 12px;
}

.invoice-totals {
  width: min(100%, 360px);
  margin: 26px 0 0 auto;
  display: grid;
  gap: 10px;
}

.invoice-grand-total {
  padding-top: 12px;
  border-top: 2px solid var(--text);
  font-size: 18px;
}

.invoice-note {
  margin-top: 30px;
  padding: 16px;
  background: #f5f8f6;
  border-left: 3px solid var(--primary);
}

.invoice-note p,
.invoice-confirmed {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.invoice-document form {
  margin-top: 24px;
}

@media print {
  .topbar,
  .invoice-actions,
  .cart-popover,
  .no-print {
    display: none !important;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .invoice-document {
    max-width: none;
    margin: 0;
    padding: 24px;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 900px) {
  .topbar,
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .country-progress-bar {
    top: 101px;
  }

  .country-progress-inner {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .auth-shell,
  .auth-experience,
  .auth-register-experience,
  .detail-layout,
  .two-column {
    grid-template-columns: 1fr;
  }

  .auth-experience {
    gap: 28px;
    min-height: auto;
  }

  .auth-copy-panel {
    padding: 18px 0 0;
  }

  .auth-modern-form,
  .auth-assurance,
  .auth-experience .switch-link {
    max-width: none;
  }

  .auth-gallery {
    grid-template-rows: minmax(260px, 0.95fr) minmax(210px, 0.85fr);
    min-height: 500px;
    margin-right: 0;
  }

  .cart-popover {
    right: 16px;
    bottom: 16px;
  }

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

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

  .detail-image {
    min-height: 300px;
  }

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

  .invoice-topline,
  .invoice-parties {
    flex-direction: column;
  }

  .client-app .topbar {
    min-height: auto;
  }

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

  .client-app .page-heading {
    padding: 20px;
  }

  .client-app .detail-layout {
    gap: 18px;
  }

  .client-app .detail-image {
    aspect-ratio: 16 / 10;
  }

  .client-app .cart-summary {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 14px 16px;
  }

  .page {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .product-grid,
  .metric-grid,
  .country-stats,
  .grid-form,
  .stats-grid,
  .order-form,
  .info-list.four {
    grid-template-columns: 1fr;
  }

  .filter-form,
  .inline-form,
  .cart-summary,
  .order-group-header,
  .order-group-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .order-group-total {
    justify-items: start;
  }

  .inline-form input,
  .inline-form select,
  .filter-form select {
    width: 100%;
  }

  .inline-cart-form {
    grid-template-columns: 1fr;
  }

  .auth-panel,
  .auth-aside,
  .panel,
  .detail-panel {
    padding: 20px;
  }

  .auth-copy-panel h1 {
    font-size: 38px;
  }

  .auth-lead {
    font-size: 16px;
  }

  .auth-modern-form {
    margin-top: 26px;
  }

  .auth-assurance {
    margin-top: 34px;
  }

  .auth-assurance-title,
  .auth-assurance-item {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 13px;
  }

  .auth-assurance-title {
    font-size: 16px;
  }

  .auth-gallery {
    grid-template-rows: minmax(210px, 1fr) minmax(170px, 0.85fr);
    gap: 6px;
    min-height: 390px;
  }

  .invoice-document {
    padding: 20px;
  }

  .invoice-topline h2 {
    font-size: 24px;
  }

  .client-app .page {
    width: min(100% - 20px, 1240px);
  }

  .client-app .page-heading {
    padding: 18px;
  }

  .client-app .page-heading h1 {
    font-size: 30px;
  }

  .client-app .nav a,
  .client-app .ghost-button,
  .client-app .currency-form select,
  .client-app .language-form select {
    min-height: 36px;
  }

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

  .client-app .inline-cart-form {
    grid-template-columns: 1fr;
  }

  .client-app .inline-cart-form .primary-button,
  .client-app .inline-cart-form select,
  .client-app .inline-form button,
  .client-app .filter-form button {
    width: 100%;
  }

  .client-app .panel,
  .client-app .detail-panel {
    padding: 20px;
  }

  .client-app .info-list div {
    padding: 10px;
  }

  .client-app .cart-popover {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

  .floating-actions {
    right: 12px;
    bottom: 12px;
  }

  .floating-icon-button {
    width: 48px;
    height: 48px;
  }

  .client-app .invoice-document {
    padding: 20px;
  }
}
