:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #111111;
  --muted: #111111;
  --line: #ead8da;
  --panel: #ffffff;
  --panel-strong: #d60805;
  --panel-soft: #ffffff;
  --brand: #d60805;
  --inverse: #ffffff;
  --shadow: 0 24px 70px rgba(214, 8, 5, 0.14);
  --radius: 0;
}

body.dark-mode {
  color-scheme: dark;
  --bg: #050505;
  --ink: #ffffff;
  --muted: #ffffff;
  --line: #2c2c2c;
  --panel: #0b0b0b;
  --panel-strong: #d60805;
  --panel-soft: #111111;
  --brand: #d60805;
  --inverse: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

.is-hidden {
  display: none !important;
}

.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;
}

img,
svg {
  display: block;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 14px 4vw;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.brand,
.header-actions,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-logo {
  width: clamp(180px, 22vw, 300px);
  height: 52px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) saturate(100%) invert(15%) sepia(99%) saturate(7452%) hue-rotate(1deg) brightness(92%) contrast(108%);
  transform-origin: left center;
  animation: orchid-logo-float 5.6s ease-in-out infinite;
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

body.dark-mode .brand-logo {
  filter: brightness(0) invert(1);
}

.brand:hover .brand-logo,
.brand:focus-visible .brand-logo {
  transform: translateY(-1px) scale(1.015);
}

@keyframes orchid-logo-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo {
    animation: none;
  }
}

.nav-links {
  gap: 24px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a.is-active {
  border-bottom: 2px solid currentColor;
}

.header-actions {
  gap: 10px;
}

.account-menu-shell {
  position: relative;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 35;
  display: grid;
  min-width: 230px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 54px rgba(17, 17, 17, 0.12);
}

.account-menu button {
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-weight: 900;
}

.account-menu button:last-child {
  border-bottom: 0;
}

.account-menu button:hover,
.account-menu button:focus-visible {
  color: var(--brand);
}

.icon-button,
.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.account-button {
  color: var(--brand);
}

body.dark-mode .account-button,
body.dark-mode .icon-button,
body.dark-mode .cart-button,
body.dark-mode .nav-links {
  color: var(--ink);
}

.icon-button {
  width: 44px;
}

.icon-button svg,
.cart-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.cart-button {
  gap: 9px;
  padding: 0 12px;
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  color: var(--inverse);
  background: var(--panel-strong);
  border-radius: 0;
  font-size: 0.8rem;
}

.landing-video-section {
  position: relative;
  min-height: calc(100vh - 82px);
  min-height: calc(100svh - 82px);
  overflow: hidden;
  isolation: isolate;
  background: #1a0709;
}

.landing-video {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 82px);
  min-height: calc(100svh - 82px);
  object-fit: cover;
  object-position: center;
  filter: contrast(1.08) saturate(0.82);
}

.landing-shop-button {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  min-height: 52px;
  padding: 0 28px;
  color: #ffffff;
  background: rgba(214, 8, 5, 0.9);
  border: 0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.landing-shop-button:hover,
.landing-shop-button:focus-visible {
  background: #d60805;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-content .eyebrow {
  color: #c9c9c3;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  max-width: 730px;
  font-size: 4.6rem;
}

h2 {
  font-size: 2.55rem;
  letter-spacing: 0;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: #ecece8;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-light {
  background: var(--inverse);
  color: #111111;
}

body.dark-mode .button-light {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.48);
  color: #ffffff;
}

.button-dark {
  background: var(--panel-strong);
  color: var(--inverse);
  border-color: var(--panel-strong);
}

.text-button {
  width: fit-content;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 0.82rem;
  font-weight: 900;
}

.hero-metrics {
  position: absolute;
  right: 4vw;
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr));
  gap: 1px;
  width: min(620px, 92vw);
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
}

.hero-metrics div {
  min-height: 104px;
  padding: 18px;
  background: rgba(214, 8, 5, 0.72);
}

.hero-metrics strong,
.metric-row strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.1;
}

.hero-metrics span,
.metric-row span {
  display: block;
  margin-top: 8px;
  color: #d8d8d2;
  font-size: 0.9rem;
}

.section {
  padding: 78px 4vw;
}

main [data-page]:not([data-page="home"]) {
  display: none;
}

body.page-shop main [data-page],
body.page-agents main [data-page],
body.page-payments main [data-page],
body.page-domain main [data-page],
body.page-dashboard main [data-page],
body.page-admin main [data-page],
body.page-blog main [data-page] {
  display: none;
}

body.page-shop main #shop,
body.page-agents main #agents,
body.page-payments main #payments,
body.page-domain main #domain,
body.page-dashboard main #dashboard,
body.page-admin main #admin,
body.page-blog main #blog {
  display: block;
}

main:has(#shop:target) [data-page],
main:has(#agents:target) [data-page],
main:has(#payments:target) [data-page],
main:has(#dashboard:target) [data-page],
main:has(#admin:target) [data-page],
main:has(#blog:target) [data-page] {
  display: none;
}

main:has(#shop:target) #shop,
main:has(#agents:target) #agents,
main:has(#payments:target) #payments,
main:has(#dashboard:target) #dashboard,
main:has(#admin:target) #admin,
main:has(#blog:target) #blog {
  display: block;
}

main:has(#home:target) [data-page]:not([data-page="home"]) {
  display: none;
}

[data-page].page-hidden {
  display: none;
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.compact-login-heading {
  margin-bottom: 18px;
}

.compact-login-heading h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

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

.segmented-control,
.dashboard-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.segmented-control button,
.dashboard-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segmented-control button.is-active,
.dashboard-tabs button.is-active {
  background: var(--panel-strong);
  color: var(--inverse);
}

.search-field {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: min(320px, 100%);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.search-field > span {
  opacity: 0.5;
}

.sort-field {
  display: grid;
  gap: 6px;
  min-width: 190px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.sort-field > span {
  opacity: 0.5;
}

.search-field input,
.sort-field select,
.application-form input,
.application-form select,
.auth-form input,
.domain-tool input,
.mpesa-box input,
.cms-edit-form input,
.cms-edit-form select,
.cms-edit-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--panel);
  border: 0;
  border-bottom: 1px solid var(--line);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: none;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 54px rgba(17, 17, 17, 0.12);
}

.search-suggestions.is-open {
  display: grid;
}

.search-suggestions button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.search-suggestions button:hover {
  color: var(--brand);
}

.search-suggestions small {
  color: var(--muted);
  font-weight: 900;
}

.cms-edit-form textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

.cms-upload-field input {
  padding: 12px 0;
}

.product-grid,
.tier-grid,
.blog-grid,
.payment-grid,
.provider-grid,
.auth-grid,
.admin-lock,
.cms-grid,
.cms-workspace {
  display: grid;
  gap: 18px;
}

.product-grid {
  grid-template-columns: 1fr;
  gap: 42px;
}

.featured-products,
.shop-audience-browser {
  display: grid;
  gap: 16px;
}

.shop-subheading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.shop-subheading strong {
  margin: 0;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.shop-subheading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.shop-audience-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.shop-audience-row {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.shop-audience-header {
  min-height: 38px;
  padding: 0 16px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--panel);
  border: 1px solid var(--line);
}

.shop-audience-header {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.product-row-shell {
  position: relative;
}

.product-row-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 54px) / 4);
  gap: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: thin;
  touch-action: pan-x;
}

.product-row-scroll::-webkit-scrollbar {
  height: 6px;
}

.product-row-scroll::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--brand) 36%, transparent);
}

.product-row-scroll .product-card {
  min-width: 0;
  scroll-snap-align: start;
}

.product-scroll-arrow {
  position: absolute;
  top: 42%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 64px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(17, 17, 17, 0.28);
  font-size: 2.6rem;
  font-weight: 200;
  line-height: 1;
  background: transparent;
  border: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 160ms ease;
}

.product-scroll-left {
  left: 0;
}

.product-scroll-right {
  right: 0;
}

.product-row-shell:hover .product-scroll-arrow,
.product-row-shell:focus-within .product-scroll-arrow {
  opacity: 1;
  pointer-events: auto;
}

.product-card-compact {
  min-height: 0;
}

.product-card-compact .product-body {
  padding-top: 12px;
}

.product-card-compact .product-body h3 {
  font-size: 0.98rem;
}

.product-card-compact .product-body p,
.product-card-compact .product-buy-row strong {
  font-size: 0.86rem;
}

.product-card,
.tier-card,
.blog-grid article,
.payment-card,
.provider-grid article,
.auth-card,
.dashboard-panel,
.agent-application,
.domain-tool,
.cms-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  box-shadow: none;
}

.product-card {
  display: grid;
  min-height: 420px;
  overflow: hidden;
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  min-height: 0;
  background: var(--panel-soft);
  border-bottom: 0;
  overflow: hidden;
}

.product-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.product-preview-trigger {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.product-preview-trigger img {
  pointer-events: none;
}

.product-image-toggle {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.product-image-toggle button {
  width: 34px;
  height: 4px;
  padding: 0;
  background: rgba(255, 255, 255, 0.62);
  border: 0;
}

.product-image-toggle button.is-active {
  background: var(--brand);
}

.product-body {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px 0 0;
}

.product-body h3 {
  min-height: 24px;
  font-size: 1rem;
  text-transform: uppercase;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cart-line span + span {
  margin-top: 3px;
}

.product-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.product-buy-row strong {
  font-size: 1.2rem;
}

.product-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 10, 10, 0.76);
}

.product-preview-dialog {
  position: relative;
  width: min(92vw, 760px);
  max-height: 92vh;
  overflow: hidden;
  background: #111;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.product-preview-strip {
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  touch-action: pan-y;
}

.product-preview-track {
  display: flex;
  transition: transform 220ms ease;
}

.product-preview-track img {
  flex: 0 0 100%;
  width: 100%;
  max-height: 92vh;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #111;
}

.product-preview-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  background: rgba(255, 255, 255, 0.9);
  border: 0;
}

.product-preview-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 68px;
  padding: 0;
  color: #fff;
  font-size: 3.8rem;
  line-height: 1;
  background: transparent;
  border: 0;
  opacity: 0;
  transform: translateY(-50%);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  transition: opacity 160ms ease;
}

.product-preview-dialog:hover .product-preview-arrow,
.product-preview-dialog:focus-within .product-preview-arrow {
  opacity: 1;
}

.product-preview-prev {
  left: 8px;
}

.product-preview-next {
  right: 8px;
}

.product-preview-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.product-preview-dots button {
  width: 34px;
  height: 4px;
  padding: 0;
  background: rgba(255, 255, 255, 0.62);
  border: 0;
}

.product-preview-dots button.is-active {
  background: var(--brand);
}

body.dark-mode .product-card,
body.dark-mode .tier-card,
body.dark-mode .blog-grid article,
body.dark-mode .payment-card,
body.dark-mode .provider-grid article,
body.dark-mode .auth-card,
body.dark-mode .dashboard-panel,
body.dark-mode .agent-application,
body.dark-mode .domain-tool,
body.dark-mode .cms-card,
body.dark-mode .admin-featured-products,
body.dark-mode .admin-product-row,
body.dark-mode .admin-add-product,
body.dark-mode .admin-blog-folder,
body.dark-mode .admin-blog-form,
body.dark-mode .admin-blog-preview,
body.dark-mode .cart-drawer {
  color: var(--ink);
  background-color: var(--panel);
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  color: var(--ink);
  background-color: var(--panel);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: color-mix(in srgb, var(--ink) 62%, transparent);
}

.product-buy-row .button {
  min-width: 112px;
}

.tier-grid {
  grid-template-columns: minmax(220px, 0.92fr) minmax(320px, 1.16fr) minmax(220px, 0.92fr);
  align-items: stretch;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tier-card {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 430px;
  padding: 34px 28px;
  border-top: 0;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-soft) 56%, transparent), transparent 58%);
}

.tier-card:last-child {
  border-right: 0;
}

.tier-featured {
  min-height: 480px;
  margin-top: -24px;
  margin-bottom: -24px;
  padding-top: 44px;
  background: var(--panel-strong);
  color: var(--inverse);
  border-right: 0;
  box-shadow: 0 30px 70px rgba(214, 8, 5, 0.2);
}

.tier-featured .tier-kicker,
.tier-featured p,
.tier-featured li {
  color: color-mix(in srgb, var(--inverse) 74%, transparent);
}

.tier-card h3 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: 0;
}

.tier-card h3 span {
  font-size: 1rem;
  color: var(--muted);
}

.tier-featured h3 span {
  color: color-mix(in srgb, var(--inverse) 66%, transparent);
}

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

.tier-kicker {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tier-commission {
  display: block;
  width: fit-content;
  padding: 8px 0;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tier-featured .tier-commission {
  color: var(--inverse);
}

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

.tier-card li {
  color: var(--muted);
}

.tier-card li::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 1px;
  margin-right: 10px;
  background: currentColor;
}

.tier-card .button {
  align-self: end;
  width: 100%;
  margin-top: auto;
}

.agent-application {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 28px;
  margin-top: 54px;
  padding: 34px 0 0;
}

.agent-application p {
  color: var(--muted);
}

.application-form,
.auth-form,
.domain-tool {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.application-form label,
.auth-form label,
.domain-tool label,
.mpesa-box label,
.cms-edit-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.checkbox-label {
  grid-column: 1 / -1;
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
  color: var(--ink) !important;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--panel-strong);
}

.application-form .button,
.form-note {
  grid-column: 1 / -1;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--ink);
}

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

.payment-card,
.provider-grid article {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 210px;
  padding: 24px;
}

.payment-card span,
.provider-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-card strong {
  display: block;
  font-size: 1.72rem;
  line-height: 1.08;
}

.payment-card p,
.provider-grid span {
  margin: 0;
  color: var(--muted);
}

.payment-card-strong {
  background: var(--panel-strong);
  color: var(--inverse);
}

.payment-card-strong span,
.payment-card-strong p {
  color: color-mix(in srgb, var(--inverse) 72%, transparent);
}

.domain-tool {
  align-items: end;
  margin-bottom: 18px;
  padding: 22px;
}

.domain-tool .form-note {
  grid-column: 1 / -1;
}

.auth-grid {
  grid-template-columns: minmax(280px, 520px);
  margin-bottom: 20px;
}

.auth-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
}

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

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

.auth-card li {
  color: var(--muted);
}

.auth-card li::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 1px;
  margin-right: 10px;
  background: currentColor;
}

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

.auth-form .button {
  width: 100%;
}

.account-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
  padding: 22px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.account-switch p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
}

.account-switch > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.security-card {
  background: var(--panel-soft);
}

.admin-lock {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  margin-bottom: 26px;
}

.admin-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 82px);
  margin: -78px -4vw;
  background: var(--bg);
}

.admin-sidebar {
  position: sticky;
  top: 82px;
  align-self: start;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: calc(100vh - 82px);
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.admin-logo,
.admin-sidebar nav a,
.admin-sidebar-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logo span,
.admin-sidebar-footer span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 900;
}

.admin-logo strong {
  font-size: 1.4rem;
}

.admin-sidebar nav {
  display: grid;
  gap: 10px;
  align-content: start;
  margin-top: 36px;
}

.admin-sidebar nav a {
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  border-left: 3px solid transparent;
}

.admin-sidebar nav a.is-active {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  border-left-color: var(--brand);
}

.admin-sidebar-footer {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.admin-sidebar-footer button {
  margin-left: auto;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.admin-main {
  display: grid;
  gap: 28px;
  padding: 36px 4vw 56px;
}

.admin-topbar,
.admin-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.admin-topbar h2,
.admin-section-heading h2 {
  font-size: 2.1rem;
}

.admin-topbar p,
.admin-section-heading p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
}

.admin-content-section {
  display: grid;
  gap: 22px;
}

.admin-blog-section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.admin-analytics-section {
  padding-top: 4px;
}

.admin-metric-grid,
.admin-tracking-grid {
  display: grid;
  gap: 18px;
}

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

.tracking-tabs {
  display: inline-flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
}

.tracking-tabs button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.tracking-tabs button.is-active {
  color: var(--inverse);
  background: var(--brand);
}

.admin-metric-grid article {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.admin-metric-grid span,
.admin-metric-grid small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-metric-grid strong {
  font-size: 1.75rem;
  line-height: 1.1;
}

.trend-up {
  color: #14833b !important;
}

.trend-down {
  color: var(--brand) !important;
}

.admin-tracking-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.admin-tracking-grid h3 {
  margin-bottom: 14px;
}

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

.review-list button {
  display: grid;
  gap: 7px;
  width: 100%;
  margin: 0;
  padding: 0 0 14px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.review-list button:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.review-list p {
  margin: 0;
  color: var(--muted);
}

.review-list span {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.review-reader {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 18px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.review-reader button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  font-weight: 900;
}

.review-reader span {
  color: #14833b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.review-reader h4,
.review-reader p {
  margin: 0;
}

.review-reader p {
  color: var(--muted);
}

.admin-status {
  border-color: color-mix(in srgb, var(--panel-strong) 34%, var(--line));
}

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

.cms-card {
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 24px 18px 18px;
}

.cms-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cms-card strong {
  font-size: 2.4rem;
  line-height: 1;
}

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

.cms-card-strong {
  background: var(--panel-strong);
  color: var(--inverse);
}

.cms-card-strong span,
.cms-card-strong p {
  color: color-mix(in srgb, var(--inverse) 76%, transparent);
}

.cms-workspace {
  grid-template-columns: 1fr;
  gap: 38px;
}

.cms-editor {
  background: var(--panel-soft);
}

.cms-editor-stack {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.cms-item-list {
  display: grid;
  gap: 8px;
}

.admin-product-list {
  display: grid;
  gap: 18px;
}

.admin-featured-products {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 54px rgba(17, 17, 17, 0.04);
}

.admin-featured-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.admin-featured-heading span,
.admin-featured-tile small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  font-style: normal;
  text-transform: uppercase;
}

.admin-featured-heading strong {
  font-size: 0.86rem;
  text-transform: uppercase;
}

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

.admin-featured-tile {
  min-width: 0;
  background: var(--panel);
  border: 1px solid transparent;
}

.admin-featured-tile.is-active {
  border-color: var(--brand);
}

.admin-featured-tile summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  color: var(--ink);
  cursor: pointer;
}

.admin-featured-tile summary::marker {
  color: var(--brand);
}

.admin-featured-tile img {
  width: 58px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.admin-featured-tile span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-featured-tile strong,
.admin-featured-tile em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-featured-tile strong {
  font-size: 0.86rem;
}

.admin-featured-tile em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.admin-featured-tools {
  display: flex;
  gap: 8px;
  padding: 0 8px 8px;
}

.admin-featured-tools .admin-edit-icon {
  width: 38px;
  height: 38px;
}

.admin-featured-inline {
  display: grid;
  gap: 10px;
  padding: 0 8px 10px;
}

.admin-featured-inline label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-featured-inline input,
.admin-featured-inline textarea,
.admin-featured-inline select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--panel);
  border: 0;
  border-bottom: 1px solid var(--line);
}

.admin-featured-inline textarea {
  resize: vertical;
}

.admin-product-group {
  background: transparent;
}

.admin-product-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 0 14px;
  color: #ffffff;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--brand);
  cursor: pointer;
}

.admin-product-group summary::marker {
  color: #ffffff;
}

.admin-product-group summary strong {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  color: var(--brand);
  background: #ffffff;
}

.admin-product-group-body {
  display: grid;
  gap: 18px;
  padding-top: 14px;
}

.admin-product-row {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 430px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 54px rgba(17, 17, 17, 0.06);
}

.admin-product-row.is-active {
  border-color: var(--brand);
}

.admin-add-product {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 118px;
  color: var(--ink);
  background: var(--panel);
  border: 1px dashed color-mix(in srgb, var(--brand) 55%, var(--line));
  cursor: pointer;
  box-shadow: 0 18px 54px rgba(17, 17, 17, 0.04);
}

.admin-add-product span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  background: var(--brand);
}

.admin-add-product strong {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.admin-add-product-small {
  min-height: 72px;
  grid-template-columns: auto auto;
  justify-content: center;
}

.admin-add-product-small span {
  width: 34px;
  height: 34px;
  font-size: 1.4rem;
}

.cms-product-number,
.cms-product-action {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-product-image {
  position: relative;
  display: block;
  width: min(100%, 320px);
  aspect-ratio: 4 / 5;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: var(--panel-soft);
  border: 0;
}

.admin-image-strip {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.admin-image-strip::-webkit-scrollbar {
  display: none;
}

.admin-image-strip img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: center;
}

.admin-image-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(17, 17, 17, 0.1);
  transform: translateY(-50%);
}

.admin-image-prev {
  left: 10px;
}

.admin-image-next {
  right: 10px;
}

.admin-product-copy {
  display: grid;
  gap: 10px;
}

.admin-product-copy p,
.admin-blog-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-product-copy h3 {
  font-size: 1.25rem;
}

.admin-inline-title,
.admin-inline-description,
.admin-inline-price input {
  width: 100%;
  color: var(--ink);
  background: var(--panel);
  border: 0;
  border-bottom: 1px solid var(--brand);
}

.admin-inline-title {
  min-height: 42px;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-inline-description {
  min-height: 78px;
  padding: 10px 0;
  resize: vertical;
}

.admin-inline-price {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-inline-price input,
.admin-inline-price select {
  min-height: 42px;
  font-size: 1.1rem;
  font-weight: 900;
}

.admin-product-copy hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
}

.admin-product-copy > span:not(.cms-product-number) {
  max-width: 48ch;
}

.admin-row-actions {
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-edit-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
}

.admin-edit-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.admin-delete-icon {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.cms-item-button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.cms-item-button span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cms-item-button strong {
  font-size: 1rem;
}

.cms-item-button.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.cms-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

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

.admin-blog-folder {
  margin-bottom: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 54px rgba(17, 17, 17, 0.05);
}

.admin-blog-folder summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-blog-folder summary::marker {
  color: var(--brand);
}

.admin-blog-folder summary strong {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  color: #ffffff;
  background: var(--brand);
}

.admin-blog-folder-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.admin-blog-folder-list p {
  margin: 0;
  color: var(--muted);
}

.admin-blog-folder-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  background: var(--panel);
  border: 1px solid transparent;
}

.admin-blog-folder-item.is-active {
  border-color: var(--brand);
}

.admin-blog-folder-item img {
  width: 72px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.admin-blog-folder-item span {
  display: grid;
  gap: 4px;
}

.admin-blog-folder-item small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-blog-folder-item strong {
  overflow: hidden;
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-blog-form {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 54px rgba(17, 17, 17, 0.06);
}

.admin-blog-title-field,
.admin-blog-options label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-blog-title-field input,
.admin-blog-options input,
.admin-blog-options select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--panel);
  border: 0;
  border-bottom: 1px solid var(--line);
}

.admin-blog-title-field input {
  font-size: 1.25rem;
  font-weight: 900;
}

.admin-blog-editor {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.admin-blog-upload-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.08);
}

.admin-blog-body-preview {
  display: grid;
  gap: 0;
}

.admin-blog-body-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.admin-blog-body-preview textarea {
  width: 100%;
  min-height: 360px;
  padding: 22px;
  padding-right: 70px;
  color: var(--ink);
  line-height: 1.65;
  background: transparent;
  border: 0;
  resize: vertical;
}

.admin-blog-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-blog-editor-footer span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-blog-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-blog-preview {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(17, 17, 17, 0.06);
}

.admin-blog-published-card {
  display: grid;
  gap: 16px;
  min-height: 292px;
  padding: 24px;
  border-top: 1px solid var(--line);
}

.admin-blog-preview img,
.admin-blog-published-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.admin-blog-published-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-blog-published-card span {
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-line;
}

.admin-blog-published-card a {
  align-self: end;
  width: fit-content;
  border-bottom: 1px solid currentColor;
  font-weight: 900;
}

.cms-edit-heading {
  margin-top: 20px;
}

.cms-edit-form .button,
.cms-wide-field {
  grid-column: 1 / -1;
}

.cms-image-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 92px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.cms-image-preview div {
  display: grid;
  gap: 8px;
  align-content: start;
}

.cms-image-preview img {
  width: 100%;
  height: 92px;
  object-fit: cover;
}

.cms-image-preview span {
  display: grid;
  place-items: center;
  min-height: 92px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
}

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

.dashboard-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dashboard-status span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-status strong {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
}

.agent-code-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 20px;
  align-items: end;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.agent-payout-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
  padding: 18px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.agent-payout-card p:not(.eyebrow, .form-note) {
  margin: 8px 0 0;
  color: var(--muted);
}

.agent-payout-card .form-note {
  grid-column: 1 / -1;
}

.agent-code-card h3 {
  width: fit-content;
  padding: 8px 0;
  font-size: clamp(1.65rem, 4vw, 3.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--brand);
}

.agent-code-card.has-code h3 {
  color: var(--brand);
}

.agent-code-card p:not(.eyebrow) {
  max-width: 52ch;
  margin: 10px 0 0;
  color: var(--muted);
}

.agent-code-generator {
  display: grid;
  gap: 12px;
}

.agent-code-generator label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.agent-code-generator input {
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--panel);
  border: 0;
  border-bottom: 1px solid var(--line);
}

.dashboard-panel {
  padding: 22px;
}

.dashboard-panel.is-hidden {
  display: none;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 20px;
  background: var(--line);
  border: 1px solid var(--line);
}

.metric-row div {
  min-height: 118px;
  padding: 18px;
  background: var(--panel-soft);
}

.metric-row span {
  color: var(--muted);
}

.activity-table {
  display: grid;
  border-top: 1px solid var(--line);
}

.activity-table [role="row"] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 52px;
  border-bottom: 1px solid var(--line);
}

.activity-table [role="row"]:last-child {
  border-bottom: 0;
}

.activity-table span {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border-right: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.activity-table span:last-child {
  border-right: 0;
}

.activity-table [role="columnheader"] {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.blog-grid.is-reader-open {
  display: none;
}

.blog-grid article {
  display: grid;
  gap: 16px;
  min-height: 292px;
  padding: 24px;
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.blog-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-excerpt {
  color: var(--muted);
}

.blog-font-serif {
  font-family: Georgia, "Times New Roman", serif;
}

.blog-font-condensed {
  font-family: Impact, "Arial Narrow", sans-serif;
  font-weight: 700;
}

.blog-font-playfair {
  font-family: "Playfair Display", Georgia, serif;
}

.blog-font-montserrat {
  font-family: "Montserrat", Arial, sans-serif;
}

.blog-font-lora {
  font-family: "Lora", Georgia, serif;
}

.blog-font-oswald {
  font-family: "Oswald", "Arial Narrow", sans-serif;
}

.blog-font-poppins {
  font-family: "Poppins", Arial, sans-serif;
}

.blog-grid a,
.blog-read-button {
  align-self: end;
  width: fit-content;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-weight: 900;
}

.blog-reader {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.blog-reader-main {
  display: grid;
  gap: 18px;
}

.blog-reader-main > img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.blog-reader p,
.blog-suggestions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-reader-main > h3 {
  max-width: 780px;
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.blog-reader-body {
  max-width: 720px;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.8;
  white-space: pre-line;
}

.blog-reader-close {
  position: absolute;
  top: 24px;
  right: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  font-weight: 900;
}

.blog-suggestions {
  display: grid;
  gap: 14px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.blog-suggestions > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-suggestions button {
  display: grid;
  gap: 10px;
  padding: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
}

.blog-suggestions img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.blog-suggestions span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-suggestions strong {
  font-size: 1rem;
  line-height: 1.2;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: min(440px, 100vw);
  height: 100dvh;
  padding: 22px;
  background: var(--panel);
  color: var(--ink);
  border-left: 1px solid var(--line);
  box-shadow: none;
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-header,
.cart-summary,
.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cart-header {
  min-height: 56px;
}

.cart-header h2 {
  font-size: 1.5rem;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding: 18px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cart-line {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-cart {
  color: var(--muted);
}

.cart-summary {
  min-height: 58px;
  border-top: 1px solid var(--line);
}

.checkout-button {
  width: 100%;
}

.mpesa-box {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  background: transparent;
  border-top: 1px solid var(--line);
}

.mpesa-box > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(77, 10, 15, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 4vw;
  color: var(--inverse);
  background: var(--panel-strong);
}

.site-footer p {
  margin: 6px 0 0;
  color: color-mix(in srgb, var(--inverse) 70%, transparent);
}

.site-footer a {
  border-bottom: 1px solid currentColor;
}

@media (max-width: 1080px) {
  .product-grid,
  .cms-shop-preview {
    grid-template-columns: 1fr;
  }

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

  .shop-audience-columns {
    grid-template-columns: 1fr;
  }

  .product-row-scroll {
    grid-auto-columns: calc((100% - 18px) / 2);
  }

  .admin-panel {
    grid-template-columns: 1fr;
    margin: -78px -4vw;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .admin-product-row,
  .admin-blog-layout {
    grid-template-columns: 1fr;
  }

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

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

  .landing-video-section,
  .landing-video {
    min-height: calc(100vh - 76px);
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.18rem;
  }

  .shop-toolbar,
  .agent-application,
  .admin-lock,
  .cms-workspace,
  .site-footer {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .tier-grid,
  .blog-grid,
  .payment-grid,
  .provider-grid,
  .auth-grid,
  .admin-lock,
  .admin-metric-grid,
  .admin-tracking-grid,
  .cms-grid,
  .cms-workspace {
    grid-template-columns: 1fr;
  }

  .tier-grid {
    gap: 18px;
    border: 0;
  }

  .tier-card,
  .tier-card:last-child {
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .tier-featured {
    min-height: 430px;
    margin: 0;
  }

  .agent-application,
  .domain-tool {
    display: grid;
  }

  .application-form,
  .auth-form,
  .domain-tool,
  .cms-edit-form {
    grid-template-columns: 1fr;
  }

  .admin-blog-options {
    grid-template-columns: 1fr;
  }

  .sort-field,
  .search-field {
    min-width: 100%;
  }

}

@media (max-width: 620px) {
  .section {
    padding: 68px 20px;
  }

  .site-header {
    padding: 14px 20px;
  }

  .landing-video-section,
  .landing-video {
    min-height: calc(100vh - 132px);
  }

  h1 {
    font-size: 2.48rem;
  }

  h2 {
    font-size: 1.86rem;
  }

  .metric-row,
  .product-grid,
  .featured-product-grid,
  .agent-code-card,
  .agent-payout-card,
  .account-switch,
  .cms-shop-preview,
  .cms-grid {
    grid-template-columns: 1fr;
  }

  .product-row-scroll {
    grid-auto-columns: minmax(260px, 82vw);
  }

  .product-preview-overlay {
    padding: 14px;
  }

  .product-preview-dialog {
    width: 100%;
  }

  .product-preview-arrow {
    opacity: 1;
    width: 38px;
    height: 58px;
    font-size: 3rem;
  }

  .admin-sidebar nav {
    grid-template-columns: 1fr 1fr;
  }

  .admin-featured-grid {
    grid-template-columns: 1fr;
  }

  .blog-suggestions > div {
    grid-template-columns: 1fr;
  }

  .admin-topbar,
  .admin-section-heading {
    flex-direction: column;
  }

  .activity-table [role="row"] {
    grid-template-columns: 1fr 1fr;
  }

  .activity-table span:nth-child(2n) {
    border-right: 0;
  }

  .activity-table span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px 12px;
    min-height: auto;
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: min(52vw, 190px);
    height: 42px;
  }

  .header-actions {
    justify-self: end;
    gap: 6px;
  }

  .icon-button,
  .cart-button {
    min-height: 40px;
  }

  .icon-button {
    width: 40px;
  }

  .cart-button {
    padding: 0 8px;
  }

  .cart-button span {
    display: none;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: initial;
    width: calc(100vw - 28px);
    gap: 16px;
    padding: 4px 0 1px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .account-menu {
    right: -54px;
    min-width: min(82vw, 260px);
  }

  .landing-video-section,
  .landing-video {
    min-height: calc(100svh - 112px);
  }

  .landing-video-section {
    display: grid;
  }

  .landing-video {
    min-width: 100%;
    min-height: 100%;
    object-position: center top;
  }

  .landing-shop-button {
    right: 18px;
    bottom: 18px;
    min-height: 44px;
    padding: 0 18px;
  }

  .section {
    padding: 54px 16px;
  }

  .section-heading {
    gap: 8px;
    margin-bottom: 26px;
  }

  .section-heading h2,
  .admin-section-heading h2,
  .admin-topbar h2 {
    font-size: 1.72rem;
    line-height: 1.08;
  }

  .section-heading p:not(.eyebrow),
  .admin-section-heading p:not(.eyebrow),
  .admin-topbar p {
    font-size: 0.96rem;
  }

  .shop-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .segmented-control,
  .dashboard-tabs,
  .tracking-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    border: 1px solid var(--line);
  }

  .segmented-control button,
  .dashboard-tabs button,
  .tracking-tabs button {
    min-width: 0;
    padding: 0 8px;
    text-align: center;
  }

  .search-suggestions {
    left: 0;
    right: auto;
  }

  .featured-product-grid,
  .product-grid,
  .tier-grid,
  .blog-grid,
  .payment-grid,
  .provider-grid,
  .auth-grid,
  .admin-lock,
  .metric-row,
  .agent-code-card,
  .agent-payout-card,
  .admin-metric-grid,
  .admin-tracking-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-subheading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .product-row-scroll {
    grid-auto-columns: minmax(218px, 78vw);
    gap: 14px;
    width: 100%;
    margin-right: 0;
    padding: 0 0 12px;
  }

  .product-row-shell {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 8px;
  }

  .product-row-shell .product-row-scroll {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .product-scroll-arrow {
    position: static;
    grid-row: 2;
    width: 42px;
    height: 42px;
    color: var(--inverse);
    text-shadow: none;
    font-size: 1.8rem;
    background: var(--brand);
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .product-scroll-left {
    grid-column: 1;
  }

  .product-scroll-right {
    grid-column: 3;
    justify-self: end;
  }

  .product-card,
  .tier-card,
  .payment-card,
  .auth-card,
  .dashboard-panel,
  .agent-code-card,
  .agent-payout-card {
    min-width: 0;
  }

  .tier-featured {
    min-height: auto;
  }

  .agent-application {
    gap: 22px;
    padding: 22px 0;
  }

  .application-form,
  .auth-form,
  .agent-code-generator,
  .cms-edit-form {
    gap: 14px;
  }

  .dashboard-status,
  .admin-topbar,
  .admin-section-heading,
  .admin-featured-heading,
  .admin-blog-editor-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .dashboard-status .button,
  .agent-payout-card .button,
  .admin-topbar .button,
  .admin-section-heading .button {
    width: 100%;
  }

  .activity-table {
    overflow: hidden;
  }

  .activity-table [role="row"] {
    grid-template-columns: 1fr;
  }

  .activity-table span {
    min-width: 0;
    border-right: 0;
  }

  .activity-table span:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }

  .admin-panel {
    margin: -54px -16px;
  }

  .admin-sidebar {
    padding: 18px 16px;
  }

  .admin-sidebar nav {
    grid-template-columns: 1fr;
  }

  .admin-main {
    padding: 22px 16px;
  }

  .admin-featured-tools,
  .admin-row-actions {
    flex-wrap: wrap;
  }

  .admin-product-image {
    min-height: 220px;
  }

  .admin-blog-layout,
  .admin-blog-options,
  .admin-product-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-drawer {
    inset: 0;
    display: flex;
    flex-direction: column;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    padding: 16px;
    border-left: 0;
  }

  .cart-header {
    flex: 0 0 auto;
  }

  .cart-items {
    flex: 1 1 auto;
    min-height: 120px;
    padding: 12px 0;
  }

  .cart-summary,
  .mpesa-box {
    flex: 0 0 auto;
  }

  .mpesa-box {
    gap: 9px;
    margin-top: 8px;
    padding: 10px 0 0;
  }

  .mpesa-box input {
    min-height: 42px;
  }

  .product-preview-dialog {
    max-height: calc(100svh - 28px);
    overflow: auto;
  }

  .site-footer {
    gap: 14px;
    padding: 28px 16px;
  }
}
