:root {
  --ink: #1c1c1c;
  --muted: #676767;
  --line: #e0e0e0;
  --panel: #ffffff;
  --wash: #f8f8f8;
  --brand: #a71930;
  --brand-dark: #7b1425;
  --green: #0f7a4f;
  --amber: #a05a00;
  --danger: #b42318;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(28, 28, 28, .08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  background: #181818;
  color: #fff;
  border-bottom: 4px solid var(--brand);
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #141414;
  color: #fff;
  font-weight: 900;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: #ededed;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: .95rem;
}

.nav-links a:hover,
.nav-links .active {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.hero {
  background:
    linear-gradient(105deg, rgba(24, 24, 24, .94), rgba(24, 24, 24, .78)),
    radial-gradient(circle at 82% 22%, rgba(167, 25, 48, .34), transparent 32%),
    #181818;
  color: #fff;
  padding: 64px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: #f1c5cc;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: .78rem;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.lead {
  color: #e8e8e8;
  font-size: 1.1rem;
  max-width: 680px;
}

.hero-actions,
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
}

.button,
button,
input[type="submit"] {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  padding: 12px 16px;
  min-height: 44px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .95rem;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  background: #a71930;
}

.button.secondary {
  background: #fff;
  color: var(--brand-dark);
  border-color: #dedede;
}

.button.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
}

.button.muted {
  background: #f3f3f3;
  color: var(--ink);
  border-color: #e0e0e0;
}

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

.button.compact,
button.compact {
  min-height: 34px;
  padding: 7px 10px;
  font-size: .82rem;
}

.device-stack {
  min-height: 340px;
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03)),
    #252525;
  border: 1px solid rgba(255, 255, 255, .18);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.device-stack::before,
.device-stack::after {
  content: "";
  position: absolute;
  background: #313131;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}

.device-stack::before {
  width: 56%;
  height: 42%;
  left: 12%;
  bottom: 17%;
  border-radius: 8px;
}

.device-stack::after {
  width: 34%;
  height: 56%;
  right: 13%;
  top: 13%;
  border-radius: 8px;
}

.ports {
  position: absolute;
  left: 17%;
  bottom: 24%;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.ports span {
  width: 24px;
  height: 8px;
  border-radius: 99px;
  background: #f1c5cc;
}

main {
  padding-bottom: 60px;
}

.section {
  padding: 42px 0;
}

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

.section-head.compact {
  align-items: center;
  margin-bottom: 12px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.products {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

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

.card,
.product-card,
.admin-panel,
.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(28, 28, 28, .04);
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-media {
  min-height: 188px;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, #f7f7f7, #fafafa 48%, #f1f1f1);
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  font-weight: 900;
  position: relative;
}

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

.product-media span {
  width: 74%;
  height: 44%;
  border: 2px solid #f1c5cc;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .55);
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.price {
  font-weight: 900;
  font-size: 1.45rem;
}

.specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .94rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  background: #edf7f2;
  color: var(--green);
}

.badge.out {
  background: #fff3e2;
  color: var(--amber);
}

.product-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filters {
  padding: 16px;
  margin-bottom: 18px;
}

.filter-advanced {
  display: block;
  gap: 12px;
  margin-top: 12px;
}

.filter-advanced summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #f7f7f7;
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 900;
}

.filter-advanced summary::-webkit-details-marker {
  display: none;
}

.filter-advanced[open] summary {
  margin-bottom: 12px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .42fr);
  gap: 18px;
  align-items: start;
}

.cart-panel,
.cart-summary {
  padding: 18px;
}

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

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

.cart-item:last-of-type {
  border-bottom: 0;
}

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

.cart-item-main {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.cart-item-main img,
.cart-drawer-item img {
  width: 74px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e7e7e7;
  background: #f7f7f7;
}

.cart-item-main:not(:has(img)) {
  grid-template-columns: 1fr;
}

.cart-qty input {
  min-height: 38px;
  padding: 7px 9px;
}

.cart-price {
  display: grid;
  justify-items: end;
}

.cart-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
}

.cart-summary {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 14px;
}

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(19, 19, 19, .58);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(420px, 100vw);
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
  color: #131313;
  box-shadow: -24px 0 60px rgba(19, 19, 19, .28);
  transform: translateX(102%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .22s ease, visibility .22s ease;
}

.cart-drawer[hidden],
.cart-drawer-backdrop[hidden] {
  display: none !important;
}

.cart-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-head > div {
  display: grid;
  gap: 2px;
}

.cart-drawer-head span,
.cart-drawer-item span,
.cart-drawer-summary p {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  background: #f7f7f7;
  color: var(--brand-dark);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.cart-drawer-head .icon-button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid #dbdbdb;
  background: #fcfcfc;
  color: #131313;
  box-shadow: 0 10px 24px rgba(19, 19, 19, .12);
}

.cart-drawer-head .icon-button svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.cart-drawer-head .icon-button:hover,
.cart-drawer-head .icon-button:focus-visible {
  border-color: var(--brand);
  background: #f5f5f5;
  color: #a71930;
  outline: none;
}

.cart-drawer-empty {
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 24px 20px;
}

.cart-drawer-items {
  overflow: auto;
  padding: 6px 20px;
}

.cart-drawer-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-item > div {
  display: grid;
  gap: 4px;
}

.cart-drawer-item > div:first-child {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
}

.cart-drawer-item > div:first-child:not(:has(img)) {
  grid-template-columns: 1fr;
}

.cart-drawer-item img {
  width: 64px;
}

.cart-drawer-item > div:last-child {
  justify-items: end;
  text-align: right;
}

.cart-drawer-summary {
  display: grid;
  gap: 10px;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
  background: #fbfbfb;
}

.cart-drawer-summary > div:not(.actions) {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.cart-drawer-summary .discount-line {
  color: var(--green);
}

.cart-drawer-summary .grand-line {
  padding-top: 10px;
  border-top: 1px solid #e7e7e7;
  font-size: 1.08rem;
}

.cart-drawer-summary .actions {
  align-items: stretch;
}

.cart-drawer-summary form {
  display: contents;
}

.subscribe-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #f7f7f7;
  color: #2e2e2e;
}

.discount-total {
  background: #eaf8f1;
  color: var(--green);
}

.grand-total {
  background: #131313;
  color: #fff;
}

.warning-text {
  color: var(--danger);
  font-weight: 800;
}

label {
  display: grid;
  gap: 6px;
  color: #3d3d3d;
  font-weight: 700;
  font-size: .9rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 7px;
  min-height: 42px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

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

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.alert-toggle {
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfcfc;
}

.alert-toggle span {
  display: grid;
  gap: 3px;
}

.alert-toggle small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.option-group {
  border: 0;
  padding: 0;
  margin: 0;
}

.option-group legend {
  font-weight: 900;
  margin-bottom: 8px;
}

.option-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-choice {
  cursor: pointer;
}

.option-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-choice span {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 10px 13px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.option-choice small {
  color: var(--muted);
  font-weight: 800;
}

.option-choice input:checked + span {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(167, 25, 48, .14);
}

.config-total {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 4px 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
}

.config-total span {
  color: var(--muted);
  font-weight: 800;
}

.option-admin {
  display: grid;
  gap: 14px;
}

.option-admin-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
}

.option-admin-row,
.option-value-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.option-admin-row label {
  min-width: 130px;
  flex: 1 1 130px;
}

.option-admin-row .checkbox {
  flex: 0 0 auto;
  min-width: auto;
}

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

.add-row {
  border-style: dashed;
}

.notice {
  padding: 14px 16px;
  margin: 18px 0;
  border-left: 4px solid var(--brand);
}

.notice.success {
  border-left-color: var(--green);
}

.notice.error {
  border-left-color: var(--danger);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.detail-layout > * {
  min-width: 0;
}

.detail-media {
  aspect-ratio: auto;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
}

.detail-panel {
  min-width: 0;
  padding: 24px;
}

.detail-panel h1 {
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  overflow-wrap: anywhere;
}

.detail-panel p {
  overflow-wrap: anywhere;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-menu {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.admin-user-card {
  display: grid;
  gap: 3px;
  padding: 10px 12px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.admin-user-card strong,
.admin-user-card span,
.admin-user-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-card span {
  color: var(--muted);
  font-size: .82rem;
}

.admin-user-card small {
  color: var(--brand-dark);
  font-weight: 900;
  letter-spacing: 0;
}

.admin-menu a {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
}

.admin-menu a.active,
.admin-menu a:hover {
  background: #f7f7f7;
  color: var(--brand-dark);
}

.admin-panel {
  padding: 18px;
  overflow-x: auto;
}

.admin-panel .grid > .notice {
  margin: 0;
}

.command-center {
  background:
    linear-gradient(135deg, rgba(19, 19, 19, .98), rgba(43, 43, 43, .94)),
    radial-gradient(circle at 92% 18%, rgba(167, 25, 48, .28), transparent 34%);
  color: #fff;
}

.command-center .small,
.command-center .section-head {
  color: #dadada;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.command-card {
  display: grid;
  gap: 8px;
  min-height: 108px;
  padding: 16px;
  text-decoration: none;
  border: 1px solid rgba(229, 137, 151, .26);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.command-card:hover {
  border-color: rgba(241, 197, 204, .68);
  background: rgba(167, 25, 48, .14);
}

.command-card span {
  color: #dadada;
  font-size: .82rem;
  font-weight: 800;
}

.command-card strong {
  align-self: end;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  overflow-wrap: anywhere;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 12px 0;
}

.admin-toolbar label {
  min-width: 160px;
}

.admin-toolbar .checkbox {
  min-width: auto;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 250px;
}

.order-actions form {
  margin: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: .78rem;
  font-weight: 900;
  background: #f3f3f3;
  color: var(--muted);
  white-space: nowrap;
}

.status-pill.paid {
  background: #e7f8ed;
  color: #146c37;
}

.status-pill.pending {
  background: #fff7df;
  color: #8a5a00;
}

.status-pill.failed {
  background: #feecec;
  color: #a32020;
}

.status-pill.muted {
  background: #f3f3f3;
  color: #636363;
}

.subscriber-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.subscriber-segments span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f7f7f7;
  color: #7b1425;
  font-size: .82rem;
  font-weight: 800;
}

.archived-row {
  opacity: .72;
}

.order-detail {
  margin-top: 18px;
}

.protected-action {
  display: grid;
  gap: 10px;
  padding: 12px;
  margin: 16px 0;
  border: 1px solid #f1b4b4;
  border-radius: 7px;
  background: #fff8f8;
}

.compact-table {
  min-width: 620px;
}

.compact-table textarea {
  min-height: 74px;
}

.analytics-card h3 {
  margin-top: 4px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.analytics-bars {
  display: grid;
  gap: 10px;
}

.analytics-bar-row {
  display: grid;
  grid-template-columns: 74px minmax(140px, 1fr) 48px 86px;
  align-items: center;
  gap: 10px;
}

.analytics-bar-row > span,
.analytics-bar-row small {
  color: var(--muted);
  font-weight: 800;
}

.analytics-bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #f3f3f3;
}

.analytics-bar-track span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
}

.orders-table {
  min-width: 1180px;
}

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

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

th {
  font-size: .82rem;
  color: var(--muted);
  text-transform: uppercase;
}

.site-footer {
  background: #181818;
  color: #e8e8e8;
  padding: 34px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.small {
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 820px) {
  .nav,
  .section-head,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .grid.two,
  .grid.three,
  .detail-layout,
  .admin-layout,
  .form-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.55rem;
  }

  .device-stack {
    min-height: 230px;
  }

  .detail-media {
    height: 260px;
  }
}

/* Compute Supply Co. premium retail redesign */
:root {
  --ink: #121212;
  --muted: #767676;
  --line: #e4e4e4;
  --panel: #ffffff;
  --wash: #f8f8f8;
  --brand: #a71930;
  --brand-2: #7b1425;
  --brand-dark: #171717;
  --charcoal: #1c1c1c;
  --green: #12815a;
  --amber: #b66a00;
  --danger: #c0322b;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(14, 14, 14, .14);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--wash);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 20% -10%, rgba(167, 25, 48, .18), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(18, 129, 90, .08), transparent 22%),
    linear-gradient(#fcfcfc, #f4f4f4);
}

.wrap {
  width: min(1500px, calc(100% - 48px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(17, 17, 17, .92);
  border-bottom: 1px solid rgba(167, 25, 48, .35);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 78px;
  gap: 18px;
  flex-wrap: nowrap;
  align-items: center;
}

.brand {
  color: #fff;
  flex: 0 0 auto;
  min-width: 250px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 2px solid var(--brand);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(167, 25, 48, .2), rgba(255, 255, 255, .04)),
    #131313;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 30px rgba(167, 25, 48, .28);
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.32rem;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  line-height: 1;
  font-size: 1.05rem;
}

.brand-copy small {
  color: #dadada;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nav-links {
  flex: 1 1 auto;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: visible;
}

.nav-links a {
  color: #f1f1f1;
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: .86rem;
  font-weight: 700;
  padding: 9px 12px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links .active {
  background: rgba(167, 25, 48, .15);
  color: #fff;
}

.mobile-cart-link {
  display: none;
}

.nav-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}

.nav-tools a {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 232, 232, .22);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.nav-tools span {
  position: absolute;
  right: -2px;
  top: -5px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  font-size: .68rem;
}

.nav-tools a svg,
.menu-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-tools a:hover {
  background: rgba(167, 25, 48, .16);
  border-color: rgba(241, 197, 204, .55);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(232, 232, 232, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(86px, 7vw, 112px) 0 clamp(34px, 4vw, 54px);
  background:
    linear-gradient(105deg, rgba(13, 13, 13, .99) 0%, rgba(22, 22, 22, .92) 48%, rgba(15, 15, 15, .88) 100%),
    radial-gradient(circle at 86% 18%, rgba(167, 25, 48, .48), transparent 31%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 64%, rgba(167, 25, 48, .18) 64.4%, transparent 66%),
    linear-gradient(132deg, transparent 0 72%, rgba(167, 25, 48, .12) 72.5%, transparent 74%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(340px, .85fr) minmax(420px, 1.15fr);
  gap: 24px;
  align-items: center;
  min-height: 520px;
}

.hero-copy {
  padding: 0 0 54px;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(2.7rem, 5.4vw, 5.35rem);
  font-weight: 900;
  color: #fff;
}

.hero h1 span {
  color: var(--brand);
}

.lead {
  color: #eaeaea;
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 18px;
  margin: 24px 0 0;
}

.hero-proof span {
  color: #f5f5f5;
  font-size: .88rem;
}

.hero-actions .button {
  min-width: 180px;
}

.button,
button,
input[type="submit"] {
  border-radius: 8px;
  background: linear-gradient(135deg, #e58997, #a71930);
  box-shadow: 0 10px 22px rgba(167, 25, 48, .2);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(167, 25, 48, .26);
}

.button.ghost {
  background: rgba(14, 14, 14, .34);
  border-color: rgba(167, 25, 48, .62);
}

.button.muted {
  background: #f7f7f7;
  color: #2e2e2e;
  border-color: #e6e6e6;
  box-shadow: none;
}

.button.secondary {
  background: #fff;
  box-shadow: none;
}

.button.danger {
  background: linear-gradient(135deg, #d1433b, #a81f19);
}

.hero-visual {
  min-height: 430px;
  align-self: stretch;
  display: grid;
  align-items: center;
}

.hero-visual img {
  width: min(100%, 820px);
  height: auto;
  max-height: 540px;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 0;
  filter: saturate(1.08) contrast(1.04);
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 100%);
}

.trust-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(12px, 2vw, 24px);
  transform: none;
  border: 1px solid rgba(229, 137, 151, .34);
  border-radius: 10px;
  background: rgba(19, 19, 19, .82);
  color: #fff;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.trust-strip div {
  padding: 22px 24px;
  display: grid;
  gap: 6px;
  border-right: 1px solid rgba(229, 137, 151, .24);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong {
  font-size: .95rem;
}

.trust-strip span {
  color: #d8d8d8;
  font-size: .82rem;
}

.section {
  padding: 54px 0;
  scroll-margin-top: 96px;
}

.dark-section {
  color: #fff;
  background:
    radial-gradient(circle at 80% 0%, rgba(167, 25, 48, .24), transparent 32%),
    linear-gradient(180deg, #121212, #171717);
}

.dark-section .eyebrow,
.dark-section .small,
.dark-section p {
  color: #cacaca;
}

.dark-section h2 {
  color: #fff;
}

.soft-section {
  background: linear-gradient(180deg, #fff, #f7f7f7);
}

.section-head h2,
.section-head h1 {
  margin-bottom: 0;
}

.text-link {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.section-note {
  max-width: 680px;
  margin: 10px 0 0;
  color: #737373;
  font-weight: 600;
}

.availability-chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  padding: 10px 14px;
  border: 1px solid #bfe6d1;
  border-radius: 999px;
  background: #eaf8f1;
  color: var(--green);
  font-size: .9rem;
  font-weight: 900;
}

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

.category-card {
  min-height: 198px;
  display: grid;
  align-content: end;
  gap: 5px;
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(229, 137, 151, .34);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(155deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)), #1c1c1c;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}

.category-card:hover,
.product-card:hover {
  transform: translateY(-4px);
}

.category-card:hover {
  border-color: var(--brand);
}

.category-card small {
  color: #d5d5d5;
}

.category-image {
  position: absolute;
  inset: 16px 16px auto;
  height: 106px;
  display: grid;
  place-items: center;
  opacity: .95;
}

.category-image span {
  color: transparent;
}

.category-image.has-photo {
  inset: 14px 14px auto;
  height: 112px;
  overflow: hidden;
  border: 1px solid rgba(241, 197, 204, .22);
  border-radius: 8px;
  background: #191919;
}

.category-image.has-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .22s ease, filter .22s ease;
}

.category-card:hover .category-image.has-photo img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}

.category-image.has-fallback {
  inset: 14px 14px auto;
  height: 112px;
  overflow: hidden;
  border: 1px solid rgba(241, 197, 204, .18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(167, 25, 48, .18), transparent 50%),
    linear-gradient(145deg, #1f1f1f, #272727);
}

.category-image.has-fallback span {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  color: #f5f5f5;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.2;
  padding: 0 18px;
  text-align: center;
  text-transform: uppercase;
}

.card,
.product-card,
.admin-panel,
.notice,
.review-card,
.feature-card,
.bundle-panel,
.passport-card {
  border-color: rgba(28, 28, 28, .08);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(29, 29, 29, .06);
}

.product-card {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(8px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover {
  box-shadow: 0 22px 54px rgba(25, 25, 25, .15);
  border-color: rgba(167, 25, 48, .35);
}

.product-media {
  min-height: 220px;
  background: linear-gradient(145deg, #131313, #272727);
  color: #fff;
  overflow: hidden;
}

.generated-visual::before,
.category-image::before {
  content: "";
  position: absolute;
  inset: 22% 16%;
  border-radius: 8px;
  background: linear-gradient(145deg, #383838, #1a1a1a);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .28);
}

.generated-visual.visual-laptop::before,
.category-image.visual-laptop::before,
.gallery-thumbs .visual-laptop::before {
  inset: 30% 12% 30%;
  border-radius: 8px 8px 3px 3px;
}

.generated-visual.visual-laptop::after,
.category-image.visual-laptop::after,
.gallery-thumbs .visual-laptop::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 22%;
  height: 12%;
  border-radius: 2px 2px 8px 8px;
  background: #2b2b2b;
}

.generated-visual.visual-network::before,
.category-image.visual-network::before,
.gallery-thumbs .visual-network::before {
  inset: 46% 10% 25%;
}

.generated-visual.visual-network::after,
.category-image.visual-network::after,
.gallery-thumbs .visual-network::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 52%;
  height: 12px;
  background: repeating-linear-gradient(90deg, #f1c5cc 0 12px, transparent 12px 22px);
}

.generated-visual.visual-memory::before,
.category-image.visual-memory::before,
.gallery-thumbs .visual-memory::before {
  inset: 42% 14% 34%;
  transform: rotate(-10deg);
  background: linear-gradient(145deg, #2f6b45, #142319);
}

.generated-visual.visual-power::before,
.category-image.visual-power::before,
.gallery-thumbs .visual-power::before {
  inset: 18% 31% 18%;
  border-radius: 7px;
}

.generated-visual.visual-tiny::after,
.category-image.visual-tiny::after,
.gallery-thumbs .visual-tiny::after {
  content: "";
  position: absolute;
  left: 21%;
  top: 39%;
  width: 10px;
  height: 42px;
  border-radius: 999px;
  background: #f1c5cc;
  box-shadow: 22px 6px 0 rgba(241, 197, 204, .45);
}

.media-label {
  position: relative;
  z-index: 2;
  width: auto;
  height: auto;
  max-width: 78%;
  padding: 10px 14px;
  border: 1px solid rgba(229, 137, 151, .5);
  border-radius: 8px;
  background: rgba(14, 14, 14, .68);
  color: #fff;
  text-align: center;
}

.media-glow {
  position: absolute;
  inset: auto 0 0;
  width: auto;
  height: 55%;
  display: none;
  border: 0;
  border-radius: 0;
  background: radial-gradient(circle at 60% 60%, rgba(167, 25, 48, .38), transparent 52%);
}

.product-media.generated-visual .media-glow {
  display: block;
}

.product-media.photo-visual {
  background: #f1f1f1;
}

.product-media.photo-visual::before,
.product-media.photo-visual::after,
.category-card .category-image::before,
.category-card .category-image::after {
  display: none !important;
  content: none !important;
}

.product-media.photo-visual img {
  position: absolute;
  inset: 0;
  z-index: 1;
  object-fit: cover;
  object-position: center;
}

.product-media.photo-visual .media-glow {
  display: none !important;
}

.detail-media.photo-visual {
  background: #fafafa;
}

.detail-media.photo-visual img {
  object-fit: contain;
  background: #fff;
}

.product-body {
  gap: 13px;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  background: #eaf8f1;
  font-size: .72rem;
}

.badge.blue {
  background: #f5f5f5;
  color: #a71930;
}

.price {
  color: #131313;
  font-size: 1.42rem;
}

.product-actions .button,
.product-actions button {
  flex: 1 1 120px;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 30px;
  align-items: center;
}

.bundle-builder-section {
  background: linear-gradient(180deg, #fbfbfb, #f5f5f5);
}

.bundle-builder-layout {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: start;
}

.bundle-copy {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
}

.bundle-steps,
.bundle-checks {
  display: grid;
  gap: 10px;
}

.bundle-steps span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  background: #fff;
  color: #393939;
  font-weight: 800;
}

.bundle-steps strong {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f5f5f5;
  color: var(--brand-dark);
}

.bundle-builder-form {
  box-shadow: var(--shadow);
}

.bundle-checks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  background: #fcfcfc;
}

.bundle-panel,
.passport-card,
.review-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  background: #fff;
}

.bundle-panel {
  background:
    linear-gradient(145deg, rgba(167, 25, 48, .16), rgba(255, 255, 255, .04)),
    #131313;
  color: #fff;
}

.bundle-panel span,
.passport-card span {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

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

.feature-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(229, 137, 151, .22);
}

.feature-card span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(167, 25, 48, .18);
  color: #f1c5cc;
  font-weight: 900;
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
  gap: 34px;
  align-items: start;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px 14px;
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  align-items: start;
}

.process-list li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f7f7f7;
  color: var(--brand-2);
  font-weight: 900;
}

.process-list strong {
  grid-column: 2;
  align-self: end;
  font-size: 1.02rem;
}

.process-list span {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.5;
  max-width: 34rem;
}

.passport-band {
  background:
    linear-gradient(135deg, rgba(19, 19, 19, .96), rgba(41, 41, 41, .9)),
    radial-gradient(circle at 82% 18%, rgba(167, 25, 48, .35), transparent 32%);
  color: #fff;
}

.passport-band p,
.passport-band .eyebrow {
  color: #dbdbdb;
}

.passport-card {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
}

.newsletter-section {
  padding-bottom: 80px;
}

.footer-grid {
  grid-template-columns: minmax(280px, 1fr) auto auto;
}

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

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

.footer-links a {
  color: #e8e8e8;
  text-decoration: none;
  font-weight: 700;
}

.site-footer {
  background:
    radial-gradient(circle at 85% 0%, rgba(167, 25, 48, .22), transparent 28%),
    #131313;
}

.product-detail-section {
  background: linear-gradient(180deg, #fbfbfb, #f5f5f5);
}

.product-detail-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
}

.product-gallery {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.detail-media {
  height: min(56vw, 560px);
  min-height: 430px;
  box-shadow: var(--shadow);
}

.detail-media img {
  transition: transform .22s ease;
}

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

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

.gallery-thumbs button {
  position: relative;
  min-height: 86px;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #1c1c1c;
  border: 2px solid transparent;
  cursor: pointer;
}

.gallery-thumbs button.active,
.gallery-thumbs button:hover {
  border-color: var(--brand);
}

.gallery-thumbs span {
  position: relative;
  min-height: 86px;
  overflow: hidden;
  border-radius: 8px;
  background: #1c1c1c;
  border: 1px solid rgba(167, 25, 48, .22);
}

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

.product-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-assurance span,
.buy-meta span {
  padding: 9px 11px;
  border: 1px solid #e7e7e7;
  border-radius: 999px;
  background: #fff;
  color: #7b1425;
  font-size: .82rem;
  font-weight: 800;
}

.purchase-panel {
  position: sticky;
  top: 98px;
  align-self: start;
}

.buy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.option-choice span {
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.option-choice input:checked + span {
  background: #fbfbfb;
}

.option-choice:hover span {
  transform: translateY(-1px);
}

.config-total {
  grid-template-columns: 1fr auto;
  background: #131313;
  color: #fff;
  border-color: rgba(167, 25, 48, .42);
}

.config-total span {
  color: #cacaca;
}

.passport-layout {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  gap: 26px;
  align-items: start;
}

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

.passport-grid div {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
}

.passport-grid span {
  color: #cacaca;
  font-size: .78rem;
  font-weight: 700;
}

.filters {
  border: 1px solid #e8e8e8;
  box-shadow: 0 16px 44px rgba(19, 19, 19, .08);
}

input,
select,
textarea {
  border-color: #dadada;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(167, 25, 48, .18);
  border-color: var(--brand);
}

.admin-layout {
  grid-template-columns: 230px minmax(0, 1fr);
}

.admin-menu,
.admin-panel {
  border-color: #e8e8e8;
}

.admin-menu a.active,
.admin-menu a:hover {
  background: #f5f5f5;
}

table {
  border-spacing: 0;
}

th {
  background: #f9f9f9;
}

td,
th {
  padding: 12px 10px;
}

@media (max-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-strip,
  .feature-grid,
  .passport-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .wrap {
    width: min(100% - 28px, 1240px);
  }

  .nav {
    position: relative;
    min-height: 56px;
    padding: 6px 0;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 1rem;
  }

  .brand-copy strong {
    font-size: .94rem;
  }

  .brand-copy small {
    display: none;
  }

  .menu-toggle {
    display: grid;
    margin-left: auto;
    width: 38px;
    height: 38px;
  }

  .nav-links,
  .nav-tools {
    display: none;
  }

  .site-header.menu-open .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(241, 197, 204, .2);
    border-radius: 12px;
    background: rgba(19, 19, 19, .98);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
  }

  .site-header.menu-open .nav-links a {
    padding: 12px 14px;
    border-radius: 8px;
  }

  .site-header.menu-open .mobile-cart-link {
    display: block;
  }

  .site-header.menu-open .nav-tools {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    padding-bottom: 22px;
  }

  .hero-visual {
    min-height: 320px;
    align-items: end;
  }

  .hero-visual img {
    width: 100%;
    max-height: 380px;
    mask-image: linear-gradient(180deg, black 0 88%, transparent 100%);
  }
}

@media (max-width: 820px) {
  .wrap {
    width: min(100% - 24px, 1240px);
  }

  .section {
    padding: 34px 0;
  }

  .section-head,
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }

  .brand-copy small {
    display: none;
  }

  .site-header:not(.menu-open) .nav-tools {
    display: none;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-grid,
  .split-feature,
  .process-grid,
  .passport-layout,
  .product-detail-layout,
  .grid.two,
  .grid.three,
  .detail-layout,
  .admin-layout,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 12px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
  }

  .section-note {
    margin-top: 6px;
    font-size: .88rem;
  }

  .filters {
    padding: 10px;
    margin-bottom: 14px;
  }

  .filters input,
  .filters select {
    min-height: 38px;
    padding: 8px 10px;
  }

  .filters label {
    gap: 4px;
    font-size: .82rem;
  }

  .filters .filter-primary {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .filters .filter-primary label:first-child {
    grid-column: 1 / -1;
  }

  .availability-chip {
    min-height: 38px;
    padding: 8px 10px;
    font-size: .78rem;
  }

  .filter-advanced {
    display: block;
    margin-top: 8px;
  }

  .filter-advanced summary {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #f7f7f7;
  }

  .filter-advanced[open] summary {
    margin-bottom: 10px;
  }

  .filter-advanced .form-row {
    gap: 8px;
    margin-bottom: 8px;
  }

  .filters .button {
    width: 100%;
    min-height: 40px;
  }

  .cart-layout,
  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-panel,
  .cart-summary {
    padding: 14px;
  }

  .cart-item {
    gap: 8px;
    align-items: stretch;
  }

  .cart-price {
    justify-items: start;
  }

  .cart-actions {
    justify-content: stretch;
  }

  .cart-actions .button,
  .cart-item .button {
    width: 100%;
  }

  .cart-summary {
    position: static;
  }

  .cart-drawer {
    width: 100vw;
  }

  .cart-drawer-head,
  .cart-drawer-items,
  .cart-drawer-summary,
  .cart-drawer-empty {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bundle-builder-layout {
    grid-template-columns: 1fr;
  }

  .bundle-copy {
    position: static;
  }

  .bundle-checks {
    grid-template-columns: 1fr;
  }

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

  .analytics-bar-row {
    grid-template-columns: 64px minmax(90px, 1fr) 44px;
  }

  .analytics-bar-row small {
    grid-column: 2 / -1;
  }

  .grid.products {
    gap: 14px;
  }

  .product-card .product-media {
    min-height: 168px;
  }

  .product-body {
    padding: 14px;
    gap: 9px;
  }

  .product-body .specs {
    font-size: .86rem;
    gap: 5px;
  }

  .hero-visual {
    min-height: 280px;
  }

  .hero-visual img {
    max-height: 330px;
    mask-image: linear-gradient(180deg, black 0 80%, transparent 100%);
  }

  .trust-strip,
  .feature-grid,
  .passport-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    transform: none;
    margin-top: 18px;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(229, 137, 151, .24);
  }

  .category-card {
    min-height: 170px;
  }

  .detail-media {
    min-height: 280px;
    height: 320px;
  }

  .purchase-panel {
    position: static;
  }
}

/* ============================================================
   Conversion release: tier funnel, upsells, landing, policies,
   confirmation, bulk quote, admin flags
   ============================================================ */

.badge.amber { background: #fff3e2; color: var(--amber); }

/* --- Hero price line --- */
.hero-price-lead {
  margin: 6px 0 14px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ededed;
}
.hero-price-lead strong { color: #fff; font-size: 1.6rem; font-weight: 900; }

/* --- Section heading helper --- */
.section-head.centered { justify-content: center; text-align: center; }
.section-head.centered > div { max-width: 720px; }
.section-sub { color: var(--muted); margin-top: 8px; }

/* --- GOOD / BETTER / BEST tier funnel --- */
.tier-section { background: var(--wash); }
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: start;
}
.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 22px;
  box-shadow: var(--shadow);
}
.tier-card.tier-highlight {
  border: 2px solid var(--brand);
  box-shadow: 0 22px 60px rgba(167, 25, 48, .18);
}
.tier-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.tier-label {
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  color: var(--brand-dark);
  margin: 0;
}
.tier-card h3 { margin: 0; font-size: 1.22rem; line-height: 1.3; }
.tier-price { margin: 0; color: var(--muted); font-size: .95rem; }
.tier-price strong { color: var(--ink); font-size: 1.9rem; font-weight: 900; display: block; }
.tier-specs { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 6px; }
.tier-specs li { font-size: .92rem; color: #474747; padding-left: 20px; position: relative; }
.tier-specs li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.tier-blurb { margin: 0; font-size: .9rem; color: var(--muted); font-style: italic; }
.tier-upgrades {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px;
}
.tier-upgrades span { font-size: .74rem; font-weight: 800; letter-spacing: .06em; color: var(--muted); width: 100%; }
.tier-upgrades em {
  font-style: normal; font-size: .78rem; font-weight: 700;
  background: #f5f5f5; color: #a71930; padding: 4px 9px; border-radius: 999px;
}
.tier-cta { margin-top: auto; width: 100%; justify-content: center; text-align: center; }

/* --- Configurator upsells --- */
.upsell-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--wash);
}
.upsell-head { margin: 0 0 12px; font-weight: 800; font-size: .95rem; }
.upsell-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.upsell-card {
  position: relative;
  color: var(--ink);
  display: flex; flex-direction: column; gap: 5px;
  text-align: left; cursor: pointer;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 16px 14px 14px;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.upsell-card:hover { border-color: var(--brand); box-shadow: 0 10px 26px rgba(167, 25, 48,.14); }
.upsell-card.is-selected { border-color: var(--brand); background: #fafafa; }
.upsell-badge {
  align-self: flex-start;
  background: var(--brand); color: #fff;
  font-size: .66rem; font-weight: 800; letter-spacing: .08em;
  padding: 3px 9px; border-radius: 999px;
}
.upsell-card strong { font-size: 1rem; }
.upsell-price { font-weight: 900; color: var(--brand-dark); font-size: 1.05rem; }
.upsell-card small { color: var(--muted); line-height: 1.4; }
.upsell-foot { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }

/* --- OS support disclosure --- */
.os-note { border-radius: 10px; padding: 14px 16px; margin: 14px 0; border-left: 4px solid var(--line); }
.os-note strong { display: block; margin-bottom: 4px; font-size: .95rem; }
.os-note p { margin: 0; font-size: .87rem; line-height: 1.5; color: #474747; }
.os-note.os-ok { background: #f8f8f8; border-left-color: var(--brand); }
.os-note.os-caution { background: #fff8ec; border-left-color: var(--amber); }
.notice.warn, .spec-warning { background: #fff8ec; border-left: 4px solid var(--amber); color: #6b4300; }

/* --- Ad landing page --- */
.landing-hero {
  background: linear-gradient(135deg, #141414 0%, #7b1425 100%);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
}
.landing-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 8px 0 12px; line-height: 1.12; }
.landing-hero h1 span { color: #f1c5cc; }
.landing-hero .lead { color: #e3e3e3; max-width: 640px; margin: 0 auto 22px; font-size: 1.08rem; }
.landing-hero .eyebrow { color: #f1c5cc; }
.landing-points {
  list-style: none; padding: 0;
  margin: 0 auto 26px;
  max-width: 720px;
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center;
}
.landing-points li { color: #ededed; font-weight: 600; font-size: .95rem; }
.landing-cta { font-size: 1.05rem; padding: 15px 34px; }
.landing-footer-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* --- Bulk / business hero --- */
.bulk-hero { background: var(--wash); padding: 60px 0 46px; border-bottom: 1px solid var(--line); }
.bulk-hero h1 { font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.16; margin: 8px 0 14px; max-width: 900px; }
.bulk-hero .lead { max-width: 760px; color: #4f4f4f; }
.bulk-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 26px 0 14px; }
.bulk-compare-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 6px; }
.bulk-compare-card strong { font-size: 1.05rem; }
.bulk-new { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.bulk-ours { color: var(--green); font-weight: 800; font-size: 1.05rem; }
.bulk-note { color: var(--muted); max-width: 760px; }
.bulk-value { margin-top: 0; }

/* --- Bulk quote form --- */
.qty-presets, .bundle-checks-group, .admin-merch {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 4px 0;
}
.qty-presets legend, .bundle-checks-group legend, .admin-merch legend {
  font-weight: 800; font-size: .9rem; padding: 0 6px;
}
.qty-preset-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.qty-preset { position: relative; }
.qty-preset input { position: absolute; opacity: 0; width: 0; height: 0; }
.qty-preset span {
  display: inline-block; padding: 10px 20px; border: 2px solid var(--line);
  border-radius: 999px; font-weight: 700; cursor: pointer; font-size: .95rem;
}
.qty-preset input:checked + span { border-color: var(--brand); background: #f5f5f5; color: var(--brand-dark); }
.qty-preset input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.qty-custom { display: block; }

/* --- Order confirmation --- */
.confirm-section { background: var(--wash); min-height: 60vh; }
.confirm-panel { max-width: 760px; margin: 0 auto; }
.confirm-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: #e6f7ef; color: var(--green); font-size: 1.9rem; font-weight: 900; margin-bottom: 10px;
}
.confirm-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 22px 0; padding: 18px; background: var(--wash); border-radius: 10px; }
.confirm-meta span { display: block; font-size: .78rem; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.confirm-meta strong { font-size: 1.05rem; word-break: break-word; }
.confirm-items { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.confirm-items li { display: grid; gap: 3px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.confirm-items span { font-size: .88rem; color: var(--muted); }
.confirm-items em { font-style: normal; font-weight: 800; }
.confirm-next ol { padding-left: 20px; display: grid; gap: 10px; }
.confirm-next li { line-height: 1.5; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }

/* --- Policies --- */
.policy-wrap { max-width: 820px; }
.policy-block { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.policy-block h2 { font-size: 1.25rem; margin: 0 0 10px; }
.policy-block p, .policy-block li { line-height: 1.62; color: #474747; }
.policy-block ul { padding-left: 20px; display: grid; gap: 8px; margin: 10px 0 0; }

.product-faq-section {
  background: #fbfbfb;
}

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

.product-faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(39, 39, 39, .06);
  overflow: hidden;
}

.product-faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 16px 18px;
  color: var(--ink);
  font-weight: 900;
}

.product-faq-item summary::-webkit-details-marker {
  display: none;
}

.product-faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f7f7f7;
  color: var(--brand);
  font-weight: 900;
}

.product-faq-item[open] summary::after {
  content: "-";
}

.product-faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: #585858;
  line-height: 1.62;
}

@media (max-width: 760px) {
  .product-faq-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Footer --- */
.footer-note { color: var(--muted); font-size: .78rem; display: inline-block; margin-top: 6px; }

/* --- Admin spec verification --- */
.spec-alert-panel { border: 2px solid var(--amber); background: #fffaf2; }
.spec-alert-panel h2 { color: #8a4b00; }
.spec-alert-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 14px; margin-top: 10px; background: #fff; border: 1px solid #f0d9b5; border-radius: 8px;
}
.spec-alert-row .small { display: block; color: var(--muted); }
.flag-pill, .adv-pill {
  display: inline-block; margin-top: 4px; padding: 3px 8px; border-radius: 999px;
  font-size: .66rem; font-weight: 800; letter-spacing: .05em;
}
.flag-pill { background: #fff3e2; color: #8a4b00; }
.adv-pill { background: #f5f5f5; color: #a71930; }
tr.row-flagged { background: #fffaf2; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0; }

/* ============================================================
   Mobile: 430px / 390px / 375px
   ============================================================ */
@media (max-width: 900px) {
  .bulk-compare { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

@media (max-width: 640px) {
  .tier-grid { grid-template-columns: 1fr; gap: 26px; }
  .tier-card { padding: 24px 18px; }
  .tier-card.tier-highlight { order: -1; }
  .upsell-grid { grid-template-columns: 1fr; }
  .landing-hero { padding: 52px 0 44px; }
  .landing-points { flex-direction: column; align-items: flex-start; text-align: left; gap: 8px; }
  .landing-footer-cta { flex-direction: column; }
  .landing-footer-cta .button { width: 100%; justify-content: center; text-align: center; }
  .confirm-actions { flex-direction: column; }
  .confirm-actions .button { width: 100%; justify-content: center; text-align: center; }
  .confirm-meta { grid-template-columns: 1fr; gap: 12px; }
  .bulk-compare { grid-template-columns: 1fr; }
  .qty-preset span { padding: 12px 18px; }
  .spec-alert-row { flex-direction: column; align-items: stretch; }
  .landing-cta { width: 100%; justify-content: center; text-align: center; }
}

/* Nothing may cause a horizontal scrollbar on small screens. */
@media (max-width: 480px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .tier-flag { font-size: .66rem; padding: 5px 11px; }
  .hero-price-lead { font-size: 1.18rem; }
  .hero-price-lead strong { font-size: 1.42rem; }
  .confirm-meta strong { font-size: .95rem; }
  .tier-price strong { font-size: 1.7rem; }
  /* Keep every tap target comfortably above the 44px minimum. */
  .button, button[type="submit"] { min-height: 46px; }
}

/* Fix: visually-hidden option radios were absolutely positioned with no containing
   block, stretching past the viewport and causing horizontal scroll on phones. */
.option-choice { position: relative; display: block; }
.option-choice input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ================================================================== */
/* Email Center                                                        */
/* ================================================================== */

.admin-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.admin-nav-badge[hidden] {
  display: none;
}

.mail-center {
  display: grid;
  gap: 16px;
}

/* ---- sub navigation ---- */

.mail-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mail-subnav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.mail-subnav a:hover {
  background: var(--wash);
  color: var(--ink);
}

.mail-subnav a.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.mail-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
}

.mail-subnav a.active .mail-count {
  background: rgba(255, 255, 255, .25);
}

/* ---- status bar ---- */

.mail-statusbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mail-statusbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mail-statusbar-left .small {
  word-break: break-word;
}

.mail-refresh-form {
  margin: 0;
}

/* ---- search ---- */

.mail-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
}

.mail-search input[type="search"] {
  flex: 1 1 260px;
  min-width: 0;
}

.mail-search input[type="date"],
.mail-search select {
  flex: 0 1 auto;
  width: auto;
}

/* ---- message list ---- */

.mail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.mail-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.mail-row:last-child {
  border-bottom: 0;
}

.mail-row:hover {
  background: var(--wash);
}

.mail-row.is-unread {
  background: #f9f9f9;
  box-shadow: inset 3px 0 0 var(--brand);
}

.mail-row.is-unread:hover {
  background: #f4f4f4;
}

.mail-row-link {
  display: flex;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}

.mail-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.mail-avatar.large {
  width: 52px;
  height: 52px;
  font-size: 1.25rem;
}

.mail-row-main {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

.mail-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.mail-sender {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-row.is-unread .mail-sender {
  color: var(--brand-dark);
}

.mail-row-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.mail-date {
  color: var(--muted);
  font-size: .82rem;
}

.mail-chip {
  font-size: .74rem;
  color: var(--muted);
}

.mail-chip.star {
  color: #d99400;
  font-size: .95rem;
}

.mail-chip.replied {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 122, 79, .12);
  color: var(--green);
  font-weight: 600;
}

.mail-address,
.mail-preview {
  color: var(--muted);
  font-size: .84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-subject {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-row.is-unread .mail-subject {
  font-weight: 700;
}

.mail-row-action {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 14px 0 0;
}

/* ---- reader ---- */

.mail-reader-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.mail-reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mail-reader-actions form {
  margin: 0;
}

.mail-reader-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.mail-reader-ident {
  min-width: 0;
  flex: 1 1 auto;
}

.mail-reader-ident h2 {
  margin: 0 0 6px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.mail-reader-from {
  margin: 0 0 6px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.mail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.mail-image-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mail-body-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.mail-body-frame {
  display: block;
  width: 100%;
  height: min(70vh, 720px);
  border: 0;
  background: #fff;
}

.mail-plain {
  margin: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  max-height: 70vh;
  overflow: auto;
}

.mail-plain-toggle {
  margin-top: 12px;
}

.mail-plain-toggle summary {
  cursor: pointer;
  color: var(--muted);
  font-size: .88rem;
}

.mail-attachments {
  margin-top: 20px;
  padding: 16px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mail-attachments h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.mail-attachments ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.mail-attachments li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  word-break: break-word;
}

.mail-reply {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.mail-reply h3 {
  margin: 0 0 12px;
}

/* ---- responsive ---- */

@media (max-width: 900px) {
  .mail-body-frame {
    height: min(60vh, 520px);
  }
}

@media (max-width: 720px) {
  .mail-subnav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .mail-row {
    flex-direction: column;
  }

  .mail-row-link {
    padding: 12px 14px;
    gap: 12px;
  }

  .mail-row-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .mail-row-meta {
    gap: 6px;
  }

  .mail-row-action {
    padding: 0 14px 12px 68px;
  }

  .mail-avatar {
    width: 34px;
    height: 34px;
    font-size: .9rem;
  }

  .mail-reader-head {
    gap: 12px;
  }

  .mail-avatar.large {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }

  .mail-search input[type="date"],
  .mail-search select,
  .mail-search input[type="search"] {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* ================================================================== */
/* Private products                                                    */
/* ================================================================== */

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

.private-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(160, 90, 0, .12);
  color: var(--amber);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.private-banner {
  display: block;
  border-left: 4px solid var(--amber);
}

.private-banner-section {
  padding-bottom: 0;
}

.private-link-input {
  width: min(340px, 100%);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--wash);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .private-link-input {
    width: 100%;
    margin-bottom: 6px;
  }
}

/* ================================================================== */
/* SEO collections, breadcrumbs and spec tables                        */
/* ================================================================== */

.breadcrumbs {
  margin: 0 0 18px;
  font-size: .85rem;
  color: var(--muted);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.collection-head {
  max-width: 760px;
  margin: 0 0 28px;
}

.collection-head h1 {
  margin: 0 0 10px;
}

.collection-lede {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 8px;
}

.collection-copy {
  max-width: 820px;
}

.collection-copy h2 {
  margin: 32px 0 12px;
  font-size: 1.35rem;
}

.collection-copy h2:first-child {
  margin-top: 0;
}

.collection-copy p,
.collection-copy li {
  color: var(--ink);
  line-height: 1.7;
}

.collection-copy ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

.collection-copy li {
  margin-bottom: 8px;
}

.collection-copy a {
  color: var(--brand);
}

.collection-links {
  margin-top: 36px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.collection-links h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.collection-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.collection-links li {
  margin-bottom: 10px;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 18px;
  -webkit-overflow-scrolling: touch;
}

.spec-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: .9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.spec-table thead th {
  background: var(--wash);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}

.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td {
  border-bottom: 0;
}

.spec-table a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.spec-table a:hover {
  text-decoration: underline;
}

/* ================================================================== */
/* Security / IP controls                                             */
/* ================================================================== */

.ip-cell {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ip-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.ip-value:hover { text-decoration: underline; }

.inline-form { display: inline; margin: 0; }

.sec-action {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--wash);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.sec-order-panel { border-left: 4px solid var(--brand); }

.sec-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sec-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.sec-pager a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
  font-size: .85rem;
}

.sec-pager a.active,
.sec-pager a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---- timeline ---- */

.sec-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--line);
}

.sec-timeline-item {
  position: relative;
  padding: 0 0 20px 14px;
  display: grid;
  gap: 2px;
}

.sec-timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  border: 2px solid var(--panel);
}

.sec-timeline-item.kind-order::before   { background: var(--brand); }
.sec-timeline-item.kind-payment::before { background: var(--green); }
.sec-timeline-item.kind-block::before   { background: var(--danger); }
.sec-timeline-item.kind-unblock::before { background: var(--amber); }

.sec-timeline-when {
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.sec-timeline-title { font-weight: 600; }
.sec-timeline-detail { font-size: .88rem; color: var(--muted); }

/* ---- modal ---- */

.sec-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sec-modal[hidden] { display: none; }

.sec-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, .55);
}

.sec-modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.sec-modal-panel h3 { margin: 0 0 6px; }

.sec-modal-panel h3 span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--danger);
}

.sec-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

/* ---- evidence sheet ---- */

.evidence-table th {
  width: 210px;
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  vertical-align: top;
}

@media print {
  .site-header, .site-footer, .admin-menu, .button, .mail-subnav { display: none !important; }
  .evidence-sheet { border: 0; box-shadow: none; }
}

@media (max-width: 720px) {
  .sec-modal-panel { padding: 18px; }
  .evidence-table th { width: auto; }
}

/* ================================================================== */
/* Collection hero band + attribution bars                            */
/* ================================================================== */

.collection-hero {
  background:
    radial-gradient(1200px 400px at 15% -20%, rgba(167, 25, 48, .35), transparent 60%),
    linear-gradient(180deg, #181818 0%, #161616 100%);
  color: #fff;
  padding: 40px 0 44px;
  border-bottom: 4px solid var(--brand);
}

.collection-hero .breadcrumbs,
.collection-hero .breadcrumbs a {
  color: rgba(255, 255, 255, .62);
}

.collection-hero .breadcrumbs a:hover {
  color: #fff;
}

.collection-hero .breadcrumbs li + li::before {
  color: rgba(255, 255, 255, .3);
}

.collection-hero .breadcrumbs [aria-current="page"] {
  color: #fff;
}

.collection-hero .collection-head {
  margin: 0;
  max-width: 820px;
}

.collection-hero h1 {
  color: #fff;
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}

.collection-hero .collection-lede {
  color: rgba(255, 255, 255, .78);
  font-size: 1.06rem;
  margin: 0 0 16px;
  max-width: 68ch;
}

.collection-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
}

.collection-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .88);
  font-size: .82rem;
  font-weight: 600;
}

.collection-trust span::before {
  content: "\2713";
  color: #f1c5cc;
  font-weight: 700;
}

.attr-bar {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #f1c5cc);
  min-width: 4px;
}

@media (max-width: 720px) {
  .collection-hero {
    padding: 26px 0 30px;
  }
  .collection-trust span {
    font-size: .76rem;
    padding: 4px 10px;
  }
}

/* Secret AIO Lab */
.aio-shell {
  background: #f8f8f8;
  padding: 34px 0 48px;
}

.aio-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding-bottom: 22px;
}

.aio-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: var(--ink);
}

.aio-status {
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow);
}

.aio-status strong,
.aio-status span {
  display: block;
}

.aio-status span {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 4px;
}

.aio-grid {
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.aio-modules {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  position: sticky;
  top: 16px;
}

.aio-search {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 4px;
}

.aio-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.aio-modules button {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  cursor: pointer;
}

.aio-modules button strong,
.aio-modules button span {
  display: block;
}

.aio-modules button[hidden] {
  display: none;
}

.aio-badge {
  float: right;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: .68rem;
  font-style: normal;
  line-height: 1.35;
  color: #fff;
  background: var(--green);
}

.aio-badge.backend {
  background: #b7791f;
}

.aio-modules button span {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
  margin-top: 4px;
}

.aio-modules button.active {
  border-color: var(--brand);
  box-shadow: inset 4px 0 0 var(--brand);
}

.aio-panel {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow);
}

.aio-panel.active {
  display: block;
}

.aio-panel-head {
  margin-bottom: 16px;
}

.aio-panel-head h2 {
  margin: 0 0 6px;
}

.aio-panel-head p {
  color: var(--muted);
  margin: 0;
}

.aio-tool-grid,
.aio-two-col,
.aio-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.aio-panel label {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: .9rem;
}

.aio-check-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fafafa;
}

.aio-check-grid input {
  width: auto;
}

.aio-panel input,
.aio-panel select,
.aio-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  padding: 10px 12px;
}

.aio-panel textarea {
  min-height: 180px;
  resize: vertical;
}

.aio-panel .actions,
.aio-link-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.aio-panel button,
.aio-panel .button {
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.aio-panel .button.muted,
.aio-link-grid a {
  background: #f3f3f3;
  color: var(--brand-dark);
}

.aio-output {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #1c1c1c;
  color: #f2f2f2;
  border-radius: 8px;
  padding: 12px;
  min-height: 48px;
  margin-top: 14px;
}

.aio-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.aio-qr {
  display: inline-grid;
  place-items: center;
  min-width: 184px;
  min-height: 184px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-top: 10px;
  padding: 10px;
}

.aio-qr img {
  display: block;
  width: 164px;
  height: 164px;
}

.aio-canvas {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 14px;
}

.aio-locked {
  border-color: #f3c969;
  background: #fffaf0;
}

.aio-requirements {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--ink);
}

.aio-requirements li + li {
  margin-top: 6px;
}

@media (max-width: 860px) {
  .aio-hero,
  .aio-grid {
    display: block;
  }
  .aio-status {
    margin-top: 16px;
  }
  .aio-modules {
    display: flex;
    overflow-x: auto;
    position: static;
    max-height: none;
    margin-bottom: 14px;
  }
  .aio-modules button {
    min-width: 220px;
  }
  .aio-tool-grid,
  .aio-two-col,
  .aio-check-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================== */
/* Flash sale                                                          */
/* ================================================================== */

@keyframes flash-sweep {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes flash-shine {
  0%   { transform: translateX(-140%) skewX(-18deg); opacity: 0; }
  10%  { opacity: .5; }
  55%  { opacity: .35; }
  100% { transform: translateX(420%) skewX(-18deg); opacity: 0; }
}

@keyframes flash-tag-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); }
  50%      { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

@keyframes flash-cta-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, .75); }
  50%      { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
}

@keyframes flash-timer-tick {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.07); }
}

@keyframes flash-urgent {
  0%, 100% { background: rgba(178, 30, 20, .92); box-shadow: 0 0 0 0 rgba(255, 95, 80, .75); }
  50%      { background: rgba(224, 46, 32, 1);   box-shadow: 0 0 0 9px rgba(255, 95, 80, 0); }
}

@keyframes flash-percent-glow {
  0%, 100% { text-shadow: 0 0 0 rgba(255, 255, 255, 0); }
  50%      { text-shadow: 0 0 14px rgba(255, 255, 255, .85); }
}

.flash-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  font-size: .92rem;
  background: linear-gradient(100deg, #7b1425 0%, #a71930 24%, #e58997 44%, #a71930 66%, #7b1425 100%);
  background-size: 260% 100%;
  animation: flash-sweep 9s ease-in-out infinite;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

/* Moving highlight sweep. */
.flash-banner::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 20%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
  animation: flash-shine 5.5s ease-in-out infinite;
  z-index: 0;
}

.flash-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 11px 0;
}

.flash-banner-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .42);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: flash-tag-pulse 2.4s ease-in-out infinite;
}

.flash-banner-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.flash-banner-copy strong {
  font-weight: 900;
  font-size: 1.06em;
  animation: flash-percent-glow 2.8s ease-in-out infinite;
}

.flash-banner-sub {
  opacity: .88;
  margin-left: 8px;
}

.flash-banner-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .26);
  white-space: nowrap;
  animation: flash-timer-tick 1s ease-in-out infinite;
}

/* Under an hour: switch to red and beat harder. */
.flash-banner-timer.is-urgent {
  animation: flash-urgent 1s ease-in-out infinite, flash-timer-tick 1s ease-in-out infinite;
}

.flash-banner-cta {
  color: #7b1425;
  background: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  animation: flash-cta-pulse 2.4s ease-in-out infinite;
}

.flash-banner-cta:hover {
  background: #f5f5f5;
  animation-play-state: paused;
  transform: scale(1.05);
}

.price-was {
  text-decoration: line-through;
  opacity: .6;
  font-weight: 500;
  margin-right: 8px;
}

.price-save {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(180, 35, 24, .12);
  color: var(--danger);
  font-size: .74rem;
  font-weight: 700;
  vertical-align: middle;
}

.flash-panel {
  border-left: 4px solid var(--brand);
}

@media (max-width: 720px) {
  .flash-banner-inner {
    justify-content: center;
    text-align: center;
    padding: 10px 0;
    gap: 8px;
  }
  .flash-banner-copy {
    flex: 1 1 100%;
  }
  .flash-banner::after {
    width: 40%;
  }
}

/* Respect a reduced-motion preference: keep the styling, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  .flash-banner,
  .flash-banner::after,
  .flash-banner-tag,
  .flash-banner-copy strong,
  .flash-banner-timer,
  .flash-banner-timer.is-urgent,
  .flash-banner-cta {
    animation: none !important;
  }
  .flash-banner {
    background-position: 30% 50%;
  }
  .flash-banner::after {
    display: none;
  }
  .flash-banner-timer.is-urgent {
    background: rgba(178, 30, 20, .92);
  }
}

/* ================================================================== */
/* AIO PDF Lab                                                         */
/* ================================================================== */

.aio-badge-local {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 122, 79, .15);
  color: var(--green);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .06em;
  vertical-align: middle;
}

.pdf-status.is-ok    { border-left: 3px solid var(--green); }
.pdf-status.is-error { border-left: 3px solid var(--danger); color: var(--danger); }

.pdf-organiser-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.pdf-organiser-head h3 { margin: 0; font-size: 1.05rem; }

.pdf-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
}

.pdf-page-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.pdf-thumb {
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  background: var(--wash);
  border-radius: 6px;
  overflow: hidden;
  color: var(--muted);
  font-weight: 800;
  font-size: 1.4rem;
}

.pdf-thumb canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pdf-page-meta { display: grid; gap: 1px; line-height: 1.25; }
.pdf-page-meta strong { font-size: .82rem; }

.pdf-page-actions {
  display: flex;
  gap: 4px;
}

.pdf-page-actions button {
  flex: 1 1 auto;
  padding: 4px 0;
  border: 1px solid var(--line);
  background: var(--wash);
  border-radius: 5px;
  cursor: pointer;
  font-size: .82rem;
  line-height: 1;
  color: var(--ink);
}

.pdf-page-actions button:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.pdf-text-output {
  max-height: 340px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem;
}

@media (max-width: 720px) {
  .pdf-page-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
}

/* ================================================================== */
/* AIO Image Lab                                                       */
/* ================================================================== */

.img-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.img-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  cursor: pointer;
  font-size: .82rem;
  color: var(--ink);
}

.img-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.img-chip.is-active .small { color: rgba(255, 255, 255, .8); }

.img-stage {
  margin: 12px 0 16px;
  padding: 14px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.img-stage canvas {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  background:
    linear-gradient(45deg, #efefef 25%, transparent 25%, transparent 75%, #efefef 75%),
    linear-gradient(45deg, #efefef 25%, transparent 25%, transparent 75%, #efefef 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  cursor: crosshair;
  touch-action: none;
}

.img-hint {
  margin: 10px 0 4px;
  color: var(--muted);
}

/* ================================================================== */
/* AIO shell: categories, favourites, command palette                  */
/* ================================================================== */

.aio-nav { display: grid; gap: 10px; }
.aio-nav-empty { padding: 10px 4px; color: var(--muted); }

.aio-cat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }

.aio-cat-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  background: var(--wash);
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

.aio-cat-head:hover { color: var(--ink); }
.aio-cat-head::after { content: "\25BE"; font-size: .8rem; }
.aio-cat-head.is-collapsed::after { transform: rotate(-90deg); }
.aio-cat-head.is-collapsed { border-bottom-color: transparent; }

.aio-cat-meta {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--line);
  color: var(--muted);
  font-size: .68rem;
}

.aio-cat-body { display: grid; }

.aio-nav-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.aio-nav-row:last-child { border-bottom: 0; }
.aio-nav-row.is-active { background: rgba(167, 25, 48, .08); box-shadow: inset 3px 0 0 var(--brand); }

.aio-star {
  border: 0; background: transparent; cursor: pointer;
  padding: 0 4px 0 10px; font-size: .95rem; line-height: 1;
  color: var(--line);
}
.aio-star:hover { color: var(--amber); }
.aio-star.is-on { color: #e8a300; }

.aio-nav-btn {
  flex: 1 1 auto;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 9px 12px 9px 4px;
  cursor: pointer;
  color: var(--ink);
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.aio-nav-btn:hover { background: var(--wash); }
.aio-nav-btn strong { font-weight: 600; }

.aio-lock-tag {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(160, 90, 0, .12);
  color: var(--amber);
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.aio-palette-trigger {
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.aio-palette-trigger:hover { border-color: var(--brand); color: var(--brand); }

kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--panel);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  line-height: 1.5;
}

/* ---- palette ---- */

.aio-palette { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.aio-palette[hidden] { display: none; }
.aio-palette-backdrop { position: absolute; inset: 0; background: rgba(20, 20, 20, .62); backdrop-filter: blur(2px); }

.aio-palette-box {
  position: relative;
  width: min(620px, 100%);
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(20, 20, 20, .45);
  overflow: hidden;
}

.aio-palette-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  font-size: 1rem;
  outline: none;
  background: var(--panel);
  color: var(--ink);
}

.aio-palette-list { max-height: 52vh; overflow-y: auto; }

.aio-palette-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.aio-palette-item:last-child { border-bottom: 0; }
.aio-palette-item.is-active { background: rgba(167, 25, 48, .1); box-shadow: inset 3px 0 0 var(--brand); }
.aio-palette-item strong { font-size: .92rem; }
.aio-palette-fav { color: #e8a300; }
.aio-palette-desc { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; }
.aio-palette-empty { padding: 22px 18px; color: var(--muted); text-align: center; }

.aio-palette-foot {
  padding: 8px 18px;
  border-top: 1px solid var(--line);
  background: var(--wash);
  color: var(--muted);
  font-size: .74rem;
}

@media (max-width: 720px) {
  .aio-palette { padding: 8vh 10px 10px; }
  .aio-palette-list { max-height: 60vh; }
}

/* ================================================================== */
/* AIO Wake on LAN                                                     */
/* ================================================================== */

.aio-badge-server {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: rgba(167, 25, 48,.14); color: var(--brand);
  font-size: .64rem; font-weight: 800; letter-spacing: .06em; vertical-align: middle;
}

.wol-agent-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 16px;
  background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius);
}

.wol-token-box { display: grid; gap: 8px; }
.wol-token-box input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem;
}

.wol-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 14px;
}

.wol-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  padding: 14px; display: grid; gap: 10px;
}

.wol-card-main { display: grid; gap: 3px; }
.wol-card-main strong { font-size: 1rem; }
.wol-card-main code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem; color: var(--muted);
}

.wol-card-actions { display: flex; gap: 8px; align-items: center; }
.wol-card-actions form { margin: 0; }

.wol-wake-btn {
  padding: 8px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .88rem;
}
.wol-wake-btn:hover { background: var(--brand-dark); }

.wol-script {
  width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem; white-space: pre; overflow-x: auto;
}

@media (max-width: 720px) {
  .wol-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/* Product page: inquiry / special request card                        */
/* ------------------------------------------------------------------ */
/* Deliberately separated from the purchase controls above it so the    */
/* fields never read as checkout requirements.                          */

.inquiry-card {
  margin-top: 34px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.inquiry-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.inquiry-summary::-webkit-details-marker {
  display: none;
}

.inquiry-summary:hover .inquiry-summary-text strong {
  color: var(--brand);
}

.inquiry-summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.inquiry-summary-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.inquiry-summary-text strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.inquiry-summary-text span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.inquiry-toggle {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.inquiry-card[open] .inquiry-toggle {
  transform: rotate(-135deg);
}

.inquiry-form {
  padding: 4px 20px 20px;
  gap: 14px;
}

.inquiry-form label {
  font-size: 13.5px;
  font-weight: 600;
}

.inquiry-form .req {
  color: var(--danger);
  font-weight: 600;
}

.inquiry-form .opt {
  color: var(--muted);
  font-weight: 400;
}

.inquiry-form textarea {
  min-height: 96px;
  resize: vertical;
}

.inquiry-submit {
  width: 100%;
  margin-top: 2px;
}

@media (max-width: 820px) {
  .inquiry-card {
    margin-top: 26px;
  }

  .inquiry-summary {
    padding: 16px;
  }

  .inquiry-form {
    padding: 4px 16px 16px;
  }
}

/* .grid sets display:grid, which keeps the form laid out (and its fields in
   the tab order) inside a closed <details> depending on how the browser
   implements skipped content. Hide it explicitly instead of relying on that. */
.inquiry-card:not([open]) .inquiry-form {
  display: none;
}

/* ------------------------------------------------------------------ */
/* Welcome offer popup                                                 */
/* ------------------------------------------------------------------ */
/* Only ever rendered when an admin has enabled the offer.             */

.wo-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(28, 28, 28, .55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease;
}

.wo-backdrop[hidden] {
  display: none;
}

.wo-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wo-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 30px 28px 24px;
  background: var(--panel);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transform: translateY(10px);
  transition: transform .22s ease;
}

.wo-backdrop.is-visible .wo-card {
  transform: translateY(0);
}

.wo-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.wo-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.wo-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.wo-close:hover {
  color: var(--ink);
  background: var(--wash);
}

.wo-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.wo-input {
  width: 100%;
  padding: 11px 12px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.wo-input:focus {
  outline: 2px solid var(--brand);
  outline-offset: -1px;
  border-color: var(--brand);
}

.wo-input.is-invalid {
  border-color: var(--danger);
}

.wo-error {
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 13px;
}

.wo-submit {
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.wo-submit:hover {
  background: var(--brand-dark);
}

.wo-submit[disabled] {
  opacity: .6;
  cursor: default;
}

.wo-terms,
.wo-consent {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.wo-consent {
  margin-top: 8px;
}

.wo-code {
  margin: 14px 0 0;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  letter-spacing: .04em;
  background: var(--wash);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

@media (max-width: 480px) {
  .wo-card {
    padding: 26px 20px 20px;
  }

  .wo-card h2 {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wo-backdrop,
  .wo-card {
    transition: none;
  }
}

/* ------------------------------------------------------------------ */
/* Homepage "How refurbishment works" steps - responsive               */
/* ------------------------------------------------------------------ */
/* The base rule was repeat(2, minmax(0, 1fr)) and the 820px media
   query only collapsed .process-grid, never .process-list. So the inner
   two-column grid survived down to 320px: ~150px cards with ~90px of text
   column once the 52px badge was subtracted, which wrapped roughly one
   word per line and overflowed.

   Fixed with a single-column rule below 640px rather than auto-fit: .wrap
   grows to 1500px on large screens, which would have given the list ~916px
   and let auto-fit produce three columns - an orphaned fourth card, and a
   change to a desktop layout that was already fine. Desktop and tablet keep
   the original two columns untouched. */

@media (max-width: 640px) {
  .process-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .process-list li {
    /* Height follows the content: the fixed 148px floor made short cards
       tall and did nothing for long ones. */
    min-height: 0;
    padding: 20px;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 6px 14px;
    align-items: start;
  }

  .process-list li::before {
    width: 52px;
    height: 52px;
  }

  .process-list strong {
    /* Title sits directly above the description rather than being pushed
       down to meet a badge that is no longer taller than the text. */
    align-self: start;
    line-height: 1.3;
  }

  .process-list span {
    /* The 34rem cap is a desktop measure; on a phone it just fights the
       container and is never the binding constraint anyway. */
    max-width: none;
  }
}

/* Compute Supply Co. enterprise palette — royal red, charcoal, neutral white. */
:root { --brand:#a71930; --brand-2:#7b1425; --brand-dark:#7b1425; --charcoal:#202020; --ink:#202020; --muted:#626262; --line:#dedede; --wash:#f6f6f6; --shadow:0 12px 36px rgba(0,0,0,.08); }
body, .brand-mark { font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
body::before { background:#f6f6f6; }
.site-header { background:rgba(24,24,24,.97); border-bottom:2px solid var(--brand); }
.brand-mark { background:#a71930; border:0; border-radius:6px; box-shadow:none; }
.hero { background:linear-gradient(110deg,#191919 0%,#262020 65%,#391c22 100%); }
.hero h1 span, .landing-hero h1 span { color:#f095a4; }
.hero .eyebrow, .landing-hero .eyebrow { color:#f1c5cc; }
.button { background:var(--brand); box-shadow:0 4px 12px rgba(0,0,0,.08); border-radius:6px; }
.button:hover { background:var(--brand-dark); }
.button.secondary { background:#fff; color:var(--brand-dark); border:1px solid #dedede; }
.button.secondary:hover { background:#f8eef0; }
.button.ghost { background:transparent; color:inherit; border:1px solid currentColor; }
.nav-links a { border-radius:6px; }
:focus-visible { outline:2px solid #a71930; outline-offset:3px; }
::selection { background:#f1c5cc; color:#202020; }
/* Neutral hardware art and restrained enterprise typography. */
.hero-visual img { filter:grayscale(1); }
.hero h1 { font-weight:750; letter-spacing:-.035em; }
.hero h1 span { color:#e45b6d; }
:root { accent-color:#a71930; }

/* Legible section labels on light surfaces; dark section overrides remain. */
.eyebrow { color:#7b1425; }

/* --- Product page: collapsed Buy now fields + pinned mobile buy bar --- */
.buy-now-fields { display: grid; gap: 18px; }
.buy-now-fields.is-collapsed { display: none; }
.buy-now-fields-title { margin: 4px 0 0; font-weight: 800; }
.buy-now-fields-note { margin: -12px 0 0; font-size: .85rem; color: var(--muted); }
.mobile-buy-bar { display: none; }
@media (max-width: 760px) {
  .mobile-buy-bar:not([hidden]) {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--panel); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, .08);
  }
  .mobile-buy-bar-info { min-width: 0; display: grid; gap: 2px; }
  .mobile-buy-bar-name { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-buy-bar-price { font-weight: 900; font-size: 1.1rem; color: var(--ink); }
  .mobile-buy-bar-price .price-was { font-size: .8rem; margin-right: 6px; }
  .mobile-buy-bar-price .price-save { display: none; }
  .mobile-buy-bar button { flex: 0 0 auto; white-space: nowrap; }
  body.has-buy-bar { padding-bottom: 76px; }
  /* Beats .csc-store .section h1 in storefront.css, which loads after this file. */
  .csc-store .section .purchase-panel h1 { font-size: clamp(26px, 7.5vw, 34px); line-height: 1.12; }
}

/* --- Product page: reassurance under the buy buttons --- */
.buy-assurance { margin: -8px 0 0; font-size: .82rem; color: var(--muted); }
