:root {
  --paper: #fff8ee;
  --paper-deep: #f2e8dc;
  --paper-light: #ffffff;
  --ink: #172b4d;
  --ink-soft: #667085;
  --line: rgba(23, 43, 77, 0.13);
  --wine: #f15a24;
  --wine-dark: #d9480f;
  --brown: #172b4d;
  --gold: #ff7a33;
  --gold-soft: #ffd4c2;
  --sage: #2d8c67;
  --danger: #d94b3d;
  --success: #2d8c67;
  --shadow: 0 24px 70px rgba(23, 43, 77, 0.13);
  --shadow-soft: 0 12px 30px rgba(23, 43, 77, 0.08);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --serif: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --sans: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

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

.history-change-list,
.transfer-job-list,
.transfer-error-list,
.market-ranking-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.history-change-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(220px, 1fr) minmax(130px, .55fr) 90px;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
}

.history-change-main,
.history-change-row > div,
.transfer-job-row > div:first-child {
  min-width: 0;
}

.history-change-main strong,
.history-change-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-change-main .status-badge {
  margin-right: 8px;
}

.history-value-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.history-value-pair small {
  grid-column: 1 / -1;
  color: var(--ink-soft);
}

.history-value-pair span,
.history-value-pair strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-value-pair i {
  color: var(--wine);
  font-style: normal;
}

.transfer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 16px;
  margin-bottom: 16px;
}

.transfer-upload-card form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.transfer-report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.data-export-tile {
  min-height: 94px;
  padding: 15px;
  text-align: left;
  border: 1px solid rgba(241, 90, 36, .22);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255, 212, 194, .32), #fff);
  cursor: pointer;
}

.data-export-tile strong,
.data-export-tile span {
  display: block;
}

.data-export-tile span {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 12px;
}

.transfer-job-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) 90px minmax(170px, .65fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
}

.transfer-job-row small {
  display: block;
  color: var(--ink-soft);
}

.transfer-error-list > div {
  display: grid;
  grid-template-columns: 90px 120px 1fr;
  gap: 10px;
  padding: 11px 14px;
  background: #fff;
}

.adapter-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.adapter-result-grid > div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-light);
}

.adapter-result-grid small,
.adapter-result-grid strong {
  display: block;
}

.code-field {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12px;
}

.market-shell {
  max-width: 1180px;
}

.market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: 30px;
  align-items: end;
  padding: 42px;
  color: #fff8ee;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(112deg, rgba(241, 90, 36, .95), rgba(217, 72, 15, .92) 34%, rgba(23, 43, 77, .98) 72%),
    var(--ink);
  box-shadow: var(--shadow);
}

.market-hero h1 {
  margin: 7px 0 14px;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 76px);
  line-height: .98;
}

.market-hero h1 em {
  color: #ffe0c8;
}

.market-hero aside {
  padding: 19px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.08);
}

.market-hero aside small,
.market-hero aside strong,
.market-hero aside span {
  display: block;
}

.market-hero aside strong {
  margin: 8px 0;
  font-size: 18px;
}

.market-tabs {
  margin: 18px 0;
}

.market-rank-row {
  display: grid;
  grid-template-columns: 58px minmax(220px, 1.4fr) 130px 100px 110px;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.market-rank-row:hover {
  background: #fff8ee;
}

.market-rank-number {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 800;
}

.market-rank-main strong,
.market-rank-main small,
.market-price small,
.market-discount small {
  display: block;
}

.market-rank-main small,
.market-price small,
.market-discount small {
  color: var(--ink-soft);
  font-size: 11px;
}

.market-price strong {
  color: var(--wine-dark);
  font-size: 20px;
}

.market-freshness {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  color: var(--ink-soft);
  font-size: 11px;
}

.market-freshness span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-soft);
}

.market-freshness.fresh span { background: var(--success); }
.market-freshness.recent span { background: var(--gold); }
.market-freshness.stale span { background: var(--danger); }

.price-sparkline {
  height: 170px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 20px 8px 4px;
  border-bottom: 1px solid var(--line);
}

.price-spark-bar {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: help;
}

.price-spark-bar i {
  width: 100%;
  min-width: 4px;
  height: var(--bar-height);
  border-radius: 5px 5px 1px 1px;
  background: linear-gradient(to top, var(--ink), var(--wine));
}

@media (max-width: 900px) {
  .history-filter-grid { grid-template-columns: 1fr 1fr; }
  .history-change-row,
  .transfer-job-row { grid-template-columns: 1fr; }
  .transfer-layout,
  .market-hero { grid-template-columns: 1fr; }
  .market-rank-row { grid-template-columns: 44px minmax(0, 1fr) 100px; }
  .market-discount,
  .market-freshness { display: none; }
  .adapter-result-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .history-filter-grid,
  .transfer-report-grid,
  .adapter-result-grid { grid-template-columns: 1fr; }
  .market-hero { padding: 28px 22px; }
  .market-rank-row { grid-template-columns: 38px minmax(0, 1fr); }
  .market-price { grid-column: 2; }
  .transfer-error-list > div { grid-template-columns: 70px 90px 1fr; }
}

.admin-cigar-search-card form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-cigar-result-meta {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 12px;
}

.admin-cigar-result-meta strong {
  color: var(--ink);
}

.admin-cigar-load-more {
  display: flex;
  justify-content: center;
  padding: 20px 0 4px;
  color: var(--ink-soft);
  font-size: 12px;
}

.admin-cigar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.admin-cigar-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 108px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.admin-cigar-card:hover {
  transform: translateY(-2px);
  border-color: rgba(241, 90, 36, .35);
}

.admin-cigar-thumb {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--paper-deep);
  color: var(--wine);
  font-family: var(--serif);
  font-size: 30px;
}

.admin-cigar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-cigar-card strong,
.admin-cigar-card small {
  display: block;
}

.admin-cigar-card small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
}

.admin-cigar-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-cigar-editor-head h2 {
  margin: 2px 0;
}

.admin-cigar-editor-head small {
  color: var(--ink-soft);
}

.admin-cigar-images {
  margin: 12px 0 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.admin-cigar-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-cigar-image {
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
}

.admin-cigar-image.primary {
  border-color: var(--wine);
}

.admin-cigar-image > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f7f2e9;
}

.admin-cigar-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 8px;
}

.admin-cigar-image-actions button {
  font-size: 11px;
}

.admin-cigar-image-actions button:disabled {
  opacity: .38;
  cursor: default;
}

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

@media (max-width: 1100px) {
  .admin-cigar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-cigar-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .admin-cigar-search-card form,
  .admin-cigar-grid,
  .admin-cigar-form-grid { grid-template-columns: 1fr; }
  .admin-cigar-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-cigar-card { grid-template-columns: 64px minmax(0, 1fr); }
  .admin-cigar-thumb { width: 64px; height: 64px; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 1%, rgba(241, 90, 36, 0.08), transparent 28rem),
    radial-gradient(circle at 94% 18%, rgba(23, 43, 77, 0.055), transparent 26rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(241, 90, 36, 0.35);
  outline-offset: 3px;
}

img,
svg {
  display: block;
}

img,
video {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.23;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.demo-strip {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 5px 18px;
  color: #fff8ee;
  background: #172b4d;
  font-size: 12px;
  letter-spacing: 0.025em;
  text-align: center;
}

.demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f15a24;
  box-shadow: 0 0 0 4px rgba(241, 90, 36, 0.16);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: 78px;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(23, 43, 77, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 24px rgba(23, 43, 77, 0.05);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--wine);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 20px rgba(74, 38, 31, 0.18);
}

.brand-mark svg {
  width: 31px;
  fill: #ead9b9;
  stroke: none;
}

.brand-mark svg path:last-child {
  fill: none;
  stroke: var(--wine);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.brand-copy {
  display: grid;
  gap: 3px;
  line-height: 1.15;
}

.brand-logo {
  width: auto;
  height: 37px;
  object-fit: contain;
  object-position: left center;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: 0.14em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(23, 43, 77, 0.09);
  border-radius: 999px;
  background: #fff8ee;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover {
  color: var(--ink);
  background: #fff;
}

.nav-link.active {
  color: #fff;
  background: var(--wine);
  box-shadow: 0 7px 15px rgba(241, 90, 36, 0.22);
}

.nav-icon {
  display: inline-grid;
}

.nav-link svg,
.mobile-nav-link svg,
.icon-button svg,
.button-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-chip,
.tag,
.status-badge,
.identity-badge,
.mode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: max-content;
  border-radius: 999px;
  white-space: nowrap;
}

.status-chip {
  min-height: 29px;
  padding: 0 11px;
  color: var(--wine);
  background: rgba(241, 90, 36, 0.09);
  font-size: 11px;
}

.environment-chip {
  border: 1px solid rgba(190, 79, 48, 0.32);
  background: rgba(190, 79, 48, 0.1);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.environment-chip[data-environment="preview"] {
  border-color: rgba(160, 110, 36, 0.32);
  background: rgba(211, 163, 74, 0.14);
  color: #80551d;
}

.icon-button {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  background: var(--paper-light);
}

.language-label {
  font-size: 11px;
  font-weight: 700;
}

.cart-count {
  position: absolute;
  top: -3px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 99px;
  color: #fff;
  background: var(--wine);
  font-size: 10px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 21px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  color: #fff;
  background: var(--wine);
  box-shadow: 0 10px 22px rgba(241, 90, 36, 0.2);
}

.primary-button:hover {
  transform: translateY(-1px);
  background: var(--wine-dark);
  box-shadow: 0 13px 26px rgba(241, 90, 36, 0.26);
}

.primary-button.compact {
  min-height: 38px;
  padding: 0 17px;
  font-size: 12px;
}

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

.secondary-button {
  color: var(--wine);
  border-color: rgba(23, 43, 77, 0.2);
  background: #fff;
}

.secondary-button:hover,
.ghost-button:hover {
  background: #fff4e9;
}

.ghost-button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink-soft);
  border-color: var(--line);
  background: transparent;
}

.danger-button {
  color: #fff;
  background: var(--danger);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

main {
  min-height: calc(100vh - 109px);
  min-width: 0;
  overflow-x: hidden;
  outline: none;
}

.page-shell {
  width: min(1440px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 34px clamp(18px, 4vw, 64px) 90px;
}

.page-shell.narrow {
  width: min(1240px, 100%);
}

.page-loading {
  min-height: 60vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: var(--ink-soft);
}

.loading-seal {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(241, 90, 36, 0.18);
  border-top-color: var(--wine);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--wine);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 21px;
}

.section-heading h2,
.section-heading h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.section-heading h2 {
  font-size: clamp(25px, 3vw, 35px);
}

.section-heading p {
  max-width: 620px;
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  min-height: 445px;
  overflow: hidden;
  border: 1px solid rgba(23, 43, 77, 0.09);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.hero > *,
.detail-hero > *,
.library-layout > *,
.forum-layout > *,
.two-column > *,
.me-layout > * {
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5.5vw, 78px);
  background: linear-gradient(135deg, #fff 0%, #fffaf3 100%);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5.2vw, 75px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.hero h1 em {
  color: var(--wine);
  font-style: normal;
}

.hero-description {
  max-width: 610px;
  margin: 20px 0 28px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.hero-search {
  position: relative;
  width: 100%;
  max-width: 640px;
  min-width: 0;
}

.hero-search input,
.field-input,
.field-select,
.field-textarea {
  width: 100%;
  border: 1px solid rgba(23, 43, 77, 0.13);
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border 160ms ease, box-shadow 160ms ease;
}

.hero-search input {
  height: 56px;
  padding: 0 58px 0 19px;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(23, 43, 77, 0.08);
}

.hero-search button {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--wine);
  cursor: pointer;
}

.hero-search button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.hero-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.hero-quick button {
  padding: 5px 10px;
  border: 0;
  border-radius: 99px;
  color: var(--ink-soft);
  border: 1px solid rgba(23, 43, 77, 0.08);
  background: #fff;
  font-size: 11px;
  cursor: pointer;
}

.hero-art {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(241, 90, 36, 0.32), transparent 25%),
    linear-gradient(145deg, #203a61, #0f203b 72%);
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.hero-art::before {
  width: 430px;
  height: 430px;
  top: 4%;
  left: 14%;
}

.hero-art::after {
  width: 300px;
  height: 300px;
  top: 14%;
  left: 25%;
}

.cigar-illustration {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 72%;
  aspect-ratio: 2.8 / 1;
  transform: translate(-50%, -50%) rotate(-22deg);
  filter: drop-shadow(0 30px 28px rgba(30, 16, 10, 0.35));
}

.cigar-illustration .body-part {
  position: absolute;
  top: 19%;
  left: 15%;
  width: 60%;
  height: 60%;
  border-radius: 48% 5% 5% 48% / 50% 6% 6% 50%;
  background:
    linear-gradient(90deg, rgba(255, 220, 154, 0.12), transparent 35%, rgba(40, 18, 13, 0.18)),
    repeating-linear-gradient(95deg, rgba(58, 28, 20, 0.16) 0 2px, transparent 2px 8px),
    #9c5e38;
}

.cigar-illustration .band-part {
  position: absolute;
  top: 13%;
  left: 42%;
  width: 22%;
  height: 72%;
  border: 1px solid #f15a24;
  border-radius: 4px;
  background:
    linear-gradient(90deg, #d9480f, #f15a24 45%, #d9480f),
    var(--wine);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.35);
}

.cigar-illustration .ash-part {
  position: absolute;
  z-index: 3;
  top: 19%;
  right: 13%;
  width: 20%;
  height: 60%;
  clip-path: polygon(0 0, 88% 15%, 82% 60%, 100% 86%, 5% 100%);
  background: repeating-linear-gradient(105deg, #b6a792 0 4px, #8f8374 4px 7px);
}

.hero-label {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: #fff;
  background: rgba(9, 24, 45, 0.45);
  backdrop-filter: blur(10px);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.stat-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 252, 246, 0.52);
}

.stat-item {
  position: relative;
  padding: 18px 22px;
}

.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 1px;
  background: var(--line);
}

.stat-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 650;
}

.stat-item span {
  color: var(--ink-soft);
  font-size: 11px;
}

.content-section {
  margin-top: 54px;
}

.site-footer {
  width: min(1440px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 20px clamp(18px, 4vw, 64px) 32px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
}

.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.segmented,
.tag-row,
.filter-row,
.mode-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row .field-select {
  width: auto;
  min-width: 142px;
  height: 39px;
  padding-right: 30px;
  color: var(--ink-soft);
  background: rgba(255, 252, 246, 0.68);
  font-size: 11px;
}

.price-range-filter {
  display: flex;
  align-items: center;
  gap: 7px;
}

.price-range-filter > i {
  width: 12px;
  height: 1px;
  flex: 0 0 12px;
  background: rgba(78, 58, 40, 0.2);
}

.price-range-input {
  width: 112px;
  height: 39px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  background: rgba(255, 252, 246, 0.68);
  font-size: 11px;
}

.price-range-input:focus-within {
  border-color: rgba(109, 56, 44, 0.42);
  box-shadow: 0 0 0 3px rgba(109, 56, 44, 0.07);
}

.price-range-input input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  -moz-appearance: textfield;
}

.price-range-input input::placeholder {
  color: var(--ink-soft);
  opacity: 0.78;
}

.price-range-input input::-webkit-inner-spin-button,
.price-range-input input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.filter-reset-button {
  height: 39px;
  padding: 0 16px;
  border: 1px solid rgba(109, 56, 44, 0.22);
  border-radius: 12px;
  color: var(--wine);
  background: rgba(109, 56, 44, 0.045);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}

.filter-reset-button:hover:not(:disabled) {
  border-color: rgba(109, 56, 44, 0.38);
  background: rgba(109, 56, 44, 0.09);
}

.filter-reset-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.library-primary-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
}

.brand-select {
  position: relative;
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 270px;
}

.library-primary-filters .brand-select {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.filter-select {
  position: relative;
  min-width: 0;
}

.filter-select-trigger {
  width: 100%;
  height: 41px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 252, 246, 0.68);
  font-family: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.filter-select-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-select-trigger:focus-visible {
  border-color: rgba(109, 56, 44, 0.42);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(109, 56, 44, 0.07);
}

.filter-select-trigger:disabled {
  color: var(--ink-soft);
  background: rgba(255, 252, 246, 0.38);
  cursor: not-allowed;
  opacity: 0.72;
}

.filter-select-chevron {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin: -4px 2px 0 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.brand-select-trigger {
  width: 100%;
  height: 39px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 7px 0 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  background: rgba(255, 252, 246, 0.68);
  cursor: text;
}

.brand-select-trigger:focus-within {
  border-color: rgba(109, 56, 44, 0.42);
  box-shadow: 0 0 0 3px rgba(109, 56, 44, 0.07);
}

.brand-select-icon {
  min-width: 0;
  display: flex;
  align-items: center;
}

.brand-select-icon img,
.brand-select-option img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: contain;
  background: #fffaf2;
}

.brand-select-input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: inherit;
  font-size: 11px;
}

.brand-select-input::placeholder {
  color: var(--ink-soft);
  opacity: 0.72;
}

.brand-select-toggle {
  width: 24px;
  height: 30px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}

.brand-select-placeholder {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 11px;
  background: rgba(109, 56, 44, 0.055);
}

.brand-select-chevron {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin: -4px 2px 0 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.brand-select-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  width: 290px;
  max-width: min(330px, calc(100vw - 42px));
  max-height: 310px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 251, 244, 0.98);
  box-shadow: 0 18px 45px rgba(62, 39, 27, 0.16);
  backdrop-filter: blur(18px);
}

.grouped-select-menu {
  width: min(580px, calc(100vw - 42px));
  max-width: min(580px, calc(100vw - 42px));
  max-height: 370px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 31px;
  overflow: hidden;
  padding: 0;
}

.series-select-menu {
  right: 0;
  left: auto;
}

.brand-select-menu[hidden] {
  display: none;
}

.grouped-select-body {
  min-width: 0;
  max-height: 370px;
  overflow-y: auto;
  padding: 6px;
  scroll-behavior: smooth;
}

.filter-alpha-index {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
  min-height: 0;
  padding: 6px 3px;
  overflow-y: auto;
  border-left: 1px solid rgba(78, 58, 40, 0.1);
  background: rgba(247, 241, 231, 0.9);
}

.filter-alpha-index button {
  min-height: 17px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: var(--ink-soft);
  background: transparent;
  font-family: inherit;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.filter-alpha-index button:hover,
.filter-alpha-index button:focus-visible {
  color: #fff;
  background: var(--wine);
  outline: 0;
}

.filter-alpha-group {
  scroll-margin-top: 26px;
}

.filter-alpha-heading {
  position: sticky;
  z-index: 1;
  top: -6px;
  margin: 0;
  padding: 7px 8px 5px;
  color: var(--wine);
  background: rgba(255, 251, 244, 0.97);
  font-family: inherit;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.filter-alpha-all {
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(78, 58, 40, 0.08);
  border-radius: 9px 9px 0 0;
}

.brand-select-option {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.brand-select-option:hover,
.brand-select-option.active,
.brand-select-option.keyboard-active {
  background: rgba(109, 56, 44, 0.07);
}

.brand-select-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-select-option small {
  color: var(--ink-soft);
  font-size: 9px;
}

.brand-option-label {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  overflow: hidden;
}

.brand-option-label strong,
.brand-option-label em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.brand-option-label strong {
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.brand-option-label em {
  color: var(--ink-soft);
  font-size: 10px;
}

.brand-select-empty {
  padding: 18px 12px;
  color: var(--ink-soft);
  font-size: 10px;
  text-align: center;
}

.json-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 10px;
  color: var(--ink-soft);
  font-size: 10px;
}

.load-more-row {
  display: flex;
  justify-content: center;
  padding: 20px 0 2px;
}

.load-more-row .secondary-button {
  min-width: 190px;
}

.segmented {
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 252, 246, 0.56);
}

.segmented button,
.mode-tab {
  min-height: 36px;
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.segmented button.active,
.mode-tab.active {
  color: var(--ink);
  background: #fffaf2;
  box-shadow: 0 5px 14px rgba(54, 37, 24, 0.08);
}

.inline-search {
  min-width: min(310px, 100%);
  position: relative;
}

.inline-search input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 252, 246, 0.62);
  outline: none;
}

.inline-search svg {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 17px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.8;
}

.category-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 0.85fr;
  gap: 12px;
}

.category-card {
  position: relative;
  min-height: 144px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.58);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.category-card.active {
  color: #fff7eb;
  border-color: transparent;
  background: var(--wine);
}

.category-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 620;
}

.category-card p {
  margin: 4px 0 0;
  color: inherit;
  opacity: 0.65;
  font-size: 11px;
}

.category-card .category-number {
  align-self: flex-end;
  font-family: var(--serif);
  font-size: 35px;
  opacity: 0.18;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -35px;
  width: 110px;
  height: 110px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.12;
}

.library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
  margin-top: 30px;
}

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

.cigar-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 252, 246, 0.64);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cigar-card.has-image {
  display: flex;
  flex-direction: column;
}

.cigar-card.has-image .cigar-card-main {
  flex: 0 0 auto;
}

.cigar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.cigar-card-media {
  position: relative;
  height: clamp(132px, 9vw, 168px);
  overflow: hidden;
  display: grid;
  place-items: center;
  margin: -20px -20px 16px;
  padding: clamp(10px, 1vw, 16px) clamp(12px, 1.4vw, 22px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.7), transparent 35%),
    #e9dfcf;
}

.cigar-card.has-image .cigar-card-media {
  flex: 1 1 auto;
}

.cigar-card-media.is-panorama-image {
  height: clamp(92px, 6vw, 116px);
  padding-block: clamp(7px, 0.55vw, 10px);
}

.cigar-card-media.is-wide-image {
  height: clamp(150px, 10vw, 192px);
}

.cigar-card-media.is-square-image {
  height: clamp(196px, 12.5vw, 238px);
}

.cigar-card-media.is-portrait-image {
  height: clamp(236px, 15vw, 292px);
}

.cigar-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-orientation: from-image;
  filter: drop-shadow(0 8px 11px rgba(54, 33, 20, 0.16));
  transition: transform 220ms ease;
}

.cigar-card:hover .cigar-card-media img {
  transform: scale(1.035);
}

.image-count {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 99px;
  color: #6e625a;
  background: rgba(255, 252, 246, 0.82);
  font-size: 10px;
}

.cigar-card.has-image .cigar-card-main {
  max-width: 100%;
}

.cigar-card-art {
  position: absolute;
  top: 15px;
  right: 16px;
  width: 105px;
  height: 150px;
  border-radius: 999px 999px 18px 18px;
  opacity: 0.92;
  background:
    linear-gradient(100deg, rgba(255,255,255,.2), transparent 30%),
    repeating-linear-gradient(90deg, rgba(35,21,15,.08) 0 1px, transparent 1px 6px),
    var(--accent, #845139);
  box-shadow: inset -8px 0 22px rgba(34, 19, 12, 0.22);
  transform: rotate(9deg);
}

.cigar-card-art::after {
  content: "";
  position: absolute;
  top: 42px;
  left: 19px;
  width: 67px;
  height: 31px;
  border: 1px solid rgba(249, 227, 184, 0.7);
  border-radius: 3px;
  background: rgba(77, 36, 30, 0.78);
  box-shadow: inset 0 0 0 4px rgba(214, 183, 124, 0.28);
}

.cigar-card-main {
  position: relative;
  z-index: 2;
  max-width: calc(100% - 90px);
}

.cigar-card-brand {
  margin: 0 0 5px;
  color: var(--wine);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.cigar-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 1.35vw, 27px);
  font-weight: 650;
  line-height: 1.25;
}

.cigar-card .series {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.cigar-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cigar-card-copy {
  min-width: 0;
  flex: 1;
}

.cigar-score-badge {
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  margin-top: 1px;
  border-radius: 14px;
  color: #fff4df;
  border: 1px solid rgba(255, 244, 223, 0.18);
  background: linear-gradient(145deg, #7b4235, #5d2d25);
  box-shadow:
    0 10px 22px rgba(82, 39, 31, 0.22),
    inset 0 1px 0 rgba(255, 244, 223, 0.16);
}

.cigar-score-badge > span {
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.16em;
  line-height: 1;
  opacity: 0.76;
}

.cigar-score-badge strong {
  font-family: var(--sans);
  font-size: 27px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.06em;
}

.cigar-score-badge.medium {
  color: #36240f;
  border-color: rgba(72, 48, 20, 0.12);
  background: linear-gradient(145deg, #c8a15e, #a77c3f);
  box-shadow:
    0 10px 22px rgba(120, 85, 36, 0.18),
    inset 0 1px 0 rgba(255, 244, 223, 0.22);
}

.cigar-score-badge.low {
  color: #fff8ed;
  border-color: rgba(255, 248, 237, 0.14);
  background: linear-gradient(145deg, #b97865, #965847);
  box-shadow:
    0 10px 22px rgba(114, 66, 53, 0.17),
    inset 0 1px 0 rgba(255, 248, 237, 0.16);
}

.cigar-score-badge.empty {
  color: #847971;
  border-color: rgba(74, 54, 42, 0.08);
  background: #e4d8c9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.cigar-price-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  margin-top: 17px;
  padding: 7px 10px;
  border: 1px solid rgba(74, 54, 42, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.34);
}

.cigar-price-line::before {
  content: "";
  flex: 0 0 21px;
  width: 21px;
  height: 2px;
  background: #241b16;
}

.cigar-price-line span {
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.cigar-price-line strong {
  margin-left: auto;
  color: var(--wine);
  font-size: 12px;
  font-weight: 700;
}

.cigar-card:not(.has-image) .cigar-score-badge {
  flex-basis: 58px;
  width: 58px;
  height: 58px;
  border-radius: 12px;
}

.cigar-card:not(.has-image) .cigar-score-badge strong {
  font-size: 22px;
}

.score-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 23px;
}

.score-line strong {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--wine);
}

.score-line span {
  color: var(--ink-soft);
  font-size: 10px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.tag {
  min-height: 26px;
  padding: 0 10px;
  color: var(--ink-soft);
  border: 1px solid rgba(74, 54, 42, 0.12);
  font-size: 11px;
}

.tag.wine {
  color: var(--wine);
  border-color: rgba(101, 47, 43, 0.14);
  background: rgba(101, 47, 43, 0.06);
}

.tag.gold {
  color: #76531f;
  border-color: rgba(180, 138, 67, 0.2);
  background: rgba(180, 138, 67, 0.09);
}

.side-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: rgba(255, 252, 246, 0.58);
}

.side-panel + .side-panel {
  margin-top: 14px;
}

.side-panel h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 22px;
}

.side-panel > p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 11px;
}

.ranking-list {
  display: grid;
  gap: 2px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

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

.ranking-index {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 17px;
}

.ranking-item strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.ranking-item small {
  display: block;
  color: var(--ink-soft);
  font-size: 10px;
}

.ranking-score {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 19px;
}

.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.brand-pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}

.brand-pill.active {
  color: #fff8ed;
  background: var(--brown);
}

.empty-state {
  min-height: 230px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 30px;
  border: 1px dashed rgba(76, 52, 38, 0.2);
  border-radius: 20px;
  color: var(--ink-soft);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(330px, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 252, 246, 0.64);
  box-shadow: var(--shadow-soft);
}

.detail-art {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  background:
    radial-gradient(circle at 64% 22%, rgba(244, 220, 173, 0.38), transparent 26%),
    linear-gradient(145deg, #d6c5ad, #a98f75);
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background:
    radial-gradient(circle at 55% 18%, rgba(255, 255, 255, 0.6), transparent 34%),
    #d7c8b4;
}

.detail-photo-main {
  flex: 1;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(78, 52, 37, 0.11);
  border-radius: 22px;
  background: #f8f3ea;
  box-shadow: 0 16px 34px rgba(50, 31, 20, 0.12);
}

.detail-photo-main img {
  width: 100%;
  height: 100%;
  max-height: 390px;
  object-fit: contain;
}

.detail-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.detail-thumb {
  flex: 0 0 72px;
  height: 54px;
  padding: 5px;
  border: 1px solid rgba(74, 54, 42, 0.16);
  border-radius: 9px;
  background: rgba(255, 252, 246, 0.65);
  cursor: pointer;
}

.detail-thumb.active {
  border-color: var(--wine);
  box-shadow: inset 0 0 0 1px var(--wine);
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-art .big-cigar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76%;
  aspect-ratio: 4.6 / 1;
  transform: translate(-50%, -50%) rotate(-28deg);
  border-radius: 50% 3% 3% 50% / 50% 4% 4% 50%;
  background:
    linear-gradient(90deg, rgba(255,255,255,.13), transparent 38%, rgba(38,18,12,.2)),
    repeating-linear-gradient(96deg, rgba(46,20,15,.13) 0 2px, transparent 2px 7px),
    var(--accent, #855138);
  box-shadow: 0 25px 40px rgba(50, 28, 17, 0.32);
}

.detail-art .big-cigar::before {
  content: "";
  position: absolute;
  top: 16%;
  left: 34%;
  width: 31%;
  height: 68%;
  border: 1px solid #d1b275;
  border-radius: 3px;
  background: #592d27;
  box-shadow: inset 0 0 0 6px rgba(212, 184, 128, 0.4);
}

.detail-art .big-cigar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -5%;
  width: 21%;
  height: 100%;
  clip-path: polygon(0 0, 85% 14%, 74% 50%, 100% 84%, 4% 100%);
  background: repeating-linear-gradient(100deg, #b9ac98 0 5px, #8c8072 5px 8px);
}

.detail-copy {
  padding: clamp(30px, 5vw, 64px);
}

.detail-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.favorite-button {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.favorite-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.favorite-button.active {
  color: #8d691f;
  border-color: rgba(180, 138, 67, 0.32);
  background: rgba(226, 201, 143, 0.17);
}

.favorite-button.active svg {
  fill: #d3a340;
  stroke: #b1842d;
}

.detail-copy h1 {
  margin: 5px 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 640;
  line-height: 1.16;
}

.detail-brand-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.detail-brand-line .eyebrow {
  margin-bottom: 0;
}

.detail-brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.detail-subtitle {
  color: var(--ink-soft);
  font-size: 13px;
}

.detail-summary {
  max-width: 690px;
  margin: 20px 0;
  color: #5d5149;
  font-size: 14px;
  line-height: 1.9;
}

.score-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 23px 0;
}

.score-box {
  min-width: 110px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.32);
}

.score-box strong {
  display: block;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.2;
}

.score-box span {
  color: var(--ink-soft);
  font-size: 10px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--line);
}

.spec-item {
  padding: 13px;
  background: #f7f1e7;
}

.spec-item small {
  display: block;
  color: var(--ink-soft);
  font-size: 9px;
}

.spec-item strong {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 650;
}

.source-site-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 54px;
}

.source-site-icon {
  position: relative;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(18, 42, 74, 0.13);
  border-radius: 15px;
  background: #fffdf8;
  box-shadow: 0 8px 20px rgba(18, 42, 74, 0.07);
}

.source-site-icon img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
}

.source-site-icon img[hidden],
.source-site-monogram[hidden] {
  display: none;
}

.source-site-monogram {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fffaf0;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.2), transparent 42%),
    var(--navy, #122a4a);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.source-site-heading-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.source-site-heading-copy small {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.source-site-link {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.source-site-link:hover {
  border-color: rgba(241, 90, 36, 0.28);
  transform: translateY(-2px);
}

.source-site-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--wine);
  font-size: 11px;
  font-weight: 700;
}

.source-site-groups {
  display: grid;
  gap: 26px;
}

.source-site-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

.source-site-group-title::before,
.source-site-group-title::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.source-site-group-title span {
  flex: 0 0 auto;
  padding: 0 8px;
}

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

.source-site-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 92px;
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: none;
}

.source-site-row:hover {
  transform: translateY(-1px);
}

.source-site-row .source-site-icon {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

.source-site-row-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.source-site-row-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.source-site-row-title strong {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-site-row-title em {
  flex: 0 0 auto;
  color: #d28b18;
  font-size: 10px;
  font-style: normal;
}

.source-site-row-copy > small {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-site-row-arrow {
  color: #aab0b7;
}

.source-site-category-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: -4px 0 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.source-site-category-tabs button {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 3px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

.source-site-category-tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  content: "";
}

.source-site-category-tabs button.active {
  color: var(--ink);
  font-weight: 750;
}

.source-site-category-tabs button.active::after {
  background: var(--wine);
}

.source-site-category-tabs small {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper-deep);
  font-size: 9px;
  font-weight: 600;
}

.source-site-page {
  padding-top: 26px;
}

.source-back-button {
  margin-bottom: 18px;
}

.source-site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(22, 43, 77, 0.12);
  border-radius: 28px;
  color: #fffaf0;
  background:
    radial-gradient(circle at 88% 16%, rgba(241, 90, 36, 0.28), transparent 28%),
    linear-gradient(135deg, #172c4c, #0d1c34);
  box-shadow: 0 22px 54px rgba(17, 31, 54, 0.16);
}

.source-site-hero-main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.source-site-hero .source-site-icon {
  flex-basis: 72px;
  width: 72px;
  height: 72px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.9);
}

.source-site-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

.source-site-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 9px 0 0;
  color: rgba(255, 250, 240, 0.7);
  font-size: 12px;
  line-height: 1.8;
}

.source-site-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 8px;
}

.source-site-stats > div {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.source-site-stats strong,
.source-site-stats span {
  display: block;
}

.source-site-stats strong {
  font-family: var(--serif);
  font-size: 28px;
}

.source-site-stats span {
  margin-top: 3px;
  color: rgba(255, 250, 240, 0.58);
  font-size: 9px;
}

.source-brand-section {
  margin-top: 28px;
}

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

.source-brand-card {
  min-height: 154px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 15px 10px;
  border: 1px solid rgba(22, 43, 77, 0.12);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  font-family: var(--sans);
  text-align: center;
  cursor: pointer;
}

.source-brand-card:hover {
  border-color: rgba(241, 90, 36, 0.3);
  box-shadow: 0 12px 26px rgba(24, 38, 61, 0.08);
}

.source-brand-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #faf8f3;
}

.source-brand-logo img {
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
}

.source-brand-logo img[hidden],
.source-brand-monogram[hidden] {
  display: none;
}

.source-brand-monogram {
  color: #6d7788;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.source-brand-card strong {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.35;
}

.source-brand-card small {
  color: var(--ink-soft);
  font-size: 10px;
}

.source-brand-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.source-brand-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 50px);
}

.source-brand-head p:not(.eyebrow) {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.source-model-sort {
  width: max-content;
  max-width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.source-model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.source-model-card {
  overflow: hidden;
  border: 1px solid rgba(22, 43, 77, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(24, 38, 61, 0.06);
  cursor: pointer;
}

.source-model-card:hover {
  border-color: rgba(241, 90, 36, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(24, 38, 61, 0.1);
}

.source-model-media {
  position: relative;
  height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(241, 90, 36, 0.1), transparent 36%),
    #f8f5ee;
}

.source-model-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.source-model-media > span {
  color: #87909f;
  font-family: var(--serif);
  font-size: 34px;
}

.source-model-media b {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 9px;
}

.source-model-media b.in-stock {
  color: #8a2d25;
  background: #ffe8e2;
}

.source-model-media b.sold-out {
  color: #6c737c;
  background: #edf0f2;
}

.source-model-body {
  padding: 16px;
}

.source-model-body > small {
  color: var(--wine);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.source-model-body h3 {
  min-height: 44px;
  margin: 7px 0 5px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.35;
}

.source-model-body > p {
  min-height: 34px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
}

.source-model-price {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.source-model-price strong {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 18px;
}

.source-model-price span {
  color: var(--ink-soft);
  font-size: 9px;
  text-align: right;
}

.source-load-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.source-error-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.source-error-card p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.source-model-skeleton {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .source-site-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 900px) {
  .source-site-hero,
  .source-brand-head {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .source-brand-head {
    display: grid;
  }

  .source-brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .source-site-list-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .source-site-row {
    min-height: 84px;
  }

  .source-site-hero-main {
    align-items: flex-start;
  }

  .source-site-stats {
    width: 100%;
  }

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

  .source-model-grid,
  .source-model-skeleton {
    grid-template-columns: minmax(0, 1fr);
  }

  .source-model-media {
    height: 230px;
  }
}

.detail-actions {
  position: sticky;
  bottom: 10px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 16px 0 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(250, 246, 237, 0.91);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.detail-actions button {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 11px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.detail-actions button:hover {
  color: var(--wine);
  background: rgba(101, 47, 43, 0.06);
}

.detail-actions svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px;
  margin-top: 18px;
}

.content-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 252, 246, 0.58);
}

.content-card h2,
.content-card h3 {
  margin-top: 0;
  font-family: var(--serif);
}

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

.source-item {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.source-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.source-item strong {
  font-size: 13px;
}

.source-item p {
  margin: 4px 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.source-item a {
  color: var(--wine);
  font-size: 11px;
}

.band-metadata {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.band-metadata h3 {
  margin: 0 0 13px;
}

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

.band-item {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.32);
}

.band-item img {
  width: 100%;
  height: 42px;
  margin-bottom: 6px;
  object-fit: contain;
}

.band-item strong,
.band-item small {
  display: block;
}

.band-item strong {
  font-size: 10px;
}

.band-item small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.45;
}

.offer-comparison {
  margin-top: 18px;
}

.offer-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.offer-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
}

.offer-heading p {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.offer-snapshot {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 9px;
}

.offer-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.offer-summary-grid > div {
  min-width: 0;
  padding: 14px 16px;
  background: #f7f1e7;
}

.offer-summary-grid small,
.offer-summary-grid span {
  display: block;
  color: var(--ink-soft);
  font-size: 9px;
}

.offer-summary-grid strong {
  display: block;
  margin: 4px 0 2px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.25;
}

.offer-summary-grid .range-value {
  font-size: 18px;
}

.offer-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
  color: var(--ink-soft);
  font-size: 9px;
}

.offer-filter-bar .segmented button {
  min-height: 31px;
  padding: 0 12px;
  font-size: 10px;
}

.offer-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.offer-table-head,
.offer-row {
  min-width: 970px;
  display: grid;
  grid-template-columns: minmax(170px, 1.3fr) 88px 92px 98px 118px minmax(155px, 1fr) 100px 112px;
  gap: 12px;
  align-items: center;
}

.offer-table-head {
  padding: 11px 14px;
  color: var(--ink-soft);
  background: rgba(74, 54, 42, 0.055);
  font-size: 9px;
}

.offer-row {
  padding: 15px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.18);
}

.offer-row:first-of-type {
  border-top: 0;
}

.offer-row strong,
.offer-row small {
  display: block;
}

.offer-row strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.offer-row small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.45;
}

.offer-price-cell strong {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 18px;
}

.offer-stock.active {
  color: var(--success);
}

.offer-stock.inactive {
  color: var(--danger);
}

.offer-link-disabled {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(74, 54, 42, 0.07);
  font-size: 9px;
  white-space: nowrap;
}

.offer-action .primary-button {
  min-height: 33px;
  padding: 0 12px;
  font-size: 10px;
  white-space: nowrap;
}

.offer-loading {
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 11px;
}

.offer-disclaimer {
  margin-top: 14px;
}

.band-reference-card,
.community-detail-card {
  margin-top: 18px;
}

.community-detail-card h2 {
  margin-top: 0;
}

.list-card-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
}

.community-review-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.community-review-item:first-of-type {
  border-top: 0;
}

.community-review-item h3 {
  margin: 12px 0 8px;
}

.community-review-item.targeted {
  margin-inline: -12px;
  padding-inline: 12px;
  border-radius: 10px;
  background: rgba(241, 90, 36, 0.09);
  box-shadow: inset 3px 0 0 var(--wine);
  animation: review-target-pulse 1.1s ease-in-out 2;
}

@keyframes review-target-pulse {
  50% {
    background: rgba(241, 90, 36, 0.16);
  }
}

.account-note-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.note-publication-link {
  border: 1px solid rgba(71, 106, 80, 0.18);
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.note-publication-link:hover {
  transform: translateY(-1px);
  background: rgba(71, 106, 80, 0.16);
  box-shadow: 0 4px 10px rgba(32, 42, 36, 0.08);
}

.note-publication-link:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}

.place-comments {
  margin-top: 18px;
}

.place-comments h2 {
  margin: 2px 0 0;
}

.comment-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.place-comment {
  display: flex;
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.place-comment:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.place-comment .avatar {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.place-comment-body {
  min-width: 0;
  flex: 1;
}

.comment-author-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comment-author-line strong {
  font-size: 11px;
}

.comment-author-line small {
  color: var(--ink-soft);
  font-size: 9px;
}

.place-comment-body > p {
  margin: 6px 0 0;
  color: #5d5149;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.verified-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid rgba(180, 138, 67, 0.25);
  border-radius: 8px;
  color: #76531f;
  background: rgba(226, 201, 143, 0.13);
  font-size: 9px;
  font-weight: 650;
}

.verified-badge svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.verified-badge small {
  width: 100%;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 400;
}

.verified-badge.participation {
  color: var(--success);
  border-color: rgba(71, 106, 80, 0.24);
  background: rgba(71, 106, 80, 0.08);
}

.comment-actions {
  display: flex;
  gap: 14px;
  margin-top: 9px;
}

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

.comment-replies {
  margin-top: 10px;
  padding-left: 17px;
  border-left: 2px solid rgba(180, 138, 67, 0.2);
}

.place-comment.reply {
  padding: 12px 0;
  border-bottom: 1px solid rgba(74, 54, 42, 0.09);
}

.place-comment.reply:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.place-comment.reply .avatar {
  width: 29px;
  height: 29px;
  font-size: 12px;
}

.place-comment.deleted {
  opacity: 0.66;
}

.place-comment.deleted > .place-comment-body > p {
  font-style: italic;
}

.notice-box {
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 3px 12px 12px 3px;
  color: #665638;
  background: rgba(180, 138, 67, 0.08);
  font-size: 11px;
}

.forum-hero,
.discover-hero,
.shop-hero,
.me-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 30px;
  color: #f9edda;
  background:
    radial-gradient(circle at 83% 30%, rgba(228, 195, 132, 0.19), transparent 28%),
    linear-gradient(135deg, #413027, #633a30 62%, #402721);
}

.forum-hero::after,
.discover-hero::after,
.shop-hero::after,
.me-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(240, 214, 165, 0.17);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(240, 214, 165, 0.025), 0 0 0 88px rgba(240, 214, 165, 0.025);
}

.forum-hero h1,
.discover-hero h1,
.shop-hero h1,
.me-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 620;
  line-height: 1.16;
}

.forum-hero p,
.discover-hero p,
.shop-hero p,
.me-hero p {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 15px 0 0;
  color: rgba(249, 237, 218, 0.72);
  font-size: 13px;
}

.hero-action {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 5vw, 58px);
  bottom: clamp(24px, 5vw, 46px);
}

.hero-action .primary-button {
  color: var(--wine-dark);
  background: #f0ddb8;
  box-shadow: none;
}

.forum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
}

.forum-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.forum-category-tabs {
  width: max-content;
  max-width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}

.forum-category-tabs button {
  flex: 0 0 auto;
}

.forum-publish-button {
  min-height: 46px;
  padding-inline: 20px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .forum-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .forum-publish-button {
    width: 100%;
  }
}

.feed {
  display: grid;
  gap: 12px;
}

.post-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.64);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.forum-post-card {
  cursor: pointer;
}

.featured-post-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #6f4614;
  background: linear-gradient(135deg, #f1d39a, #fff2d1);
  box-shadow: inset 0 0 0 1px rgba(153, 102, 33, 0.18);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.forum-post-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-width: 660px;
  margin-top: 16px;
}

.forum-post-images.count-1 {
  grid-template-columns: minmax(0, 420px);
}

.forum-post-images.count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 520px;
}

.forum-post-image {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.22;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(78, 58, 40, 0.1);
  border-radius: 8px;
  background: #eee5d8;
  cursor: zoom-in;
}

.forum-post-images.count-1 .forum-post-image {
  aspect-ratio: 16 / 10;
}

.forum-post-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.forum-post-image:hover img {
  transform: scale(1.025);
}

.forum-image-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(20, 18, 16, 0.54);
  font-size: 24px;
  font-weight: 700;
}

.forum-post-images.detail {
  max-width: 760px;
  margin-top: 22px;
}

.post-image-uploader {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.post-image-uploader small {
  color: var(--ink-soft);
  font-size: 9px;
}

.post-image-draft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.post-image-draft-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eee5d8;
}

.post-image-draft-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-image-draft-item small {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  padding: 3px 5px;
  border-radius: 5px;
  color: #fff;
  background: rgba(18, 16, 14, 0.54);
  font-size: 8px;
  text-align: center;
}

.post-image-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(18, 16, 14, 0.66);
  cursor: pointer;
}

.post-image-empty {
  padding: 10px 0;
  color: var(--ink-soft);
  font-size: 9px;
}

.featured-toggle.active {
  color: #8a5a18;
  font-weight: 700;
}

.text-button.liked {
  color: #9a6d1d;
}

.quote-strip {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  padding: 11px 13px;
  border-left: 3px solid var(--gold);
  border-radius: 3px 10px 10px 3px;
  color: var(--ink-soft);
  background: rgba(180, 138, 67, 0.08);
  font-size: 10px;
}

.quote-strip strong {
  color: var(--ink);
}

.thread-main {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 252, 246, 0.65);
}

.thread-main h1 {
  margin: 20px 0 13px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.25;
}

.thread-meta-line {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.thread-body {
  margin: 0;
  color: #554a43;
  font-size: 14px;
  line-height: 1.95;
  white-space: pre-wrap;
}

.thread-metrics {
  margin-top: 22px;
}

.thread-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.thread-replies {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 252, 246, 0.58);
}

.forum-floor {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.forum-floor:first-of-type {
  border-top: 0;
}

.floor-avatar {
  flex: 0 0 auto;
}

.floor-body {
  min-width: 0;
  flex: 1;
}

.floor-author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.floor-author strong {
  font-size: 12px;
}

.floor-author small {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 9px;
}

.op-badge {
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff7e9;
  background: var(--wine);
  font-size: 8px;
}

.floor-content {
  margin: 10px 0 0;
  color: #554a43;
  font-size: 12px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.reply-context {
  width: max-content;
  margin-top: 7px;
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--ink-soft);
  background: rgba(74, 54, 42, 0.06);
  font-size: 9px;
}

.floor-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.thread-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  color: var(--wine);
  background: transparent;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.thread-toggle svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.nested-replies {
  margin-top: 10px;
  padding-left: 15px;
  border-left: 2px solid rgba(180, 138, 67, 0.2);
}

.nested-replies .forum-floor {
  padding: 13px 0;
}

.nested-replies .floor-avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.reply-floor.deleted .floor-content {
  color: var(--ink-soft);
  font-style: italic;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #f7ebd6;
  background: var(--wine);
  font-family: var(--serif);
  font-size: 16px;
}

.avatar-link {
  padding: 0;
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.avatar-link:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 16px rgba(23, 43, 77, 0.22);
}

.profile-note-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.profile-note-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-note-identity h1 {
  margin: 2px 0 4px;
  font-size: clamp(28px, 4vw, 42px);
}

.profile-note-identity p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.profile-note-avatar {
  width: 72px;
  height: 72px;
  font-size: 28px;
}

.account-center-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.account-center-head > div:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 3px;
}

.account-center-head strong {
  font-size: 18px;
}

.account-center-head small {
  color: var(--ink-soft);
}

.account-center-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: var(--brown);
  font-size: 24px;
}

.account-center-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-center-card .data-row {
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.8fr) auto;
}

.account-identity-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.account-identity-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}

.auth-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.author-meta strong {
  display: block;
  font-size: 12px;
}

.author-meta small {
  color: var(--ink-soft);
  font-size: 10px;
}

.post-card h3 {
  margin: 17px 0 8px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.35;
}

.post-card p {
  margin: 0;
  color: #5f544c;
  font-size: 12px;
  line-height: 1.85;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.post-metrics {
  display: flex;
  gap: 15px;
  color: var(--ink-soft);
  font-size: 10px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: var(--wine);
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.text-button svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.category-list {
  display: grid;
  gap: 3px;
}

.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.category-row:hover,
.category-row.active {
  color: var(--wine);
  background: rgba(101, 47, 43, 0.07);
}

.category-row span:last-child {
  font-size: 10px;
}

.discover-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 18px;
}

.map-card {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(35deg, transparent 48%, rgba(107, 90, 68, 0.1) 49%, rgba(107, 90, 68, 0.1) 51%, transparent 52%) 0 0 / 82px 82px,
    linear-gradient(125deg, transparent 48%, rgba(107, 90, 68, 0.08) 49%, rgba(107, 90, 68, 0.08) 51%, transparent 52%) 0 0 / 110px 110px,
    linear-gradient(160deg, #e6ddce, #d8cebd);
}

.map-river {
  position: absolute;
  top: -50px;
  right: 20%;
  width: 110px;
  height: 330px;
  border-left: 30px solid rgba(72, 98, 100, 0.13);
  border-radius: 50%;
  transform: rotate(24deg);
}

.map-route {
  position: absolute;
  top: 40%;
  left: 8%;
  width: 80%;
  height: 2px;
  background: rgba(101, 47, 43, 0.17);
  transform: rotate(-7deg);
}

.map-pin {
  position: absolute;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.86);
  border-radius: 50% 50% 50% 8px;
  color: #fff9ed;
  background: var(--wine);
  box-shadow: 0 8px 16px rgba(50, 30, 20, 0.23);
  transform: rotate(-45deg);
  cursor: pointer;
}

.map-pin span {
  transform: rotate(45deg);
  font-size: 9px;
}

.pin-comment-count {
  position: absolute;
  top: -11px;
  right: -10px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #f5eee2;
  border-radius: 99px;
  color: #fff;
  background: var(--ink);
  font-size: 8px;
  font-weight: 700;
  transform: rotate(45deg);
}

.map-pin:nth-of-type(2) { top: 25%; left: 27%; }
.map-pin:nth-of-type(3) { top: 58%; left: 53%; background: var(--sage); }
.map-pin:nth-of-type(4) { top: 38%; right: 16%; background: var(--brown); }

.map-pin.activity-pin {
  color: #fff9ec;
  border-color: rgba(255, 249, 236, 0.86);
  background: #bd8740;
  box-shadow: 0 9px 20px rgba(92, 63, 24, 0.27), 0 0 0 5px rgba(189, 135, 64, 0.12);
}

.map-pin.venue-pin.merchant {
  background: var(--wine);
}

.map-pin.venue-pin.user {
  background: var(--sage);
}

.map-legend {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 12px;
  padding: 8px 11px;
  border: 1px solid rgba(77, 55, 40, 0.13);
  border-radius: 9px;
  color: var(--ink-soft);
  background: rgba(251, 248, 241, 0.85);
  font-size: 9px;
}

.map-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--wine);
}

.legend-dot.user {
  background: var(--sage);
}

.legend-dot.activity {
  background: #bd8740;
}

.map-caption {
  position: absolute;
  left: 17px;
  bottom: 15px;
  padding: 7px 10px;
  border: 1px solid rgba(77, 55, 40, 0.13);
  border-radius: 8px;
  color: var(--ink-soft);
  background: rgba(251, 248, 241, 0.82);
  font-size: 10px;
}

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

.venue-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 252, 246, 0.64);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.venue-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.activity-card {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.activity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.activity-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
}

.activity-detail-art {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  color: #fff7e8;
  background:
    radial-gradient(circle at 75% 25%, rgba(235, 203, 142, 0.3), transparent 25%),
    linear-gradient(145deg, var(--accent, #8c6332), #38271e);
}

.activity-detail-art::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 242, 218, 0.17);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255, 242, 218, 0.025), 0 0 0 76px rgba(255, 242, 218, 0.025);
}

.activity-map-seal {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 240, 215, 0.3);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 22px;
}

.activity-detail-art > div {
  position: relative;
  z-index: 1;
}

.activity-detail-art p {
  margin: 0;
  color: rgba(255, 247, 232, 0.7);
  font-size: 13px;
}

.activity-detail-art strong {
  display: block;
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
}

.activity-progress {
  margin-top: 20px;
}

.activity-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 10px;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  margin-top: 8px;
  border-radius: 99px;
  background: rgba(101, 47, 43, 0.09);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wine), var(--gold));
}

.venue-art {
  position: relative;
  height: 150px;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent, rgba(35, 22, 15, 0.24)),
    radial-gradient(circle at 68% 34%, rgba(240, 214, 162, 0.32), transparent 22%),
    linear-gradient(135deg, var(--accent), #33231e);
}

.venue-art::before {
  content: "";
  position: absolute;
  left: 19%;
  right: 19%;
  bottom: -18px;
  height: 84px;
  border: 1px solid rgba(246, 229, 195, 0.27);
  border-radius: 13px 13px 0 0;
  background:
    linear-gradient(90deg, transparent 32%, rgba(241, 216, 170, .2) 33% 35%, transparent 36% 63%, rgba(241,216,170,.2) 64% 66%, transparent 67%),
    rgba(28, 19, 15, 0.19);
}

.venue-type {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
}

.venue-body {
  padding: 18px;
}

.venue-body h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
}

.venue-body > p {
  min-height: 42px;
  margin: 7px 0 12px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.venue-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  color: var(--ink-soft);
  font-size: 10px;
}

.venue-price {
  color: var(--wine);
  font-weight: 700;
}

.bf-page {
  padding-bottom: 72px;
}

.bf-page > .bf-section:first-child {
  margin-top: 0;
}

.bf-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 28px 42px;
  overflow: hidden;
  padding: clamp(34px, 5vw, 62px);
  border-radius: 34px;
  color: #fff8eb;
  background:
    radial-gradient(circle at 83% 18%, rgba(243, 117, 62, .22), transparent 23%),
    linear-gradient(135deg, #111d35 0%, #172a4b 54%, #0d172b 100%);
  box-shadow: 0 28px 70px rgba(15, 26, 48, .2);
}

.bf-library-entry {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.bf-library-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 32px 78px rgba(15, 26, 48, .25);
}

.bf-hero::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) .6px, transparent .7px);
  background-size: 16px 16px;
  opacity: .2;
  content: "";
  pointer-events: none;
}

.bf-hero-copy,
.bf-hero-art,
.bf-stat-strip {
  position: relative;
  z-index: 1;
}

.bf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 224, 181, .24);
  border-radius: 999px;
  color: #ffd5a4;
  background: rgba(255,255,255,.06);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.bf-kicker i,
.bf-live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff6438;
  box-shadow: 0 0 0 4px rgba(255,100,56,.14);
}

.bf-hero h1 {
  max-width: 760px;
  margin: 22px 0 16px;
  color: #fffaf0;
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.03;
  letter-spacing: -.035em;
}

.bf-hero h1 em {
  color: #ff8a55;
  font-style: normal;
}

.bf-hero-copy > p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 248, 235, .72);
  font-size: 13px;
  line-height: 1.9;
}

.bf-source-button {
  color: #1a2742 !important;
  background: #ffd7ae !important;
}

.bf-refresh-button {
  color: #fff8eb !important;
  border-color: rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.07) !important;
}

.bf-hero-art {
  display: grid;
  place-items: center;
  min-height: 300px;
}

.bf-sale-mark {
  position: relative;
  z-index: 2;
  transform: rotate(-7deg);
  color: #fff4de;
  font-family: var(--serif);
  font-size: clamp(58px, 8vw, 110px);
  font-weight: 800;
  line-height: .78;
  letter-spacing: -.06em;
  text-align: center;
  text-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.bf-sale-mark::after {
  position: absolute;
  right: -13px;
  bottom: -20px;
  padding: 5px 10px;
  transform: rotate(7deg);
  border-radius: 6px;
  color: #fff;
  background: #e84f2a;
  font: 800 15px/1 var(--sans);
  letter-spacing: .12em;
  content: "DEALS";
}

.bf-orbit {
  position: absolute;
  border: 1px solid rgba(255, 211, 166, .22);
  border-radius: 50%;
}

.bf-orbit.one {
  width: 280px;
  height: 280px;
}

.bf-orbit.two {
  width: 370px;
  height: 180px;
  transform: rotate(27deg);
}

.bf-percent {
  position: absolute;
  top: 4%;
  right: 5%;
  color: rgba(255, 137, 82, .18);
  font: 800 120px/1 var(--serif);
}

.bf-stat-strip {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.1);
}

.bf-stat-strip > div {
  padding: 18px;
  background: rgba(11, 20, 37, .48);
}

.bf-stat-strip strong,
.bf-stat-strip span {
  display: block;
}

.bf-stat-strip strong {
  color: #fff9ed;
  font-family: var(--serif);
  font-size: 31px;
}

.bf-stat-strip span {
  margin-top: 4px;
  color: rgba(255,248,235,.58);
  font-size: 9px;
  letter-spacing: .06em;
}

.bf-section {
  margin-top: 44px;
}

.bf-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.bf-section-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(27px, 3.5vw, 42px);
}

.bf-live-badge,
.bf-muted-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(220,76,43,.2);
  border-radius: 999px;
  color: #a73c29;
  background: rgba(255, 248, 236, .7);
  font-size: 9px;
}

.bf-muted-badge {
  color: var(--ink-soft);
  border-color: var(--line);
}

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

.bf-deal-card {
  display: flex;
  min-width: 0;
  height: 500px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(33, 51, 82, .12);
  border-top: 4px solid #e3552e;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffaf0, #fffdf8);
  box-shadow: 0 12px 28px rgba(38, 45, 55, .07);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  animation: modalIn 260ms ease both;
  animation-delay: calc(var(--bf-order, 0) * 40ms);
}

.bf-card-labels {
  display: flex;
  min-height: 18px;
  align-items: center;
  gap: 7px;
}

.bf-deal-card:hover,
.bf-deal-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(220, 76, 43, .28);
  box-shadow: 0 18px 36px rgba(38, 45, 55, .12);
  outline: none;
}

.bf-deal-card.candidate {
  border-top-color: #a58d68;
}

.bf-deal-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bf-site-logo {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(37, 54, 80, .12);
  border-radius: 14px;
  color: #fff9eb;
  background: linear-gradient(145deg, #213654, #111d35);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
}

.bf-site-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  background: #fff;
}

.bf-deal-top > div {
  min-width: 0;
}

.bf-status {
  display: inline-flex;
  height: 18px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid rgba(217, 77, 43, .16);
  border-radius: 999px;
  color: #d94d2b;
  background: rgba(255, 238, 226, .72);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bf-translation-badge {
  display: inline-flex;
  height: 18px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid rgba(45, 140, 103, .18);
  border-radius: 999px;
  color: #226b50;
  background: rgba(226, 244, 235, .72);
  font-size: 8px;
  font-weight: 700;
}

.bf-deal-card.candidate .bf-status {
  color: #8c7655;
}

.bf-deal-top h3 {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bf-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
}

.bf-code-row > span,
.bf-no-code {
  color: var(--ink-soft);
  font-size: 9px;
}

.bf-code {
  padding: 6px 10px;
  border: 1px dashed #df5c37;
  border-radius: 7px;
  color: #a93c25;
  background: #fff3e6;
  font: 800 11px/1.2 var(--mono, monospace);
  letter-spacing: .08em;
  cursor: pointer;
}

.bf-no-code {
  margin-top: 15px;
  padding: 7px 9px;
  border-radius: 7px;
  background: rgba(28, 45, 80, .05);
}

.bf-policy {
  flex: 1;
  min-height: 190px;
  max-height: 190px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  margin: 16px 0;
  padding: 13px 14px;
  border: 1px solid rgba(221, 75, 40, .13);
  border-left: 4px solid #e35730;
  border-radius: 4px 11px 11px 4px;
  color: #283a57;
  background:
    linear-gradient(100deg, rgba(255, 239, 222, .88), rgba(255, 250, 242, .78));
  box-shadow: inset 0 1px rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 520;
  line-height: 1.72;
  white-space: pre-wrap;
}

.bf-policy::-webkit-scrollbar,
.bf-site-policy-text::-webkit-scrollbar {
  width: 8px;
}

.bf-policy::-webkit-scrollbar-track,
.bf-site-policy-text::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(43, 59, 83, .06);
}

.bf-policy::-webkit-scrollbar-thumb,
.bf-site-policy-text::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(43, 59, 83, .24);
}

.bf-deal-card.candidate .bf-policy {
  color: #514a43;
  border-left-color: #9d8463;
  background: linear-gradient(100deg, rgba(239, 233, 220, .64), rgba(251, 248, 241, .65));
}

.bf-deal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid rgba(37, 54, 80, .08);
  color: var(--ink-soft);
  font-size: 9px;
}

.bf-deal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bf-deal-meta svg {
  width: 13px;
  height: 13px;
}

.bf-site-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding-top: 9px;
  border: 0;
  color: #c64629;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.bf-site-link svg {
  width: 16px;
  height: 16px;
}

.bf-back-button {
  margin-bottom: 16px;
}

.bf-site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 24px 34px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 28px;
  color: #fff8ea;
  background:
    radial-gradient(circle at 78% 8%, rgba(234, 94, 47, .2), transparent 24%),
    linear-gradient(140deg, #13213d, #1b3055);
  box-shadow: 0 24px 60px rgba(18, 31, 55, .16);
}

.bf-site-hero-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.bf-site-logo.large {
  width: 72px;
  height: 72px;
  border-color: rgba(255,255,255,.2);
  border-radius: 18px;
  font-size: 20px;
  background: rgba(255,255,255,.1);
}

.bf-site-logo.large img {
  padding: 11px;
}

.bf-site-hero h1 {
  margin: 5px 0 9px;
  color: #fff9ee;
  font-family: var(--serif);
  font-size: clamp(31px, 4vw, 50px);
  line-height: 1;
}

.bf-site-policy {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
}

.bf-site-policy > p {
  margin: 0;
  color: rgba(255,248,235,.78);
  font-size: 11px;
  line-height: 1.85;
}

.bf-site-policy-text {
  max-height: 190px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  white-space: pre-wrap;
}

.bf-site-policy .bf-code-row {
  margin-top: 13px;
}

.bf-site-policy .bf-code-row > span,
.bf-site-policy .bf-no-code {
  color: rgba(255,248,235,.56);
}

.bf-site-policy .bf-no-code {
  background: rgba(255,255,255,.07);
}

.bf-site-policy .bf-deal-meta {
  justify-content: space-between;
  border-color: rgba(255,255,255,.1);
  color: rgba(255,248,235,.6);
}

.bf-site-policy .bf-deal-meta a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffc79f;
}

.bf-site-policy .bf-deal-meta svg {
  width: 13px;
  height: 13px;
}

.bf-store-stats {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  background: rgba(255,255,255,.1);
}

.bf-store-stats > div {
  padding: 16px 18px;
  background: rgba(8,17,34,.35);
}

.bf-store-stats strong,
.bf-store-stats span {
  display: block;
}

.bf-store-stats strong {
  color: #fff9ec;
  font-family: var(--serif);
  font-size: 25px;
}

.bf-store-stats span {
  margin-top: 4px;
  color: rgba(255,248,235,.55);
  font-size: 9px;
}

.bf-store-section {
  margin-top: 34px;
}

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

.bf-cigar-card {
  display: flex;
  container-type: inline-size;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(28, 43, 68, .11);
  border-radius: 18px;
  background: #fffaf1;
  box-shadow: 0 10px 22px rgba(40, 45, 54, .055);
  animation: modalIn 240ms ease both;
  animation-delay: calc(var(--bf-order, 0) * 18ms);
}

.bf-cigar-media {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1.2;
  place-items: center;
  overflow: hidden;
  border: 0;
  color: #fff4df;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.15), transparent 28%),
    linear-gradient(145deg, #213753, #101c33);
  cursor: pointer;
}

.bf-cigar-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(6px, 1vw, 12px);
  mix-blend-mode: normal;
  transition: transform 220ms ease;
}

.bf-cigar-media:hover img {
  transform: scale(1.04);
}

.bf-cigar-fallback {
  font-family: var(--serif);
  font-size: clamp(32px, 2.2vw, 46px);
  letter-spacing: .04em;
}

.bf-discount-badge {
  position: absolute;
  top: clamp(9px, .8vw, 14px);
  right: clamp(9px, .8vw, 14px);
  min-width: 48px;
  padding: clamp(6px, .45vw, 8px) clamp(9px, .7vw, 12px);
  border-radius: 9px;
  color: #fff;
  background: #e6502c;
  font-size: clamp(10px, .65vw, 12px);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 4px 10px rgba(119,42,22,.2);
}

.bf-discount-badge.plain {
  color: #fff9ef;
  background: linear-gradient(145deg, #d88a4c, #bc6336);
}

.bf-cigar-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(15px, 1.15vw, 20px);
}

.bf-cigar-brand {
  color: #b64730;
  font-size: clamp(9px, .55vw, 10px);
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.bf-cigar-body h3 {
  margin: 5px 0 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(19px, 1.15vw, 24px);
  line-height: 1.18;
}

.bf-cigar-body > p {
  min-height: 30px;
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: clamp(10px, .65vw, 12px);
  line-height: 1.55;
}

.bf-price-line {
  display: flex;
  gap: 7px;
  align-items: baseline;
  color: var(--ink-soft);
  font-size: clamp(9px, .55vw, 10px);
}

.bf-price-line del {
  color: #a85b4c;
}

.bf-current-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 4px;
}

.bf-current-price strong {
  color: #b53f29;
  font-family: var(--serif);
  font-size: clamp(24px, 1.45vw, 30px);
}

.bf-current-price span,
.bf-cigar-body > small,
.bf-stock-price-line small {
  color: var(--ink-soft);
  font-size: clamp(9px, .55vw, 10px);
}

.bf-cigar-body > small {
  margin-top: 2px;
}

.bf-stock-price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.bf-stock-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  color: #356b4c;
  font-size: clamp(9px, .55vw, 10px);
  font-weight: 700;
}

.bf-stock-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4d9c69;
  box-shadow: 0 0 0 3px rgba(77, 156, 105, .1);
}

.bf-cigar-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(30, 48, 75, .08);
}

.bf-cigar-actions button,
.bf-cigar-actions a {
  flex: 1;
  min-height: 38px;
  padding: 8px 7px;
  border: 1px solid rgba(30, 48, 75, .12);
  border-radius: 7px;
  color: var(--ink);
  background: rgba(255,255,255,.55);
  font-size: clamp(9px, .58vw, 11px);
  text-align: center;
  cursor: pointer;
}

.bf-cigar-actions button {
  color: #a9432d;
}

.bf-load-more {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.bf-empty-store {
  margin-top: 24px;
  text-align: center;
}

.bf-audit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.bf-audit-card {
  padding: 0;
  overflow: hidden;
}

.bf-audit-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  list-style: none;
  cursor: pointer;
}

.bf-audit-card summary::-webkit-details-marker {
  display: none;
}

.bf-audit-card summary strong,
.bf-audit-card summary small {
  display: block;
}

.bf-audit-card summary strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
}

.bf-audit-card summary small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
}

.bf-audit-card summary b {
  color: #d54f30;
  font-family: var(--serif);
  font-size: 25px;
}

.bf-site-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 20px 20px;
}

.bf-site-chip-list a {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255,255,255,.46);
  font-size: 9px;
}

.bf-method-note {
  display: flex;
  gap: 15px;
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid rgba(34, 54, 83, .1);
  border-radius: 17px;
  background: rgba(255, 250, 239, .6);
}

.bf-method-note > div {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff9ea;
  background: #1b2b49;
}

.bf-method-note svg {
  width: 19px;
  height: 19px;
}

.bf-method-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.8;
}

.bf-method-note strong {
  color: var(--ink);
}

.bf-loading-card,
.bf-error-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.bf-loading-card strong,
.bf-error-card strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
}

.bf-loading-card p,
.bf-error-card p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.bf-error-card {
  justify-content: space-between;
}

.shop-tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0 18px;
}

.shop-tab {
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.shop-tab.active {
  color: #fff8ed;
  border-color: var(--wine);
  background: var(--wine);
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: rgba(255, 252, 246, 0.62);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(117, 52, 48, 0.38);
  box-shadow: 0 18px 38px rgba(62, 35, 24, 0.12);
}

.product-card:focus-visible {
  outline: 3px solid rgba(117, 52, 48, 0.28);
  outline-offset: 3px;
}

.product-art {
  position: relative;
  height: 210px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.28), transparent 23%),
    linear-gradient(135deg, #ded3c1, #b9a78f);
}

.product-art::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(72, 48, 34, 0.12);
  border-radius: 50%;
}

.product-object {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 75px;
  border-radius: 9px;
  background: var(--accent, #76513d);
  box-shadow: 0 17px 24px rgba(55, 33, 21, 0.23), inset 0 0 0 2px rgba(255,255,255,.12);
}

.product-object::before,
.product-object::after {
  content: "";
  position: absolute;
  background: rgba(238, 215, 172, 0.37);
}

.product-object::before {
  left: 50%;
  top: 11px;
  bottom: 11px;
  width: 1px;
}

.product-object::after {
  left: 10px;
  right: 10px;
  top: 48%;
  height: 1px;
}

.product-object.cutter {
  width: 130px;
  height: 46px;
  border-radius: 99px;
  transform: rotate(-17deg);
}

.product-object.cutter::before {
  top: 50%;
  left: 20%;
  right: 20%;
  bottom: auto;
  width: auto;
  height: 9px;
  border-radius: 99px;
  background: #3d2b22;
}

.product-object.cedar {
  width: 125px;
  height: 65px;
  background: repeating-linear-gradient(6deg, #b78356 0 8px, #9e6a43 8px 10px);
}

.product-object.service {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #8c9993, #3f514e);
}

.product-object.service::before,
.product-object.service::after {
  border-radius: 50%;
  border: 1px solid rgba(241, 225, 193, 0.3);
}

.product-object.service::before {
  inset: 18px;
}

.product-object.service::after {
  inset: 34px;
}

.product-info {
  padding: 16px;
}

.product-info h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
}

.product-info .product-summary {
  min-height: 44px;
  margin: 7px 0 12px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-detail-summary {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid rgba(117, 52, 48, 0.16);
  border-left: 4px solid var(--wine);
  border-radius: 4px 16px 16px 4px;
  background: linear-gradient(135deg, rgba(117, 52, 48, 0.08), rgba(255, 252, 246, 0.82));
}

.product-detail-summary small {
  display: block;
  margin-bottom: 7px;
  color: var(--wine);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.product-detail-summary p {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.8;
}

.product-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.price {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 21px;
}

.price small {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 10px;
}

.add-cart {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff7eb;
  background: var(--wine);
  cursor: pointer;
}

.add-cart svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.me-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.profile-card {
  position: sticky;
  top: 103px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: rgba(255, 252, 246, 0.6);
}

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

.profile-avatar {
  width: 53px;
  height: 53px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f8ecda;
  background: var(--wine);
  font-family: var(--serif);
  font-size: 23px;
}

.profile-main h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
}

.profile-main p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.mode-tabs {
  margin: 20px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.mode-tab {
  flex: 1;
  min-height: 32px;
  padding: 0 9px;
  font-size: 10px;
}

.profile-nav {
  display: grid;
  gap: 3px;
}

.profile-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 39px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.profile-nav button:hover,
.profile-nav button.active {
  color: var(--wine);
  background: rgba(101, 47, 43, 0.07);
}

.me-content {
  min-width: 0;
}

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

.metric-card {
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 252, 246, 0.58);
}

.metric-card small {
  color: var(--ink-soft);
  font-size: 10px;
}

.metric-card strong {
  display: block;
  margin: 9px 0 3px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.1;
}

.metric-card span {
  color: var(--ink-soft);
  font-size: 10px;
}

.list-card {
  margin-top: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.58);
}

.list-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.list-card-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
}

.data-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(90px, 0.7fr) minmax(90px, 0.6fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.data-row:first-of-type {
  border-top: 0;
}

.data-row strong {
  font-size: 12px;
}

.data-row small {
  display: block;
  color: var(--ink-soft);
  font-size: 9px;
}

.audit-filter-card {
  margin-bottom: 14px;
}

.audit-filter-grid {
  display: grid;
  grid-template-columns: minmax(130px, 1.1fr) minmax(130px, 0.9fr) minmax(130px, 0.9fr) minmax(140px, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.audit-filter-grid .form-field {
  gap: 5px;
}

.audit-filter-grid .form-field > span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 650;
}

.audit-filter-reset {
  min-height: 38px;
  white-space: nowrap;
}

.audit-result-meta {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 10px;
}

.audit-result-meta strong {
  color: var(--wine);
  font-size: 12px;
}

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

.audit-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
}

.audit-table th {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(76, 52, 38, 0.2);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  background: rgba(117, 52, 48, 0.05);
}

.audit-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.6;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.audit-table tbody tr:hover {
  background: rgba(117, 52, 48, 0.035);
}

.audit-table th:nth-child(1),
.audit-table td:nth-child(1) {
  width: 16%;
}

.audit-table th:nth-child(2),
.audit-table td:nth-child(2) {
  width: 50%;
}

.audit-table th:nth-child(3),
.audit-table td:nth-child(3) {
  width: 14%;
  white-space: nowrap;
}

.audit-table th:nth-child(4),
.audit-table td:nth-child(4) {
  width: 20%;
  color: var(--ink-soft);
  white-space: nowrap;
}

.audit-board-badge {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(117, 52, 48, 0.16);
  border-radius: 999px;
  color: var(--wine);
  background: rgba(117, 52, 48, 0.07);
  font-size: 9px;
  font-weight: 650;
}

.admin-order-filter-card {
  margin-top: 14px;
}

.admin-order-filter-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) minmax(140px, 0.9fr) minmax(140px, 0.9fr) auto;
  align-items: end;
  gap: 10px;
}

.admin-order-filter-grid .form-field {
  gap: 5px;
}

.admin-order-filter-grid .form-field > span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 650;
}

.admin-order-filter-reset {
  min-height: 38px;
  white-space: nowrap;
}

.admin-order-result-meta {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 10px;
}

.admin-order-result-meta strong {
  color: var(--wine);
  font-size: 12px;
}

.order-snapshot-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 15px 0;
}

.order-snapshot-summary > div {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.28);
}

.order-snapshot-summary .full {
  grid-column: 1 / -1;
}

.order-snapshot-summary small,
.order-snapshot-summary strong {
  display: block;
}

.order-snapshot-summary small {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 8px;
}

.order-snapshot-summary strong {
  font-size: 10px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.order-snapshot-items {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.order-snapshot-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(117, 52, 48, 0.05);
}

.order-snapshot-items-head strong {
  font-size: 10px;
}

.order-snapshot-items-head span {
  color: var(--ink-soft);
  font-size: 9px;
}

.order-snapshot-item {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(80px, 0.45fr)) minmax(70px, 0.35fr);
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.order-snapshot-item:first-of-type {
  border-top: 0;
}

.order-snapshot-item small,
.order-snapshot-item strong,
.order-snapshot-item span {
  display: block;
}

.order-snapshot-item small {
  color: var(--ink-soft);
  font-size: 8px;
}

.order-snapshot-item strong,
.order-snapshot-item span {
  margin-top: 3px;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.order-snapshot-item .full {
  grid-column: 1 / -1;
}

.order-snapshot-time {
  color: var(--ink-soft);
}

.status-badge,
.identity-badge {
  min-height: 23px;
  padding: 0 9px;
  color: var(--success);
  background: rgba(71, 106, 80, 0.1);
  font-size: 9px;
}

.status-badge.pending,
.identity-badge.user {
  color: #8a6424;
  background: rgba(180, 138, 67, 0.12);
}

.status-badge.danger {
  color: var(--danger);
  background: rgba(160, 63, 56, 0.09);
}

.status-badge.neutral {
  color: var(--ink-soft);
  background: rgba(74, 54, 42, 0.08);
}

.identity-badge.merchant {
  color: var(--wine);
  background: rgba(101, 47, 43, 0.08);
}

.status-dot + span {
  margin-left: 4px;
}

.queue-card {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.28);
}

.queue-card h4 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 17px;
}

.queue-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.queue-actions {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-layer[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 24, 19, 0.54);
  backdrop-filter: blur(5px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(84vh, 820px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 27px;
  background: var(--paper-light);
  box-shadow: 0 30px 100px rgba(24, 15, 10, 0.35);
  animation: modalIn 220ms ease both;
}

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

@keyframes modalIn {
  from { opacity: 0; transform: scale(.98) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-panel h2 {
  margin: 0 40px 7px 0;
  font-family: var(--serif);
  font-size: 30px;
}

.modal-intro {
  margin: 0 0 21px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

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

.form-field {
  display: grid;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field[hidden] {
  display: none !important;
}

.form-field label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
}

.field-help {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
}

.field-help.invalid {
  color: var(--danger);
}

.region-select {
  position: relative;
}

.region-select .region-input {
  width: 100%;
  padding-right: 42px;
}

.region-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0 12px 12px 0;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}

.region-toggle::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform 140ms ease, margin-top 140ms ease;
}

.region-select.open .region-toggle::before {
  margin-top: 4px;
  transform: rotate(225deg);
}

.region-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 230px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid rgba(18, 42, 74, 0.16);
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 14px 34px rgba(18, 42, 74, 0.16);
}

.region-menu[hidden] {
  display: none;
}

.region-menu-option {
  width: 100%;
  display: block;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.region-menu-option:hover,
.region-menu-option.keyboard-active {
  color: var(--wine-dark);
  background: #fff0e6;
}

.region-menu-empty {
  padding: 11px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.6;
}

.field-input[aria-invalid="true"] {
  border-color: rgba(160, 63, 56, .55);
  box-shadow: 0 0 0 3px rgba(160, 63, 56, .07);
}

.field-input,
.field-select {
  height: 44px;
  padding: 0 12px;
}

.field-textarea {
  min-height: 116px;
  padding: 11px 12px;
  resize: vertical;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus,
.hero-search input:focus,
.inline-search input:focus {
  border-color: rgba(101, 47, 43, 0.45);
  box-shadow: 0 0 0 3px rgba(101, 47, 43, 0.07);
}

.form-note {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 21px;
}

.auth-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 19px;
  border-radius: 17px;
  color: #f4dfbd;
  background: var(--wine);
  font-family: var(--serif);
  font-size: 23px;
}

.auth-points {
  display: grid;
  gap: 9px;
  margin: 18px 0;
}

.auth-point {
  display: flex;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink-soft);
  font-size: 11px;
}

.auth-point span:first-child {
  color: var(--gold);
  font-family: var(--serif);
}

.demo-account-groups {
  max-height: 54vh;
  overflow-y: auto;
  padding-right: 4px;
}

.demo-account-group + .demo-account-group {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.demo-account-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.demo-account-group-title strong {
  font-family: var(--serif);
  font-size: 15px;
}

.demo-account-group-title span {
  color: var(--ink-soft);
  font-size: 9px;
}

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

.demo-account-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 252, 246, 0.7);
  text-align: left;
  cursor: pointer;
  transition: border 150ms ease, background 150ms ease, transform 150ms ease;
}

.demo-account-card:hover {
  transform: translateY(-1px);
  border-color: rgba(101, 47, 43, 0.35);
  background: #fffaf2;
}

.demo-account-card .avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.demo-account-card svg {
  width: 13px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.8;
}

.demo-account-copy {
  min-width: 0;
  display: grid;
}

.demo-account-copy strong,
.demo-account-copy small,
.demo-account-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-account-copy strong {
  font-size: 11px;
}

.demo-account-copy small,
.demo-account-copy em {
  color: var(--ink-soft);
  font-size: 8px;
  font-style: normal;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 11px;
}

.floor-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 14px;
  padding: 9px;
  overflow-x: auto;
  border: 1px solid rgba(65, 74, 99, .13);
  border-radius: 13px;
  background: rgba(255, 255, 255, .42);
}

.floor-switcher-label {
  flex: 0 0 auto;
  padding-left: 3px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.floor-switcher-options {
  display: flex;
  flex: 1 1 auto;
  gap: 7px;
  min-width: 0;
}

.floor-tab {
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
  min-width: 78px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink-soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.floor-tab strong {
  color: inherit;
  font-size: 11px;
}

.floor-tab small {
  color: inherit;
  font-size: 8px;
  opacity: .78;
}

.floor-tab:hover {
  border-color: rgba(183, 122, 56, .25);
  background: rgba(213, 168, 102, .08);
}

.floor-tab.active {
  color: #fff8e8;
  background: linear-gradient(145deg, #273652, #16233c);
  box-shadow: 0 5px 12px rgba(25, 37, 61, .16);
}

.floor-add-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.resource-card {
  position: relative;
  min-height: 115px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.37);
  text-align: left;
  cursor: pointer;
}

.resource-card:hover:not(:disabled) {
  border-color: rgba(101, 47, 43, 0.35);
}

.resource-card.selected {
  border-color: var(--wine);
  box-shadow: inset 0 0 0 1px var(--wine);
  background: rgba(101, 47, 43, 0.05);
}

.resource-card:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.resource-card strong {
  font-family: var(--serif);
  font-size: 20px;
}

.resource-card small {
  color: var(--ink-soft);
  font-size: 9px;
}

.resource-status {
  align-self: flex-start;
  padding: 3px 7px;
  border-radius: 99px;
  color: var(--success);
  background: rgba(71, 106, 80, 0.1);
  font-size: 8px;
}

.resource-status.occupied {
  color: var(--danger);
  background: rgba(160, 63, 56, 0.08);
}

.venue-layout {
  width: 100%;
  max-width: 680px;
  margin: 4px auto 0;
}

.venue-layout-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 10px;
}

.venue-layout-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.layout-legend {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #d8a35e;
}

.layout-legend.landmark {
  background: #8a7969;
}

.layout-legend.reserved {
  background: #a44f43;
}

.venue-layout-grid,
.layout-editor-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(78, 58, 40, .16);
  background: rgba(47, 36, 27, .055);
}

.venue-layout-cell {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  border: 1px dashed rgba(81, 62, 44, .13);
  background: rgba(255, 255, 255, .44);
}

.venue-layout-cell.occupied {
  border-style: solid;
  border-color: transparent;
  background: transparent;
}

.layout-object {
  display: grid;
  place-items: center;
  align-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 2px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  font: inherit;
  text-align: center;
}

.layout-object b {
  display: block;
  font-size: clamp(10px, 1.25vw, 15px);
  line-height: 1;
  font-weight: 750;
}

.layout-object small {
  display: block;
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  color: inherit;
  font-size: clamp(6px, .72vw, 9px);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout-object em {
  display: block;
  margin-top: 2px;
  color: inherit;
  font-size: clamp(5px, .66vw, 8px);
  font-style: normal;
  opacity: .84;
}

.layout-object.table { background: #9c7652; }
.layout-object.door { background: #46705f; }
.layout-object.window { background: #4d7590; }
.layout-object.bar { background: #7c574f; }
.layout-object.plant { background: #5e7a4d; }
.layout-object.other { background: #70685f; }

.layout-object.seat {
  color: #2c2118;
  background: linear-gradient(145deg, #e7c488, #c99655);
  box-shadow: inset 0 0 0 1px rgba(92, 58, 24, .18);
}

.layout-object.seat.bookable {
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.layout-object.seat.bookable:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(49, 34, 22, .2);
}

.layout-object.seat.selected {
  color: #fff8e8;
  background: linear-gradient(145deg, #a86f32, #75431d);
  box-shadow: 0 0 0 2px #22160d, 0 0 0 4px #e4b373;
}

.layout-object.seat.reserved {
  color: #fff4ed;
  background: linear-gradient(145deg, #b96050, #843d35);
  box-shadow: inset 0 0 0 1px rgba(73, 24, 21, .24);
}

.layout-object.seat.unavailable,
.layout-object.seat.invalid {
  color: #e7ded2;
  background: #8f8479;
  cursor: not-allowed;
  filter: grayscale(.35);
}

.venue-layout.booking-layout {
  max-width: 760px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 249, .7);
}

.selected-layout-seat {
  margin-top: 12px;
  padding: 11px 13px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
  background: rgba(213, 168, 102, .1);
  border: 1px solid rgba(181, 132, 72, .22);
  border-radius: 8px;
}

.layout-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
  margin-top: 16px;
}

.layout-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-right: 58px;
}

.layout-editor-head .modal-intro {
  margin-bottom: 0;
}

.layout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.layout-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--ink-soft);
  font-size: 10px;
  background: rgba(255, 252, 247, .65);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.layout-steps li b {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #fff;
  font-size: 10px;
  border-radius: 50%;
  background: #9c8876;
}

.layout-steps li.active {
  color: var(--ink);
  border-color: rgba(159, 104, 47, .42);
  background: #fff7ea;
}

.layout-steps li.active b {
  background: #a36a31;
}

.layout-mode-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 10px 12px;
  color: #3d2c20;
  font-size: 11px;
  background: #fff3dc;
  border: 1px solid rgba(169, 107, 46, .35);
  border-radius: 8px;
}

.layout-mode-banner.move {
  background: #eef4f1;
  border-color: rgba(63, 106, 89, .32);
}

.layout-mode-banner span {
  color: var(--ink-soft);
}

.layout-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 9px;
}

.layout-panel-title small {
  color: var(--ink-soft);
  font-size: 9px;
}

.layout-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.layout-palette-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  color: var(--ink);
  font: inherit;
  font-size: 10px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.layout-palette-item b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: white;
  font-size: 9px;
  border-radius: 4px;
  background: #786152;
}

.layout-palette-item.seat b { color: #2c2118; background: #d8a35e; }
.layout-palette-item.door b { background: #46705f; }
.layout-palette-item.window b { background: #4d7590; }
.layout-palette-item.bar b { background: #7c574f; }
.layout-palette-item.plant b { background: #5e7a4d; }

.layout-palette-item.active {
  border-color: #9e6b34;
  box-shadow: 0 0 0 2px rgba(174, 112, 49, .12);
  background: #fff5e6;
}

.layout-editor-grid {
  gap: 4px;
  padding: 10px;
  border-radius: 10px;
}

.layout-editor-cell {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  padding: 2px;
  color: #9b8b7c;
  font: inherit;
  background: rgba(255, 255, 255, .66);
  border: 1px dashed rgba(78, 58, 40, .2);
  border-radius: 4px;
  cursor: pointer;
}

.layout-editor-cell > span {
  font-size: 8px;
  opacity: .52;
}

.layout-editor-cell b {
  font-size: 12px;
  line-height: 1;
}

.layout-editor-cell small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 7px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout-editor-cell.occupied {
  color: #fff;
  border-style: solid;
  border-color: transparent;
}

.layout-editor-cell.table { background: #9c7652; }
.layout-editor-cell.door { background: #46705f; }
.layout-editor-cell.window { background: #4d7590; }
.layout-editor-cell.bar { background: #7c574f; }
.layout-editor-cell.plant { background: #5e7a4d; }
.layout-editor-cell.other { background: #70685f; }
.layout-editor-cell.seat { color: #2c2118; background: #d8a35e; }

.layout-editor-cell.selected {
  z-index: 1;
  box-shadow: 0 0 0 2px #2c2118, 0 0 0 4px #e3b375;
}

.layout-editor-cell.placement-target {
  color: #9a652e;
  border: 1px solid rgba(175, 111, 43, .55);
  background: #fff2d9;
}

.layout-editor-cell.placement-target:hover {
  background: #ffe6bc;
}

.layout-editor-cell.placement-target span {
  font-size: 18px;
  font-weight: 650;
  opacity: .9;
}

.layout-inspector {
  padding: 14px;
  background: rgba(255, 252, 246, .86);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.layout-inspector h3 {
  margin: 0 0 9px;
  font-size: 14px;
}

.layout-selected-summary {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}

.layout-selected-summary .layout-object {
  width: 46px;
  height: 46px;
}

.layout-selected-summary strong,
.layout-selected-summary small {
  display: block;
}

.layout-selected-summary small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
}

.layout-divider {
  height: 1px;
  margin: 16px 0;
  border: 0;
  background: var(--line);
}

.layout-help {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.layout-resource-management {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.layout-resource-list {
  display: grid;
  gap: 7px;
}

.layout-resource-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.3);
}

.layout-resource-item strong,
.layout-resource-item small {
  display: block;
}

.layout-resource-item strong {
  font-size: 10px;
}

.layout-resource-item small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.45;
}

.layout-resource-item .danger-button {
  min-height: 30px;
  padding: 0 10px;
}

.layout-new-seat {
  margin-top: 14px;
  padding-top: 4px;
}

.layout-new-seat .form-grid {
  grid-template-columns: 1fr 1fr;
}

.layout-new-seat .form-field.full {
  grid-column: 1 / -1;
}

.layout-editor-actions {
  position: static;
  margin-top: 16px;
  padding-top: 12px;
  background: transparent;
  border-top: 1px solid var(--line);
}

.cart-drawer {
  position: fixed;
  z-index: 250;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100%);
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--paper-light);
  box-shadow: -24px 0 70px rgba(29, 19, 13, 0.2);
  transform: translateX(102%);
  transition: transform 240ms ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-backdrop {
  position: fixed;
  z-index: 240;
  inset: 0;
  background: rgba(34, 24, 19, 0.4);
}

.drawer-backdrop[hidden] {
  display: none;
}

.drawer-head {
  display: flex;
  align-items: left;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 13px 0;
}

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

.cart-thumb {
  width: 58px;
  height: 58px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #403028);
}

.cart-item strong {
  display: block;
  font-size: 11px;
}

.cart-item small {
  color: var(--ink-soft);
  font-size: 9px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 7px;
}

.quantity-control button {
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.drawer-foot {
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 12px;
}

.fine-print {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
}

.toast-stack {
  position: fixed;
  z-index: 500;
  right: 20px;
  bottom: 20px;
  width: min(360px, calc(100% - 40px));
  display: grid;
  gap: 8px;
}

.update-banner {
  position: fixed;
  z-index: 700;
  top: 12px;
  left: 50%;
  width: min(680px, calc(100% - 24px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  color: #fff8ee;
  background: #3f2e26;
  box-shadow: 0 18px 44px rgba(30,20,14,.3);
  font-size: 12px;
}

.update-banner span {
  flex: 1;
}

.update-banner button {
  flex: 0 0 auto;
}

.toast {
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 13px;
  color: #fff7eb;
  background: #3f2e26;
  box-shadow: 0 14px 35px rgba(30,20,14,.22);
  font-size: 11px;
  animation: toastIn 220ms ease both;
}

.toast.error {
  background: #7a322e;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav {
  display: none;
}

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

.skeleton-card {
  min-height: 190px;
  border-radius: 20px;
  background: linear-gradient(100deg, rgba(221,211,196,.45) 20%, rgba(247,242,233,.7) 38%, rgba(221,211,196,.45) 55%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  to { background-position-x: -200%; }
}

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

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    padding-inline: 24px;
  }

  .brand-copy small {
    display: none;
  }

  .nav-link {
    padding: 0 11px;
  }

  .status-chip {
    display: none;
  }

  .library-layout,
  .forum-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

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

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .topbar {
    height: 68px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .demo-strip {
    font-size: 10px;
  }

  .page-shell {
    padding-top: 22px;
    padding-bottom: 85px;
  }

  .site-footer {
    padding-bottom: 105px;
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-nav {
    position: fixed;
    z-index: 100;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 7px 8px;
    border: 1px solid rgba(71, 48, 34, 0.13);
    border-radius: 20px;
    background: rgba(250, 246, 237, 0.92);
    box-shadow: 0 18px 44px rgba(42, 27, 18, 0.15);
    backdrop-filter: blur(18px);
  }

  .mobile-nav-link {
    display: grid;
    place-items: center;
    gap: 2px;
    min-height: 49px;
    border: 0;
    border-radius: 13px;
    color: var(--ink-soft);
    background: transparent;
  }

  .mobile-nav-link.active {
    color: var(--wine);
    background: rgba(101, 47, 43, 0.08);
  }

  .mobile-nav-link svg {
    width: 19px;
    height: 19px;
  }

  .mobile-nav-link small {
    font-size: 9px;
  }

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

  .hero-art {
    min-height: 260px;
  }

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

  .library-layout,
  .forum-layout,
  .two-column,
  .me-layout {
    grid-template-columns: 1fr;
  }

  .profile-card {
    position: static;
  }

  .profile-nav {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .detail-hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .demo-strip {
    min-height: 27px;
    padding-inline: 10px;
    font-size: 9px;
  }

  .topbar {
    padding-inline: 14px;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
    border-radius: 12px;
  }

  .brand-copy strong {
    font-size: 19px;
  }

  .top-actions {
    gap: 6px;
    min-width: 0;
  }

  .top-actions .icon-button {
    width: 35px;
    height: 35px;
  }

  .top-actions #languageButton {
    display: none;
  }

  .top-actions .primary-button {
    display: none;
  }

  .page-shell {
    padding-inline: 13px;
  }

  .hero {
    border-radius: 23px;
  }

  .hero-copy {
    padding: 27px 21px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero-description {
    margin: 14px 0 19px;
    font-size: 12px;
  }

  .hero-art {
    min-height: 210px;
  }

  .hero-label {
    right: 13px;
    bottom: 13px;
  }

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

  .stat-item:nth-child(3)::before {
    display: none;
  }

  .stat-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .content-section {
    margin-top: 37px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .library-toolbar,
  .discover-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-search {
    width: 100%;
  }

  .category-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x mandatory;
  }

  .category-card {
    min-width: 150px;
    min-height: 126px;
    scroll-snap-align: start;
  }

  .cigar-grid {
    grid-template-columns: 1fr;
  }

  .cigar-card {
    min-height: 220px;
  }

  .cigar-card-media {
    height: clamp(160px, 52vw, 220px);
  }

  .cigar-card h3 {
    font-size: clamp(22px, 6vw, 27px);
  }

  .detail-copy {
    padding: 25px 20px;
  }

  .detail-copy h1 {
    font-size: 36px;
  }

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

  .detail-actions {
    grid-template-columns: repeat(5, 1fr);
    bottom: 79px;
    overflow-x: auto;
  }

  .detail-actions button {
    display: grid;
    place-items: center;
    gap: 3px;
    min-width: 60px;
    padding: 5px 3px;
    font-size: 9px;
  }

  .forum-hero,
  .discover-hero,
  .shop-hero,
  .me-hero {
    padding: 27px 22px 100px;
    border-radius: 23px;
  }

  .forum-hero h1,
  .discover-hero h1,
  .shop-hero h1,
  .me-hero h1 {
    font-size: 37px;
  }

  .hero-action {
    right: auto;
    left: 22px;
    bottom: 22px;
  }

  .post-card {
    padding: 17px;
  }

  .post-card h3 {
    font-size: 19px;
  }

  .venue-grid,
  .product-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .product-art {
    height: 180px;
  }

  .map-card {
    min-height: 180px;
  }

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

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

  .data-row > :nth-child(2),
  .data-row > :nth-child(3) {
    display: none;
  }

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

  .demo-account-grid {
    grid-template-columns: 1fr;
  }

  .modal-layer {
    align-items: end;
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
  }

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

  .offer-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

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

  .offer-table {
    overflow: visible;
    border: 0;
  }

  .offer-table-head {
    display: none;
  }

  .offer-row {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  .offer-row:first-of-type {
    border-top: 1px solid var(--line);
  }

  .offer-market,
  .offer-shipping,
  .offer-action {
    grid-column: 1 / -1;
  }

  .offer-action .primary-button {
    width: 100%;
  }

  .toast-stack {
    bottom: 87px;
  }

  .update-banner {
    top: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

.merchant-action-card {
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0, rgba(180, 138, 67, 0.12), transparent 40%),
    rgba(255, 252, 246, 0.55);
  text-align: left;
  cursor: pointer;
}

.merchant-action-card strong,
.merchant-action-card small {
  display: block;
}

.merchant-action-card strong {
  margin-bottom: 7px;
  font-family: var(--serif);
  font-size: 18px;
}

.merchant-action-card small {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.merchant-action-card:hover {
  border-color: rgba(101, 47, 43, 0.28);
  background: rgba(255, 252, 246, 0.88);
}

.permission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.permission-list span {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 10px;
}

.permission-list span::before {
  content: "×";
  color: #9c756b;
  font-weight: 700;
}

.permission-list span.allowed {
  color: #40583d;
  border-color: rgba(64, 88, 61, 0.18);
  background: rgba(64, 88, 61, 0.06);
}

.permission-list span.allowed::before {
  content: "✓";
  color: #4d7048;
}

.permission-list span.blocked {
  color: #8d655a;
  background: rgba(141, 101, 90, 0.04);
}

.merchant-config-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.merchant-config-summary > div {
  min-width: 0;
  padding: 15px;
  background: #f7f1e7;
}

.merchant-config-summary > div.full {
  grid-column: 1 / -1;
}

.merchant-config-summary span,
.merchant-config-summary strong {
  display: block;
}

.merchant-config-summary span {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 9px;
}

.merchant-config-summary strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.merchant-config-summary em {
  display: inline-flex;
  margin: 0 5px 5px 0;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
}

.venue-image-uploader {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.22);
}

.venue-image-upload-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.venue-image-upload-actions small {
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.6;
}

.venue-image-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.venue-image-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f7f1e7;
}

.venue-image-item img {
  width: 76px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.venue-image-item > div {
  min-width: 0;
}

.venue-image-item strong {
  display: block;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-image-item .status-badge {
  display: inline-flex;
  margin-top: 5px;
}

.merchant-account-details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.45);
}

.merchant-account-details summary {
  padding: 15px 18px;
  color: var(--ink-soft);
  font-size: 11px;
  cursor: pointer;
}

.merchant-account-details .section-heading {
  padding: 0 18px;
}

.merchant-account-details .content-card {
  margin: 0 14px 14px;
}

@media (max-width: 760px) {
  .merchant-action-grid,
  .merchant-config-summary {
    grid-template-columns: 1fr;
  }

  .merchant-config-summary > div.full {
    grid-column: auto;
  }
}

/* Najia brand system: navy, orange, white and cream. */
.forum-hero,
.discover-hero,
.shop-hero,
.me-hero {
  color: #fff;
  background:
    radial-gradient(circle at 84% 24%, rgba(241, 90, 36, 0.28), transparent 26%),
    linear-gradient(135deg, #203a61, #172b4d 58%, #0d1d35);
}

.forum-hero h1,
.discover-hero h1,
.shop-hero h1,
.me-hero h1 {
  font-weight: 760;
}

.forum-hero p,
.discover-hero p,
.shop-hero p,
.me-hero p {
  color: rgba(255, 255, 255, 0.76);
}

.forum-hero::after,
.discover-hero::after,
.shop-hero::after,
.me-hero::after {
  border-color: rgba(241, 90, 36, 0.34);
  box-shadow: 0 0 0 44px rgba(241, 90, 36, 0.04), 0 0 0 88px rgba(241, 90, 36, 0.025);
}

.hero-action .primary-button {
  color: #fff;
  background: var(--wine);
  box-shadow: 0 10px 22px rgba(241, 90, 36, 0.22);
}

.activity-detail-art {
  background:
    radial-gradient(circle at 75% 25%, rgba(241, 90, 36, 0.35), transparent 26%),
    linear-gradient(145deg, #203a61, #0d1d35);
}

.detail-art {
  background: linear-gradient(145deg, #203a61, #0d1d35) !important;
}

.content-card,
.post-card,
.venue-card,
.product-card,
.stat-rail,
.side-panel,
.profile-card,
.metric-card,
.list-card,
.cigar-card,
.commerce-order-card,
.activity-card,
.admin-media-item {
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.category-card {
  border-color: var(--line);
  background: #fff;
}

.category-card:hover {
  border-color: rgba(241, 90, 36, 0.25);
}

.category-card.active {
  color: #fff;
  background: linear-gradient(145deg, #ff6a2f, #e94c17);
  box-shadow: 0 16px 32px rgba(241, 90, 36, 0.22);
}

.category-card.active .category-number,
.category-card.active p {
  color: rgba(255, 255, 255, 0.78);
}

.segmented,
.mode-tabs {
  border-color: var(--line);
  background: #fff;
}

.segmented button.active,
.mode-tab.active,
.shop-tab.active {
  color: #fff;
  background: var(--wine);
  box-shadow: 0 6px 16px rgba(241, 90, 36, 0.18);
}

.cigar-card-media {
  background:
    radial-gradient(circle at 70% 20%, rgba(241, 90, 36, 0.1), transparent 35%),
    #fff4e8;
}

.cigar-card:hover,
.venue-card:hover,
.product-card:hover,
.post-card:hover {
  border-color: rgba(241, 90, 36, 0.22);
  box-shadow: 0 18px 38px rgba(23, 43, 77, 0.11);
}

.notice-box {
  border-left-color: var(--wine);
  color: var(--ink);
  background: #fff4e9;
}

.quote-strip {
  border-left-color: var(--wine);
  background: #fff4e9;
}

.profile-avatar,
.avatar {
  color: #fff;
  background: var(--brown);
}

.metric-card strong,
.stat-item strong,
.score-box strong {
  color: var(--brown);
}

.score-box {
  border-color: var(--line);
  background: linear-gradient(135deg, #fff, #fff7ef);
}

.product-detail-summary {
  border-color: rgba(241, 90, 36, 0.18);
  background: linear-gradient(135deg, rgba(241, 90, 36, 0.07), #fff);
}

.toast {
  color: #fff;
  background: var(--brown);
}

.toast.error {
  background: var(--danger);
}

.site-footer {
  color: var(--ink-soft);
  background: transparent;
}

@media (max-width: 980px) {
  .mobile-nav {
    border-color: rgba(23, 43, 77, 0.12);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 44px rgba(23, 43, 77, 0.14);
  }

  .mobile-nav-link.active {
    color: #fff;
    background: var(--wine);
  }
}

@media (max-width: 680px) {
  .brand-logo {
    height: 32px;
  }
}

.commerce-product-list,
.commerce-order-list {
  display: grid;
  gap: 12px;
}

.commerce-product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.5);
}

.commerce-product-main h3 {
  margin: 13px 0 6px;
  font-size: 23px;
}

.commerce-product-main p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.commerce-product-main > small {
  color: var(--ink-soft);
  font-size: 9px;
}

.commerce-product-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: start;
}

.commerce-product-side > div:not(.commerce-product-actions) {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.3);
}

.commerce-product-side small,
.commerce-product-side strong {
  display: block;
}

.commerce-product-side small {
  color: var(--ink-soft);
  font-size: 9px;
}

.commerce-product-side strong {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 18px;
}

.commerce-product-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.commerce-order-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.5);
}

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

.commerce-order-head > div:first-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.commerce-order-head strong {
  font-size: 13px;
}

.commerce-order-head small {
  color: var(--ink-soft);
  font-size: 10px;
}

.commerce-order-amount {
  flex: 0 0 auto;
  text-align: right;
}

.commerce-order-amount strong,
.commerce-order-amount small {
  display: block;
}

.commerce-order-amount strong {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 21px;
}

.commerce-order-customer {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(280px, 1.7fr) minmax(120px, 0.6fr);
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.24);
}

.commerce-order-customer > div {
  min-width: 0;
}

.commerce-order-customer span,
.commerce-order-customer strong,
.commerce-order-customer small {
  display: block;
}

.commerce-order-customer span {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.commerce-order-customer strong {
  font-size: 11px;
  line-height: 1.6;
}

.commerce-order-customer small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 8px;
}

.customer-address strong {
  overflow-wrap: anywhere;
}

.admin-order-products {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.admin-order-products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(117, 52, 48, 0.045);
}

.admin-order-products-head strong {
  font-size: 10px;
}

.admin-order-products-head span {
  color: var(--ink-soft);
  font-size: 9px;
}

.admin-order-product-row {
  display: grid;
  grid-template-columns: 48px minmax(190px, 1fr) minmax(85px, 0.45fr) minmax(65px, 0.3fr) minmax(85px, 0.45fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  font-size: 9px;
}

.admin-order-product-row:first-of-type {
  border-top: 0;
}

.admin-order-product-row > div:not(.admin-order-product-image) {
  min-width: 0;
}

.admin-order-product-row small,
.admin-order-product-row strong {
  display: block;
}

.admin-order-product-row small {
  color: var(--ink-soft);
  font-size: 8px;
}

.admin-order-product-row strong {
  margin-top: 2px;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.admin-order-product-image {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent, #c9bda9), rgba(255, 255, 255, 0.55));
}

.admin-order-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-order-product-main strong {
  margin: 0 0 3px;
  font-size: 11px;
}

.admin-order-product-main .order-snapshot-note {
  margin-top: 3px;
  color: var(--wine);
  font-size: 8px;
}

.commerce-order-items,
.commerce-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.commerce-order-items span,
.commerce-order-meta span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 9px;
}

.commerce-order-items span {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.28);
}

.commerce-order-card .notice-box {
  margin-top: 12px;
}

.commerce-order-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.commerce-order-actions details {
  width: 100%;
  color: var(--ink-soft);
  font-size: 10px;
}

.commerce-order-actions summary {
  cursor: pointer;
}

.commerce-order-actions details p {
  margin: 6px 0 0;
}

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

.commerce-return-row:last-child {
  border-bottom: 0;
}

.commerce-return-row strong,
.commerce-return-row small {
  display: block;
}

.commerce-return-row small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
}

.sku-editor-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.4fr) repeat(3, minmax(100px, .7fr)) 34px;
  align-items: end;
  gap: 9px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.sku-editor-row .form-field {
  margin: 0;
}

.sku-remove {
  margin-bottom: 5px;
  color: var(--wine);
}

@media (max-width: 760px) {
  .commerce-product-card {
    grid-template-columns: 1fr;
  }

  .commerce-order-head {
    flex-direction: column;
  }

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

  .admin-order-product-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .admin-order-product-image {
    width: 42px;
    height: 42px;
  }

  .admin-order-product-row > div:nth-child(4),
  .admin-order-product-row > div:nth-child(5) {
    grid-column: 2 / -1;
  }

  .commerce-order-amount {
    text-align: left;
  }

  .commerce-return-row {
    grid-template-columns: 1fr auto;
  }

  .commerce-return-row .primary-button {
    grid-column: 1 / -1;
  }

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

  .sku-editor-row > .form-field:first-of-type {
    grid-column: 1 / -1;
  }

  .sku-remove {
    margin: 0;
  }
}

.product-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-art > .tag {
  z-index: 2;
}

.product-video-badge {
  position: absolute;
  right: 11px;
  bottom: 11px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff8ed;
  background: rgba(45, 29, 22, 0.76);
  font-size: 9px;
  backdrop-filter: blur(8px);
}

.product-media-viewer {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  margin: 16px 0 22px;
}

.product-media-thumbs {
  display: flex;
  max-height: 440px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.product-media-thumb {
  position: relative;
  width: 82px;
  height: 66px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #e9e2d7;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.product-media-thumb:hover {
  border-color: rgba(117, 52, 48, 0.35);
}

.product-media-thumb.active {
  border-color: var(--wine);
  box-shadow: 0 0 0 2px rgba(117, 52, 48, 0.11);
}

.product-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media-thumb small {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 20, 18, 0.72);
  font-size: 8px;
}

.product-media-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(20, 20, 18, 0.64);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.product-media-thumb-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #fff;
  transform: translate(-50%, -50%);
}

.product-media-main {
  position: relative;
  height: clamp(280px, 42vw, 440px);
  overflow: hidden;
  border: 1px solid rgba(76, 52, 38, 0.12);
  border-radius: 17px;
  background: #e9e2d7;
}

.product-media-slide {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  background: #e9e2d7;
}

.product-media-slide.active {
  display: grid;
  place-items: center;
}

.product-media-slide.image {
  padding: 0;
  cursor: zoom-in;
}

.product-media-slide img,
.product-media-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-media-slide.video {
  background: #111714;
}

.product-media-kind,
.product-media-zoom-hint,
.product-media-counter {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(21, 23, 20, 0.68);
  font-size: 9px;
  backdrop-filter: blur(8px);
}

.product-media-kind {
  top: 12px;
  left: 12px;
}

.product-media-zoom-hint {
  right: 12px;
  bottom: 12px;
  opacity: 0;
  transition: opacity 160ms ease;
}

.product-media-slide.image:hover .product-media-zoom-hint,
.product-media-slide.image:focus-visible .product-media-zoom-hint {
  opacity: 1;
}

.product-media-counter {
  right: 12px;
  top: 12px;
  min-width: 48px;
  text-align: center;
  pointer-events: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(8, 10, 9, 0.94);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.image-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: calc(100vw - 56px);
  max-height: calc(100vh - 56px);
  margin: 0;
  place-items: center;
  gap: 12px;
  pointer-events: none;
}

.image-lightbox-panel img {
  display: block;
  max-width: calc(100vw - 84px);
  max-height: calc(100vh - 112px);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

.image-lightbox-panel figcaption {
  color: rgba(255, 248, 237, 0.8);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.image-lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  width: 42px;
  height: 42px;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 26px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.image-lightbox-step {
  position: fixed;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 64px;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(14, 18, 16, 0.7);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.image-lightbox-step:hover {
  background: rgba(255, 255, 255, 0.14);
}

.image-lightbox-step.previous {
  left: 22px;
}

.image-lightbox-step.next {
  right: 22px;
}

.image-lightbox-step[hidden] {
  display: none;
}

.image-lightbox-counter {
  min-height: 18px;
  color: rgba(255, 248, 237, 0.66);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.media-upload-actions {
  display: flex;
  gap: 7px;
}

.admin-media-list {
  display: grid;
  gap: 8px;
}

.admin-media-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.26);
}

.admin-media-preview {
  width: 92px;
  height: 64px;
  overflow: hidden;
  border-radius: 9px;
  background: #e7ded0;
}

.admin-media-preview img,
.admin-media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-media-item strong,
.admin-media-item small {
  display: block;
}

.admin-media-item small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.admin-media-empty {
  padding: 18px;
  border: 1px dashed rgba(76, 52, 38, 0.2);
  border-radius: 13px;
  color: var(--ink-soft);
  font-size: 10px;
  text-align: center;
}

.collection-view-tabs {
  display: flex;
  gap: 5px;
  margin: 14px 0 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  width: fit-content;
}

.collection-view-tabs button {
  min-width: 104px;
  padding: 9px 15px;
  border: 0;
  border-radius: 10px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}

.collection-view-tabs button.active {
  color: #fff;
  background: var(--wine);
  box-shadow: 0 8px 18px rgba(241, 90, 36, 0.18);
}

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

.collection-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
  padding: 22px;
}

.collection-action-card.compact {
  margin-top: 0;
}

.collection-action-card h3 {
  margin: 7px 0 4px;
  font-family: var(--serif);
  font-size: 24px;
}

.collection-action-card p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.collection-dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 14px;
  margin-top: 14px;
}

.collection-job-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto 110px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.collection-job-row:first-of-type,
.collection-failure-row:first-of-type {
  border-top: 0;
}

.collection-job-row strong,
.collection-job-row small,
.collection-failure-row strong,
.collection-failure-row small {
  display: block;
}

.collection-job-row small,
.collection-failure-row small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
}

.collection-progress {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(31, 48, 77, 0.09);
}

.collection-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f15a24, #e0a33b);
  transition: width 260ms ease;
}

.collection-failure-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.collection-failure-row > small {
  grid-column: 1 / -1;
}

.collection-filter-card {
  margin-bottom: 14px;
}

.collection-filter-card form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px auto auto auto;
  align-items: end;
  gap: 10px;
}

.collection-table-card {
  overflow: hidden;
}

.collection-source-head,
.collection-source-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) minmax(130px, .7fr) minmax(210px, 1.1fr) minmax(170px, .9fr) 150px;
  gap: 14px;
  align-items: center;
}

.collection-source-head,
.collection-job-head,
.collection-site-head {
  padding: 10px 0;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collection-source-row {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.collection-source-row strong,
.collection-source-row small,
.collection-site-row strong,
.collection-site-row small,
.collection-job-list-row strong,
.collection-job-list-row small {
  display: block;
}

.collection-source-row small,
.collection-site-row small,
.collection-job-list-row small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.collection-source-main > small {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-source-main .status-badge {
  margin-top: 7px;
}

.collection-row-actions,
.collection-job-detail .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.collection-error-text {
  color: #a53f2d !important;
}

.collection-job-head,
.collection-job-list-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) 100px minmax(130px, .7fr) 110px 130px;
  gap: 14px;
  align-items: center;
}

.collection-job-list-row {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.collection-job-progress-cell {
  display: grid;
  gap: 6px;
}

.collection-inline-filter {
  min-width: 140px;
}

.collection-inline-filter > span {
  font-size: 9px;
}

.collection-job-detail {
  margin-top: 14px;
}

.collection-scheduler-summary {
  display: grid;
  justify-items: end;
  gap: 3px;
  margin-bottom: 10px;
}

.collection-scheduler-summary strong {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
}

.collection-scheduler-summary small {
  color: var(--ink-soft);
  font-size: 9px;
}

.collection-quality-alerts {
  margin-top: 14px;
}

.collection-notification-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 14px;
  margin-top: 14px;
}

.collection-channel-row,
.collection-delivery-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.collection-channel-row > div:first-child,
.collection-delivery-row > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.collection-channel-row small,
.collection-delivery-row small {
  color: var(--ink-soft);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.collection-channel-row .status-badge {
  width: fit-content;
}

.collection-wide-field {
  grid-column: 1 / -1;
}

.collection-rollback-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.collection-rollback-summary > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-light);
}

.collection-rollback-summary small,
.collection-rollback-summary strong {
  display: block;
}

.collection-rollback-summary small {
  color: var(--ink-soft);
  font-size: 9px;
}

.collection-rollback-summary strong {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 24px;
}

.collection-rollback-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.collection-rollback-counts span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 9px;
}

.collection-alert-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.collection-alert-row > div {
  display: grid;
  gap: 5px;
}

.collection-alert-row strong,
.collection-alert-row small {
  display: block;
}

.collection-alert-row small {
  color: var(--ink-soft);
  font-size: 9px;
}

.collection-alert-row .status-badge {
  width: fit-content;
}

.collection-site-head,
.collection-site-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) 100px minmax(210px, 1fr) minmax(170px, .8fr);
  gap: 14px;
  align-items: start;
}

.collection-site-row {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .collection-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .collection-dashboard-columns {
    grid-template-columns: 1fr;
  }

  .collection-source-head,
  .collection-source-row {
    grid-template-columns: minmax(240px, 1.4fr) 110px minmax(190px, 1fr) 140px;
  }

  .collection-source-head span:nth-child(4),
  .collection-source-row > div:nth-child(4) {
    display: none;
  }
}

@media (max-width: 820px) {
  .collection-action-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .collection-filter-card form {
    grid-template-columns: 1fr 1fr;
  }

  .collection-filter-card form .form-field:first-child {
    grid-column: 1 / -1;
  }

  .collection-source-head,
  .collection-job-head,
  .collection-site-head {
    display: none;
  }

  .collection-source-row,
  .collection-job-list-row,
  .collection-site-row {
    grid-template-columns: 1fr auto;
    align-items: start;
    padding: 16px;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  .collection-source-row > div:nth-child(2),
  .collection-source-row > div:nth-child(3),
  .collection-source-row > div:nth-child(4),
  .collection-job-list-row > div:nth-child(3),
  .collection-job-list-row > div:nth-child(4),
  .collection-site-row > div:nth-child(3),
  .collection-site-row > div:nth-child(4) {
    grid-column: 1 / -1;
  }

  .collection-row-actions,
  .collection-job-list-row > button {
    grid-column: 1 / -1;
  }

  .collection-job-row {
    grid-template-columns: 1fr auto;
  }

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

  .collection-notification-layout {
    grid-template-columns: 1fr;
  }

  .collection-channel-row,
  .collection-delivery-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .collection-rollback-summary {
    grid-template-columns: 1fr;
  }

  .collection-alert-row button {
    width: fit-content;
  }

  .collection-job-row > span:nth-child(3),
  .collection-job-row > .collection-progress {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .collection-view-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .collection-view-tabs button {
    min-width: 96px;
  }

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

  .collection-filter-card form {
    grid-template-columns: 1fr;
  }

  .collection-filter-card form .form-field:first-child {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .product-media-viewer {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-media-thumbs {
    order: 2;
    max-height: none;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .product-media-thumb {
    width: 68px;
    height: 54px;
  }

  .product-media-main {
    height: clamp(240px, 72vw, 330px);
  }

  .image-lightbox {
    padding: 18px;
  }

  .image-lightbox-panel {
    max-width: calc(100vw - 28px);
  }

  .image-lightbox-panel img {
    max-width: calc(100vw - 36px);
    max-height: calc(100vh - 110px);
  }

  .image-lightbox-close {
    top: 14px;
    right: 14px;
  }

  .image-lightbox-step {
    width: 40px;
    height: 52px;
    font-size: 32px;
  }

  .image-lightbox-step.previous {
    left: 8px;
  }

  .image-lightbox-step.next {
    right: 8px;
  }

  .admin-media-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .admin-media-preview {
    width: 72px;
    height: 52px;
  }

  .admin-media-item .text-button {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

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

.address-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 252, 246, 0.5);
}

.address-card.default {
  border-color: rgba(180, 138, 67, 0.34);
  background:
    radial-gradient(circle at 100% 0, rgba(180, 138, 67, 0.11), transparent 38%),
    rgba(255, 252, 246, 0.72);
}

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

.address-card h3 {
  margin: 14px 0 7px;
  font-size: 20px;
}

.address-card h3 small {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
}

.address-card p {
  min-height: 47px;
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.address-card > small {
  color: var(--ink-soft);
  font-size: 9px;
}

.address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.address-default-check {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11px;
}

.shipping-detail {
  flex-basis: 100%;
  padding: 8px 10px !important;
  border-radius: 9px !important;
  color: var(--ink) !important;
  background: rgba(109, 56, 44, 0.055);
  line-height: 1.5;
}

.ship-address-box {
  display: grid;
  gap: 5px;
  margin: 13px 0;
  padding: 13px;
  border: 1px solid rgba(180, 138, 67, 0.22);
  border-radius: 13px;
  background: rgba(180, 138, 67, 0.07);
}

.ship-address-box strong {
  font-size: 12px;
}

.ship-address-box span {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .library-primary-filters {
    grid-template-columns: 1fr;
  }

  .grouped-select-menu,
  .series-select-menu {
    right: auto;
    left: 0;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .address-grid {
    grid-template-columns: 1fr;
  }

  .brand-select {
    flex-basis: 100%;
    width: 100%;
    max-width: none;
  }
}

.return-tracking-card {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(109, 56, 44, 0.13);
  border-radius: 14px;
  background: rgba(109, 56, 44, 0.035);
}

.return-tracking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.return-tracking-head strong,
.return-tracking-head small {
  display: block;
}

.return-tracking-head small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
}

.return-tracking-card > p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.return-timeline {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.return-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  padding-bottom: 13px;
  color: var(--ink-soft);
}

.return-timeline-item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 15px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.return-timeline-item:last-child::before {
  display: none;
}

.return-timeline-item i {
  width: 11px;
  height: 11px;
  margin-top: 2px;
  border: 2px solid #a48e79;
  border-radius: 50%;
  background: #f7f1e7;
}

.return-timeline-item.latest i {
  border-color: var(--wine);
  background: var(--wine);
  box-shadow: 0 0 0 4px rgba(101, 47, 43, 0.1);
}

.return-timeline-item strong,
.return-timeline-item span,
.return-timeline-item small {
  display: block;
}

.return-timeline-item strong {
  color: var(--ink);
  font-size: 11px;
}

.return-timeline-item span {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.55;
}

.return-timeline-item small {
  margin-top: 3px;
  font-size: 8px;
}

.return-tracking-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

.inventory-asset-name {
  padding: 0;
  color: var(--wine);
  font: inherit;
  font-weight: 700;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed rgba(101, 47, 43, .35);
  cursor: pointer;
}

.inventory-asset-row .data-row,
.inventory-asset-row small {
  display: block;
}

.inventory-asset-row small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
}

.inventory-search-field {
  position: relative;
}

.inventory-search-results {
  position: relative;
  z-index: 8;
  max-height: 260px;
  overflow: auto;
  margin-top: 6px;
  border-radius: 8px;
}

.inventory-search-results:empty {
  display: none;
}

.inventory-search-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-top: 0;
  cursor: pointer;
}

.inventory-search-item:first-child {
  border-top: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
}

.inventory-search-item:last-child {
  border-radius: 0 0 8px 8px;
}

.inventory-search-item:hover {
  background: #fff4e5;
}

.inventory-search-item strong,
.inventory-search-item small {
  display: block;
}

.inventory-search-item strong {
  font-size: 12px;
}

.inventory-search-item small,
.inventory-search-empty {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
}

.inventory-search-empty {
  padding: 10px 12px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.inventory-selected-cigar {
  margin-top: 7px;
  padding: 8px 10px;
  color: var(--ink-soft);
  font-size: 10px;
  background: rgba(101, 47, 43, .05);
  border-radius: 7px;
}

.inventory-assets-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.inventory-asset-list {
  display: grid;
  gap: 7px;
  max-height: 58vh;
  margin-top: 14px;
  overflow: auto;
}

.inventory-asset-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}

.inventory-asset-item:hover {
  border-color: rgba(101, 47, 43, .35);
  background: #fff7ec;
}

.inventory-asset-item.removed {
  opacity: .56;
}

.asset-symbol {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  font-size: 18px;
  border-radius: 6px;
  background: #7d5c43;
}

.inventory-asset-item strong,
.inventory-asset-item small {
  display: block;
}

.inventory-asset-item strong {
  font-family: monospace;
  font-size: 12px;
}

.inventory-asset-item small,
.inventory-asset-item em {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
  font-style: normal;
}

.reserved-asset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.reserved-asset-list span {
  padding: 6px 9px;
  color: #70451f;
  font: 10px monospace;
  background: #fff0d5;
  border: 1px solid rgba(153, 96, 39, .24);
  border-radius: 6px;
}

.notice-box code {
  padding: 1px 4px;
  color: #5f3425;
  font-size: .92em;
  background: rgba(101, 47, 43, .07);
  border-radius: 3px;
}

.barcode-print-area {
  text-align: center;
}

.barcode-card {
  width: min(680px, 100%);
  margin: 16px auto;
  padding: 16px;
  background: #fff;
  border: 1px solid #d8cabc;
  border-radius: 10px;
}

.asset-barcode {
  display: block;
  width: 100%;
  height: auto;
  shape-rendering: crispEdges;
}

.barcode-meta {
  display: grid;
  gap: 4px;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.barcode-meta span,
.barcode-meta small {
  color: var(--ink-soft);
  font-size: 9px;
}

.barcode-meta strong {
  font: 18px monospace;
  letter-spacing: .06em;
}

@media print {
  body.printing-barcode > * {
    visibility: hidden !important;
  }

  body.printing-barcode #modalLayer,
  body.printing-barcode #modalLayer * {
    visibility: visible !important;
  }

  body.printing-barcode #modalLayer {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    background: #fff !important;
  }

  body.printing-barcode .modal-backdrop,
  body.printing-barcode .modal-close,
  body.printing-barcode .modal-actions,
  body.printing-barcode .eyebrow,
  body.printing-barcode .modal-intro {
    display: none !important;
  }

  body.printing-barcode .modal-panel {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 20px !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body.printing-barcode .barcode-card {
    width: 90% !important;
    margin: 20px auto !important;
    border: 0 !important;
  }
}

@media (max-width: 900px) {
  .layout-editor {
    grid-template-columns: 1fr;
  }

  .layout-editor-head,
  .layout-mode-banner {
    display: block;
  }

  .layout-editor-head .button-row,
  .layout-mode-banner .text-button {
    margin-top: 10px;
  }

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

  .venue-layout-grid,
  .layout-editor-grid {
    gap: 2px;
    padding: 5px;
  }

  .layout-object small,
  .layout-editor-cell small {
    display: none;
  }
}

@media (max-width: 760px) {
  .venue-image-upload-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .venue-image-list {
    grid-template-columns: 1fr;
  }

  .audit-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .audit-filter-reset {
    grid-column: 1 / -1;
  }

  .audit-table {
    min-width: 680px;
  }

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

  .admin-order-filter-reset {
    grid-column: 1 / -1;
  }

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

  .order-snapshot-summary .full {
    grid-column: auto;
  }

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

  .order-snapshot-item > div:first-child,
  .order-snapshot-item > .full {
    grid-column: 1 / -1;
  }
}

/* Final component pass for the Najia color system. */
.commerce-product-card,
.commerce-order-card,
.merchant-account-details,
.inventory-asset-item,
.barcode-card {
  background: #fff;
}

.commerce-product-card,
.commerce-order-card {
  box-shadow: var(--shadow-soft);
}

.commerce-product-side > div:not(.commerce-product-actions),
.commerce-order-customer,
.commerce-order-items span,
.admin-order-products-head {
  border-color: var(--line);
  background: #fff8ee;
}

.admin-order-products {
  background: #fff;
}

.invoice-sheet,
.settlement-card,
.activity-card-foot {
  border-color: var(--line);
}

.text-button {
  color: var(--wine);
}

.text-button:hover {
  color: var(--wine-dark);
}

.filter-reset-button {
  color: var(--wine);
  background: #fff4e9;
  border-color: rgba(241, 90, 36, 0.2);
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus,
.hero-search input:focus,
.inline-search input:focus {
  border-color: rgba(241, 90, 36, 0.48);
  box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.09);
}

.tag,
.status-badge {
  background: #fff4e9;
}

.tag.gold {
  color: var(--wine-dark);
  background: #ffe2d5;
}

.layout-object.seat {
  color: #172b4d;
  background: linear-gradient(145deg, #ffd4bd, #ff9b6d);
}

.layout-object.seat.selected {
  color: #fff;
  background: linear-gradient(145deg, #ff6a2f, #d9480f);
  box-shadow: 0 0 0 2px #172b4d, 0 0 0 4px #ffb18c;
}

.payment-checkout-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.payment-checkout-head h2 {
  margin: 5px 0 4px;
}

.payment-checkout-head small {
  color: var(--ink-soft);
  font-size: 10px;
}

.payment-checkout-head > strong {
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 38px);
  white-space: nowrap;
}

.payment-method-list {
  display: grid;
  gap: 9px;
  margin: 18px 0;
}

.payment-method-card {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.payment-method-card:hover {
  border-color: rgba(241, 90, 36, 0.35);
  box-shadow: 0 8px 22px rgba(20, 35, 60, 0.07);
  transform: translateY(-1px);
}

.payment-method-card.unavailable {
  background: #fffaf3;
}

.payment-brand-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border-radius: 13px;
  color: #fff;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.payment-brand-icon.wechat {
  background: linear-gradient(145deg, #1aad19, #07820d);
}

.payment-brand-icon.alipay {
  background: linear-gradient(145deg, #1687ff, #075bb5);
}

.payment-brand-icon.unionpay {
  background: linear-gradient(145deg, #e43832, #a91522);
}

.payment-brand-icon.neutral {
  background: linear-gradient(145deg, #70819a, #354963);
}

.payment-method-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.payment-method-copy strong {
  font-size: 14px;
}

.payment-method-copy small {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-config-status {
  padding: 4px 8px;
  border-radius: 99px;
  font-size: 9px;
  white-space: nowrap;
}

.payment-config-status.ready {
  color: #176b39;
  background: #e8f7ee;
}

.payment-config-status.pending {
  color: #8a5b19;
  background: #fff1db;
}

.payment-method-arrow {
  color: var(--ink-soft);
  font-size: 25px;
  line-height: 1;
}

.payment-demo-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 6px;
  padding: 12px 14px;
  color: var(--wine);
  text-align: left;
  border: 1px dashed rgba(241, 90, 36, 0.3);
  border-radius: 13px;
  background: #fff6ec;
  cursor: pointer;
}

.payment-demo-button span {
  font-weight: 700;
}

.payment-demo-button small {
  color: var(--ink-soft);
  font-size: 9px;
}

.payment-security-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
  border-radius: 10px;
  background: rgba(18, 42, 74, 0.045);
}

.payment-security-note svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
}

.payment-launch-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 17px;
}

.payment-launch-head h2 {
  margin: 4px 0 0;
}

.payment-qr {
  width: min(280px, 75vw);
  min-height: 220px;
  display: grid;
  place-items: center;
  margin: 20px auto 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(20, 35, 60, 0.12);
}

.payment-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.payment-code-url {
  max-width: 520px;
  margin: 0 auto 15px;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font: 9px/1.55 monospace;
  text-align: center;
}

.payment-waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 15px 0;
  padding: 11px;
  color: var(--ink-soft);
  border-radius: 11px;
  background: #fff8ee;
  font-size: 11px;
}

.payment-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 0 rgba(241, 90, 36, 0.35);
  animation: payment-pulse 1.8s infinite;
}

.payment-order-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 19px 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff8ee;
}

.payment-order-strip span {
  color: var(--ink-soft);
  font-size: 11px;
}

.payment-order-strip strong {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 25px;
}

.payment-success-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 21px auto;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #1f9d61, #117544);
  box-shadow: 0 12px 30px rgba(19, 128, 75, 0.2);
}

.payment-success-mark svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.payment-qr-error {
  max-width: 220px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

@keyframes payment-pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(241, 90, 36, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(241, 90, 36, 0);
  }
}

@media (max-width: 760px) {
  .payment-checkout-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .payment-checkout-head > strong {
    font-size: 28px;
  }

  .payment-method-card {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    padding: 12px;
  }

  .payment-method-arrow {
    display: none;
  }

  .payment-method-copy small {
    white-space: normal;
  }

  .payment-config-status {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .payment-demo-button {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .payment-pulse {
    animation: none;
  }
}

@media (max-width: 1200px) {
  .bf-cigar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .bf-hero {
    grid-template-columns: 1fr;
    padding: 34px 26px;
  }

  .bf-hero-art {
    min-height: 220px;
  }

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

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

  .bf-audit-grid {
    grid-template-columns: 1fr;
  }

  .bf-site-hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .bf-hero {
    border-radius: 24px;
  }

  .bf-hero h1 {
    font-size: 39px;
  }

  .bf-sale-mark {
    font-size: 65px;
  }

  .bf-orbit.one {
    width: 220px;
    height: 220px;
  }

  .bf-orbit.two {
    width: 280px;
    height: 150px;
  }

  .bf-stat-strip > div {
    padding: 14px;
  }

  .bf-stat-strip strong {
    font-size: 25px;
  }

  .bf-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .bf-deal-grid {
    grid-template-columns: 1fr;
  }

  .bf-deal-card {
    height: auto;
    min-height: auto;
  }

  .bf-policy {
    min-height: 180px;
    max-height: 220px;
  }

  .bf-site-hero {
    border-radius: 22px;
    padding: 24px 18px;
  }

  .bf-site-hero-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .bf-store-stats {
    grid-template-columns: 1fr;
  }

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

  .bf-method-note {
    align-items: flex-start;
  }

  .mobile-nav-link small {
    font-size: 8px;
  }
}

@media (max-width: 430px) {
  .bf-cigar-grid {
    grid-template-columns: 1fr;
  }
}

