/* Decorative video stays behind every store component. */
body { isolation: isolate; }
/* Paint a poster before the deferred script creates the video layer. */
body:not(:has(.site-video-background))::before {
  content: '';
  position: fixed;
  inset: -64px 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(#0006, #0006), url('../video/background.jpg') center / cover no-repeat #818181;
  filter: blur(4px);
  transform: scale(1.02);
}
/* Keep a wallpaper behind iOS rubber-band scrolling and browser chrome. */
html:has(.site-video-background) {
  background: #818181;
  overscroll-behavior-y: auto;
}
/* Background may extend edge to edge; keep controls inside the safe area. */
body:has(.site-video-background) {
  /* Browser chrome samples the canvas color, not the video frame. */
  background-color: #818181;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body:has(.site-video-background) .topbar {
  padding-top: env(safe-area-inset-top, 0px);
}
.site-video-background {
  position: fixed;
  inset: -64px 0 auto;
  height: calc(100vh + 128px);
  height: calc(100lvh + 128px);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #818181;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.site-video-background video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .85;
  filter: blur(4px);
  transform: scale(1.02);
}
.site-video-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 32%);
}
.background-toggle {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  right: calc(16px + env(safe-area-inset-right, 0px));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid #ffffff38;
  border-radius: 50%;
  background: rgb(18 20 23 / 28%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text);
  box-shadow: 0 4px 16px #0002;
  cursor: pointer;
}
.background-toggle svg { display: block; width: 22px; height: 22px; pointer-events: none; }
.background-toggle:hover { color: var(--text); border-color: var(--brand); background: rgb(18 20 23 / 42%); }
.background-toggle:focus-visible { outline: 2px solid var(--brand2); outline-offset: 3px; }
:root {
  --bg: #080b12;
  --panel: #101622;
  --panel2: #141c2a;
  --line: rgb(255 255 255 / 20%);
  --border: var(--line);
  --text: #fff;
  --muted: #fff;
  --brand: #fff;
  --brand2: #fff;
  --danger: #ff7777;
  --warning: #ffd27d;
  --radius: 18px;
  --shadow: 0 20px 55px #0005;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: radial-gradient(1000px 550px at 80% -15%, #18304566, transparent 70%), var(--bg);
  color: var(--text);
  font:
    15px/1.6 Inter,
    "Segoe UI",
    Arial,
    system-ui,
    sans-serif;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.container {
  width: min(1160px, calc(100% - 36px));
  margin-inline: auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #080b12e8;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #ffffff12;
}
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font:
    700 21px Inter,
    sans-serif;
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.brand-mark {
  height: 34px;
  width: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #081018;
  display: grid;
  place-items: center;
  font-weight: 900;
}
/* Match the header mark to the 44px mobile menu control. */
[data-site-header] .brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  font-size: 26px;
  line-height: 1;
  border-radius: 12px;
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.navlinks a {
  position: relative;
  font-size: 13px;
  color: var(--muted);
  transition: 0.2s;
}
.navlinks a:hover,
.navlinks a.active {
  color: var(--text);
}
.navlinks > a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 3px;
  background: var(--text);
  pointer-events: none;
}
.navright > a[aria-current="page"] {
  background: rgb(255 255 255 / 16%);
  border-color: rgb(255 255 255 / 60%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%);
}
.navright {
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 7px 11px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 14px;
  padding: 11px 16px;
  background: rgb(255 255 255 / 18%);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-weight: 800;
  font-size: 13px;
  transition:
    transform 0.18s,
    background-color 0.18s,
    border-color 0.18s;
  white-space: nowrap;
}
.btn:hover:not(:disabled) {
  background-color: rgb(255 255 255 / 26%);
  border-color: rgb(255 255 255 / 35%);
  transform: translateY(-1px);
}
.btn.secondary {
  background: rgb(20 20 20 / 32%);
  border-color: rgb(255 255 255 / 16%);
  color: var(--text);
}
.btn.blue {
  background: rgb(255 255 255 / 18%);
  color: #fff;
}
.btn.danger {
  background: #ff77771a;
  border-color: #ff77774a;
  color: #ffaaaa;
}
.btn.small {
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 9px;
}
.btn.full {
  width: 100%;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 12px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
}
.eyebrow:before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}
.hero {
  padding: 82px 0 60px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 55px;
  align-items: center;
}
.hero h1 {
  font:
    700 clamp(40px, 6vw, 68px)/1.06 Inter,
    sans-serif;
  letter-spacing: -2.8px;
  margin: 18px 0;
}
.gradient {
  background: linear-gradient(105deg, var(--brand), var(--brand2));
  color: transparent;
  background-clip: text;
}
.hero p {
  max-width: 600px;
  color: var(--muted);
  font-size: 16px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-note {
  display: flex;
  gap: 19px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px;
}
.hero-note span:before {
  content: "✓";
  color: #62dc8a;
  font-weight: 900;
  margin-right: 7px;
}
.hero-art {
  position: relative;
  min-height: 350px;
  border: 1px solid #ffffff16;
  border-radius: 30px;
  background: linear-gradient(145deg, #131e2e, #0d111a);
  padding: 25px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.orb {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff88, #ffffff11);
  filter: blur(1px);
  right: -35px;
  top: -65px;
}
.product-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin-top: 30px;
}
.showcase-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid #ffffff14;
  border-radius: 16px;
  background: #080d16bf;
}
.icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #ffffff14;
  color: var(--brand);
  font-size: 20px;
  font-weight: 800;
}
.showcase-line strong {
  display: block;
}
.showcase-line small {
  color: var(--muted);
}
.status-dot {
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 18px var(--brand);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-bottom: 68px;
}
.stat {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: #ffffff04;
  border-radius: 15px;
}
.stat > div {
  min-width: 0;
}
.stat .stat-icon {
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 11px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 14px;
  background: linear-gradient(145deg, rgb(255 255 255 / 12%), rgb(255 255 255 / 4%));
  color: var(--brand);
}
.stat strong {
  display: block;
  font: 700 25px/1.2 Inter, sans-serif;
  letter-spacing: -0.5px;
}
.stat span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
@media (max-width: 700px) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats .stat {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }
  .stat .stat-icon {
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 12px;
  }
}
.section {
  padding: 28px 0 72px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin-bottom: 25px;
}
.section-head h2,
.page-head h1 {
  font:
    700 clamp(27px, 4vw, 38px)/1.15 Inter,
    sans-serif;
  letter-spacing: -1px;
  margin: 8px 0;
}
.section-head p,
.page-head p {
  color: var(--muted);
  margin: 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.product-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, #121a27, #0e131d);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: #ffffff63;
}
.product-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-symbol {
  flex-shrink: 0;
  height: 52px;
  width: 52px;
  border-radius: 15px;
  background: linear-gradient(145deg, #ffffff1d, #ffffff1b);
  display: grid;
  place-items: center;
  font:
    700 19px Inter,
    sans-serif;
  color: var(--brand);
}
.product-symbol,
.license-option-symbol { overflow: hidden; }
.product-symbol > img,
.license-option-symbol > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.product-visual-editor [hidden] { display: none !important; }
.product-visual-preview {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.product-visual-editor input[type="file"] {
  width: 100%;
  min-width: 0;
  font-size: 12px;
}
.product-visual-editor input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 12%);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 9px;
  font-size: 10px;
  color: var(--muted);
}
.product-card h3 {
  font:
    700 20px Inter,
    sans-serif;
  margin: 19px 0 6px;
}
.product-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 18px;
  min-height: 44px;
}
.features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 7px;
  color: #c5cfe0;
  font-size: 12px;
}
.features li:before {
  content: "✓";
  color: #62dc8a;
  margin-right: 8px;
}
.product-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #ffffff12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
.price {
  font:
    700 23px Inter,
    sans-serif;
}
.price small {
  display: block;
  font:
    400 10px Inter,
    sans-serif;
  color: var(--muted);
}
.page-head {
  padding: 48px 0 25px;
}
.toolbar {
  display: flex;
  gap: 10px;
  margin: 12px 0 22px;
  flex-wrap: wrap;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}
.field label {
  font-size: 12px;
  color: #cbd5e6;
  font-weight: 700;
}
.field input,
.field select,
.field textarea,
.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #090e17;
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}
.field input:focus,
.field select:focus,
.toolbar input:focus,
.field textarea:focus {
  border-color: var(--brand);
}
.toolbar .search {
  flex: 1;
  min-width: 210px;
}
.toolbar select {
  width: auto;
  min-width: 150px;
}
.notice {
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 5%);
  border-radius: 12px;
  color: var(--text);
  font-size: 12px;
  margin: 14px 0;
}
.notice.warn {
  border-color: #ffd27d45;
  background: #ffd27d0c;
  color: #ffe4af;
}
.notice.error {
  border-color: #ff777744;
  background: #ff77770c;
  color: #ffc0c0;
}
.empty {
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
}
.panel {
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #121a27, #0e131d);
  border-radius: var(--radius);
  padding: 23px;
}
.auth-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 25px;
  padding: 35px 0 75px;
}
.auth-side {
  padding: 30px;
  border-radius: 22px;
  background: linear-gradient(145deg, #182a27, #111b29);
  border: 1px solid #ffffff25;
}
.auth-side h2 {
  font:
    700 34px Inter,
    sans-serif;
  line-height: 1.15;
}
.auth-side ul {
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}
.auth-card {
  max-width: 520px;
  width: 100%;
  margin: auto;
}
.auth-card h1 {
  font:
    700 30px Inter,
    sans-serif;
  margin: 3px 0;
}
.demo-logins {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.demo-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
}
.demo-login code {
  color: var(--muted);
  font-size: 11px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 650px;
}
th,
td {
  text-align: left;
  padding: 13px 15px;
  border-bottom: 1px solid #ffffff0e;
  font-size: 12px;
  vertical-align: middle;
}
th {
  background: #ffffff06;
  color: var(--muted);
  font-weight: 700;
}
tr:last-child td {
  border-bottom: 0;
}
.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 99px;
  background: #ffffff0a;
  border: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.tag.ok {
  color: var(--brand);
  border-color: #9cf36b40;
  background: #9cf36b0c;
}
.tag.pending {
  color: var(--warning);
  border-color: #ffd27d44;
}
.tag.bad {
  color: #ffaaaa;
  border-color: #ff777744;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 15px 0 22px;
}
.dash-stat {
  background: #ffffff04;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
}
.dash-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.dash-stat strong {
  font:
    700 23px Inter,
    sans-serif;
}
.actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.coupon-row {
  display: flex;
  gap: 8px;
}
.coupon-row input {
  flex: 1;
  min-width: 0;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000b;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-backdrop.open {
  display: flex;
}
.modal {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #101622;
  padding: 23px;
  box-shadow: var(--shadow);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
}
.modal-head h2 {
  margin: 0;
  font:
    700 23px Inter,
    sans-serif;
}
.close-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  padding: 4px 10px;
}
.order-summary {
  background: #080d15;
  padding: 13px;
  border-radius: 12px;
  margin: 14px 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.summary-line.total {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.support-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  background: #ffffff04;
  border-radius: 16px;
}
/* Normalize the visible artwork, not the source image canvas. */
.support-logo {
  display: block;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 12px;
}
.support-card > .btn { margin-top: auto; }
.footer {
  border-top: 1px solid #ffffff12;
  margin-top: 55px;
  padding: 32px 0 36px;
  color: var(--muted);
  font-size: 12px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.inline-feedback {
  position: static;
  width: 100%;
  min-width: 0;
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
}
.account-service-status p { margin: 0 0 12px; }
.account-service-status .btn { white-space: normal; }
.copy-key {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 12px;
  border: 1px dashed #ffffff55;
  border-radius: 10px;
  background: #ffffff08;
  font-family: monospace;
  word-break: break-all;
}
.copy-key code {
  color: var(--brand);
}
.hidden {
  display: none !important;
}
.footer a {
  color: #d2dcee;
}
.center {
  text-align: center;
}
.wide {
  max-width: 900px;
  margin-inline: auto;
}
.legal {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .nav {
    gap: 12px;
  }
  .navlinks {
    gap: 12px;
  }
  .navlinks a {
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr 0.8fr;
    gap: 25px;
    padding-top: 55px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mobile-menu-backdrop { display: none; }
@media (max-width: 700px) {
  body:has(.navlinks.open) .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    /* Transparent hit area only; blur is confined to the menu panel. */
    background: transparent;
  }
  /* Let the menu sample the page directly instead of the header's backdrop root. */
  body:has(.navlinks.open) [data-site-header] .topbar {
    z-index: 46;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav {
    height: 68px;
    gap: 12px;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle:hover,
  .menu-toggle[aria-expanded="true"] {
    background: rgb(255 255 255 / 10%);
  }
  .menu-toggle:focus-visible {
    outline: 2px solid var(--brand2);
    outline-offset: 2px;
  }
  .menu-toggle-icon {
    display: grid;
    gap: 5px;
    width: 22px;
  }
  .menu-toggle-icon > span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon > span:first-child {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon > span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon > span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }
  .navlinks {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    margin-left: 0;
    padding: 8px;
    background: rgb(18 20 23 / 45%);
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
    border: 1px solid #ffffff26;
    border-radius: 16px;
    box-shadow: 0 16px 40px #0008;
    max-height: calc(100vh - 92px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 92px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .navlinks.open {
    display: flex;
  }
  .navlinks a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    border-radius: 9px;
  }
  .navlinks a + a {
    border-top: 1px solid #ffffff0d;
  }
  .navlinks a.active,
  .navlinks a:hover,
  .navlinks a:focus-visible {
    background: #ffffff12;
  }
  .navlinks > a[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 10px;
    bottom: 10px;
    width: 3px;
    height: auto;
  }
  .navlinks a:focus-visible {
    outline: 2px solid var(--brand2);
    outline-offset: -2px;
  }
  .navright .btn {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 45px 0 35px;
  }
  .hero h1 {
    font-size: 46px;
  }
  .hero-art {
    min-height: 300px;
  }
  .stats {
    margin-bottom: 35px;
    gap: 8px;
  }
  .stat {
    padding: 13px;
  }
  .stat strong {
    font-size: 21px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding-bottom: 45px;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }
  .auth-side {
    display: none;
  }
  .grid-2,
  .support-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-head {
    padding-top: 35px;
  }
  .product-card p {
    min-height: 0;
  }
  .footer-inner {
    flex-direction: column;
  }
  .navright {
    margin-left: auto;
  }
  .brand {
    font-size: 18px;
  }
  .brand-mark {
    width: 31px;
    height: 31px;
  }
}

/* BEU Access showcase — refreshed storefront hero panel */

.license-panel {
  min-height: 0;
  padding: 24px 22px 18px;
  background: linear-gradient(148deg, #111c2c 0%, #0b111b 68%, #101b25 100%);
  border-color: #ffffff2b;
  box-shadow:
    0 26px 70px #0005,
    inset 0 1px 0 #ffffff0d;
  isolation: isolate;
}

.license-glow {
  position: absolute;
  z-index: -1;
  right: -85px;
  top: -105px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff20 0%, #ffffff0a 42%, transparent 72%);
  pointer-events: none;
}

.license-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 19px;
  border-bottom: 1px solid #ffffff12;
  position: relative;
  z-index: 1;
}

.license-brandline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.license-emblem {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--text), #fff);
  color: #081019;
  font:
    900 19px Inter,
    sans-serif;
  box-shadow: 0 6px 22px #ffffff18;
}

.license-brandcopy {
  display: grid;
  gap: 1px;
  line-height: 1.2;
}

.license-brandcopy strong {
  font:
    700 12px Inter,
    sans-serif;
  letter-spacing: 1.45px;
  color: #f2f8ff;
}

.license-brandcopy small {
  font-size: 9px;
  letter-spacing: 2px;
  color: #8e9db2;
}

.license-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #ffffff35;
  background: #ffffff0c;
  color: #cfffaf;
  border-radius: 99px;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  white-space: nowrap;
}

.license-live-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #9cf36b;
  box-shadow: 0 0 12px #9cf36b;
}

.license-heading {
  position: relative;
  z-index: 1;
  padding: 19px 0 16px;
}

.license-kicker {
  display: block;
  color: var(--text);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.7px;
  margin-bottom: 5px;
}

.license-heading h2 {
  font:
    700 23px/1.18 Inter,
    sans-serif;
  letter-spacing: -0.7px;
  color: #f4f7fb;
  margin: 0 0 5px;
}

.license-panel .license-heading p {
  margin: 0;
  color: #91a0b4;
  font-size: 12px;
  line-height: 1.5;
  max-width: none;
}

.license-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.license-option {
  position: relative;
  min-width: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 9px;
  row-gap: 4px;
  padding: 11px 11px;
  border: 1px solid #ffffff12;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff07, #ffffff02);
  transition:
    border-color 0.18s,
    background 0.18s,
    transform 0.18s;
  overflow: hidden;
}

.license-option:hover,
.license-option:focus-visible {
  border-color: #ffffff80;
  background: linear-gradient(145deg, #ffffff13, #ffffff06);
  transform: translateY(-2px);
  outline: none;
}

.license-option-symbol {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  align-self: center;
  border-radius: 10px;
  background: #ffffff11;
  border: 1px solid #ffffff28;
  color: #c4ff9e;
  font:
    800 10px Inter,
    sans-serif;
  letter-spacing: -0.2px;
}

.license-option-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding-right: 11px;
}

.license-option-copy strong {
  font:
    700 11.5px/1.25 Inter,
    sans-serif;
  color: #edf3fb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.license-option-copy small {
  font-size: 9px;
  line-height: 1.2;
  color: #8797ac;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.license-option-price {
  grid-column: 2;
  grid-row: 2;
  font:
    700 13px/1.2 Inter,
    sans-serif;
  color: #baf78e;
  white-space: nowrap;
}

.license-option-arrow {
  position: absolute;
  right: 9px;
  top: 8px;
  color: #74849b;
  font-size: 12px;
  line-height: 1;
  transition:
    color 0.18s,
    transform 0.18s;
}

.license-option:hover .license-option-arrow,
.license-option:focus-visible .license-option-arrow {
  color: #baf78e;
  transform: translate(1px, -1px);
}

.license-option-wide {
  grid-column: 1 / -1;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-rows: auto;
  min-height: 66px;
  padding: 10px 13px;
  background: linear-gradient(105deg, #ffffff12, #ffffff07 60%, #ffffff03);
  border-color: #ffffff30;
}

.license-option-wide .license-option-symbol {
  grid-row: 1;
  align-self: center;
  background: linear-gradient(145deg, #ffffff1b, #ffffff12);
  border-color: #ffffff45;
}

.license-option-wide .license-option-copy {
  grid-column: 2;
  grid-row: 1;
  padding-right: 5px;
}

.license-option-wide .license-option-price {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  margin-right: 13px;
  font-size: 13px;
}

.license-all-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  color: #d9e6f4;
  font-size: 11px;
  font-weight: 700;
  transition: color 0.18s;
}

.license-all-link span {
  color: var(--text);
  font-size: 16px;
  transition: transform 0.18s;
}

.license-all-link:hover {
  color: #baf78e;
}
.license-all-link:hover span {
  transform: translateX(3px);
}

.license-demo-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #ffffff10;
  color: #78879b;
  font-size: 9.5px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.license-info-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font:
    700 9px Inter,
    "Segoe UI",
    Arial,
    sans-serif;
  color: #9aa9bc;
}

.license-empty {
  grid-column: 1/-1;
  padding: 18px;
  border: 1px dashed #ffffff22;
  border-radius: 12px;
  color: #91a0b4;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .license-panel {
    padding: 21px 18px 17px;
  }
  .license-option {
    padding: 10px 9px;
    column-gap: 7px;
  }
  .license-option-copy strong {
    font-size: 10.8px;
  }
  .license-option-price {
    font-size: 12px;
  }
}

@media (max-width: 700px) {
  .license-panel {
    padding: 22px 18px 17px;
  }
  .license-heading h2 {
    font-size: 24px;
  }
  .license-option {
    min-height: 75px;
    padding: 10px;
  }
  .license-option-wide {
    padding: 11px 12px;
  }
  .license-option-wide .license-option-price {
    font-size: 12px;
  }
  .license-demo-note {
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  .license-grid {
    gap: 7px;
  }
  .license-option {
    grid-template-columns: 29px minmax(0, 1fr);
    column-gap: 7px;
    padding: 9px;
  }
  .license-option-symbol {
    width: 29px;
    height: 31px;
    font-size: 9px;
  }
  .license-option-copy strong {
    font-size: 10px;
  }
  .license-option-price {
    font-size: 11.5px;
  }
  .license-option-wide {
    grid-template-columns: 29px minmax(0, 1fr) auto;
    padding: 10px;
  }
  .license-option-wide .license-option-symbol {
    width: 29px;
  }
  .license-option-wide .license-option-price {
    font-size: 11px;
    margin-right: 9px;
  }
}

/* Wallet + dual payment flow */

.wallet-nav {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ffffff44;
  background: #ffffff0b;
  color: #c7ffae;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.payment-choice {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ffffff03;
  gap: 9px;
}

.payment-option {
  display: flex !important;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #080d15;
  cursor: pointer;
}

.payment-option:has(input:checked) {
  border-color: #ffffff70;
  background: #ffffff0b;
}

.payment-choice .payment-option input {
  width: 16px !important;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--brand);
}

.payment-option span {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.payment-option strong {
  font-size: 12px;
  color: var(--text);
}

.payment-option small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.45;
}

.payment-option b {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border: 1px solid #ffffff30;
  border-radius: 9px;
  color: var(--brand);
  font:
    800 11px Inter,
    sans-serif;
}

.payment-choice > a {
  width: max-content;
  color: var(--brand);
}

.payment-choice > small {
  line-height: 1.5;
}

.wallet-balance-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 30px;
  border: 1px solid #ffffff35;
  border-radius: 20px;
  background:
    radial-gradient(440px 240px at 95% 0%, #ffffff15, transparent 72%),
    linear-gradient(125deg, #14221d, #101622 70%);
  box-shadow: var(--shadow);
}

.wallet-balance-panel h2 {
  font:
    700 clamp(32px, 5vw, 46px)/1.1 Inter,
    sans-serif;
  letter-spacing: -1.2px;
  margin: 10px 0;
  color: #d5ffbd;
}

.wallet-balance-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.wallet-mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff44;
  border-radius: 21px;
  background: #ffffff12;
  color: var(--brand);
  font:
    700 36px Inter,
    sans-serif;
}

.wallet-columns {
  margin-top: 19px;
}

.wallet-columns .panel h2 {
  font:
    700 21px Inter,
    sans-serif;
  margin: 7px 0 10px;
}

.wallet-source {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid #ffffff12;
}

.wallet-source:last-child {
  border-bottom: 0;
}

.source-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffff12;
  border: 1px solid #ffffff2b;
  color: var(--brand);
  font:
    800 12px Inter,
    sans-serif;
}

.wallet-source strong {
  font-size: 13px;
}

.wallet-source p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin: 4px 0 0;
}

.wallet-credit {
  color: #baff9a;
  font-weight: 800;
  white-space: nowrap;
}
.wallet-debit {
  color: #ffb7aa;
  font-weight: 800;
  white-space: nowrap;
}

.topup-review {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #ffffff12;
}

.topup-review p {
  margin: 3px 0;
}
.topup-review .actions {
  justify-content: flex-end;
}

.wallet-login {
  max-width: 690px;
  margin: 0 auto;
}

.wallet-login h2 {
  margin-top: 0;
}

.admin-tabs {
  gap: 8px;
}

.admin-tabs .btn {
  white-space: normal;
}

@media (max-width: 700px) {
  .wallet-balance-panel {
    padding: 22px;
    align-items: flex-start;
  }
  .wallet-mark {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 28px;
  }
  .topup-review {
    align-items: flex-start;
    flex-direction: column;
  }
  .topup-review .actions {
    justify-content: flex-start;
  }
  .wallet-nav {
    font-size: 10px;
    padding: 6px 7px;
  }
  .admin-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-tabs .btn {
    width: 100%;
    padding: 10px 8px;
    font-size: 11px;
  }
}

/* Account dropdown + role-aware profile page (v8) */

.account-menu-wrap {
  position: relative;
  flex: 0 0 auto;
}

.account-menu-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 250px;
  min-height: 48px;
  padding: 6px 8px 6px 6px;
  border: 1px solid #ffffff30;
  border-radius: 15px;
  background: linear-gradient(135deg, #17251d, #101923);
  color: var(--text);
  text-align: left;
  box-shadow: inset 0 1px 0 #ffffff08;
  transition:
    border-color 0.18s,
    background 0.18s,
    box-shadow 0.18s;
}

.account-menu-trigger:hover,
.account-menu-wrap.open .account-menu-trigger {
  border-color: #ffffff66;
  background: #ffffff0b;
}

.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid #ffffff48;
  border-radius: 11px;
  background: linear-gradient(145deg, #ffffff2b, #ffffff1c);
  color: #d1ffb9;
  font:
    800 11px Inter,
    sans-serif;
  letter-spacing: 0.2px;
}

.account-avatar.large {
  flex-basis: 43px;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  font-size: 14px;
}

.account-trigger-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  line-height: 1.3;
}

.account-trigger-copy strong {
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 750;
}

.account-trigger-copy small {
  color: var(--muted);
  font-size: 10px;
}

.account-chevron {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin-left: 4px;
  border: 1px solid #ffffff10;
  border-radius: 8px;
  background: #ffffff05;
  color: var(--brand);
  font-size: 0;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.account-chevron {
  position: relative;
  display: block;
  line-height: 0;
}
.account-chevron::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  background: center/contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6L8 10L12 6' fill='none' stroke='%239cf36b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}
.account-menu-trigger:focus-visible {
  outline: 2px solid var(--brand2);
  outline-offset: 3px;
}
.account-menu-wrap.open .account-chevron::before {
  transform: translate(-50%, -50%) rotate(180deg);
}
.account-menu-wrap.open .account-chevron {
  background: #ffffff12;
  border-color: #ffffff35;
}

.account-menu-wrap.open .account-chevron {
  transform: none;
}

.account-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 80;
  width: min(340px, calc(100vw - 24px));
  max-height: min(78vh, 660px);
  overflow: auto;
  padding: 13px;
  border: 1px solid #344258;
  border-radius: 19px;
  background: linear-gradient(155deg, #151e2d, #0c111b 88%);
  box-shadow: 0 24px 80px #000b;
  animation: account-pop 0.14s ease-out;
}

.account-menu-wrap.open .account-dropdown {
  display: block;
}

@keyframes account-pop {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.account-dropdown-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 5px 4px 13px;
}

.account-dropdown-ident {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.account-dropdown-ident strong {
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.account-dropdown-ident > span {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.account-dropdown-ident em {
  width: max-content;
  margin-top: 3px;
  padding: 3px 8px;
  border: 1px solid #ffffff30;
  border-radius: 99px;
  color: #c9ffb1;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.account-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid #ffffff3b;
  border-radius: 13px;
  background: linear-gradient(110deg, #ffffff13, #ffffff08);
}

.account-balance > span:first-child {
  display: grid;
  gap: 2px;
}
.account-balance small {
  color: var(--muted);
  font-size: 10px;
}
.account-balance strong {
  font:
    700 19px Inter,
    sans-serif;
  color: #d2ffb7;
}

.account-balance-action {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.account-balance-action b {
  font-size: 14px;
}

.account-microstats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 0 12px;
}

.account-microstats > div {
  display: grid;
  gap: 1px;
  padding: 9px 10px;
  border: 1px solid #ffffff10;
  border-radius: 11px;
  background: #ffffff03;
  min-width: 0;
}

.account-microstats strong {
  font:
    700 14px Inter,
    sans-serif;
  overflow-wrap: anywhere;
  color: #e8f3ff;
}
.account-microstats span {
  font-size: 9px;
  color: var(--muted);
}

.account-menu-items {
  display: grid;
  gap: 3px;
  padding-top: 8px;
  border-top: 1px solid #ffffff12;
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 11px;
  transition: background 0.16s;
  min-width: 0;
}

.account-menu-item:hover {
  background: #ffffff08;
}

.account-menu-icon {
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  background: #ffffff05;
  color: var(--brand);
  font-size: 15px;
  font-weight: 800;
}

.account-menu-item > span:nth-child(2) {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.account-menu-item strong {
  font-size: 11px;
  line-height: 1.35;
}
.account-menu-item small {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.4;
}

.account-menu-arrow {
  color: #73839b;
  font-size: 19px;
}

.account-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #ff77772a;
  border-radius: 11px;
  background: #ff77770b;
  color: #ffb6ae;
  font-weight: 800;
  font-size: 11px;
}

.account-logout:hover {
  background: #ff777718;
  border-color: #ff777755;
}

.account-logout span {
  font-size: 16px;
}

.account-demo-note {
  padding: 10px 4px 1px;
  color: rgb(255 255 255 / 70%);
  text-align: center;
  font-size: 9px;
  line-height: 1.45;
}

.mobile-auth-link {
  display: none !important;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid #ffffff26;
  border-radius: 20px;
  background:
    radial-gradient(400px 180px at 100% 0%, #ffffff12, transparent 75%),
    linear-gradient(145deg, #141e2a, #0e131d);
}

.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  border: 1px solid #ffffff55;
  border-radius: 21px;
  background: linear-gradient(145deg, #ffffff27, #ffffff16);
  color: #caffb2;
  font:
    800 23px Inter,
    sans-serif;
}

.profile-hero-copy {
  min-width: 0;
}
.profile-hero-copy h2 {
  font:
    700 24px Inter,
    sans-serif;
  margin: 6px 0 1px;
  overflow-wrap: anywhere;
}
.profile-hero-copy p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.profile-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-stats {
  margin-top: 16px;
}
.profile-stats .dash-stat strong {
  font-size: 19px;
  overflow-wrap: anywhere;
}
.profile-columns {
  margin-top: 18px;
  margin-bottom: 28px;
}
.profile-columns h2 {
  font:
    700 21px Inter,
    sans-serif;
  margin: 8px 0 14px;
}
.profile-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #ffffff10;
  font-size: 11px;
}
.profile-info-row span {
  color: var(--muted);
}
.profile-info-row strong,
.profile-info-row code {
  text-align: right;
  overflow-wrap: anywhere;
}
.profile-info-row code {
  font-size: 10px;
  color: var(--brand);
}
.profile-login {
  max-width: 600px;
  margin: 10px auto;
}

@media (max-width: 900px) {
  .account-trigger-copy {
    display: none;
  }
  .account-menu-trigger {
    gap: 6px;
    padding-right: 7px;
  }
  .account-chevron {
    font-size: 0;
    margin-left: 0;
  }
  .navright {
    gap: 6px;
  }
}

@media (max-width: 700px) {
  .account-menu-wrap {
    position: static;
  }
  .account-dropdown {
    position: absolute;
    right: 12px;
    top: calc(100% + 8px);
    width: min(340px, calc(100vw - 24px));
    max-height: calc(100vh - 92px);
  }
  .account-menu-trigger {
    border-radius: 12px;
    padding: 5px;
  }
  .account-avatar {
    height: 32px;
    width: 32px;
    flex-basis: 32px;
  }
  .account-chevron {
    display: grid;
    font-size: 0;
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    margin-left: 0;
  }
  .mobile-auth-link {
    display: block !important;
  }
  .profile-hero {
    align-items: flex-start;
    padding: 18px;
    gap: 13px;
  }
  .profile-avatar {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 18px;
  }
  .profile-hero-copy h2 {
    font-size: 20px;
  }
  .profile-hero-actions .btn {
    white-space: normal;
  }
  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* CTV wholesale inventory */

.partner-price-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff03;
}

.partner-price-pair > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.partner-price-pair small {
  font-size: 10px;
  color: var(--muted);
}

.partner-price-pair strong {
  font:
    700 17px Inter,
    sans-serif;
  color: var(--brand);
}

.partner-price-pair span {
  font-size: 12px;
  color: var(--muted);
}

.partner-stock-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0 12px;
  font-size: 11px;
  color: var(--muted);
}

.partner-stock-line strong {
  color: var(--text);
  font-size: 14px;
}

.partner-buy-button {
  width: 100%;
}

.partner-buy-panel {
  margin: 18px 0 28px;
}

.partner-buy-form {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(130px, 0.55fr);
  gap: 13px;
  align-items: end;
}

.partner-buy-form > .partner-purchase-summary {
  grid-column: 1/-1;
}

.partner-buy-form > button,
.partner-buy-form > small {
  grid-column: 1/-1;
}

.partner-purchase-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff04;
}

.partner-purchase-summary span {
  font-size: 10px;
  color: var(--muted);
}

.partner-purchase-summary strong {
  font-size: 14px;
  color: var(--brand);
}

.partner-key-code {
  word-break: break-all;
  color: #d0ffba;
  font-size: 11px;
}

.partner-price-edit {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 190px;
}

.partner-price-edit input {
  width: 116px;
  min-width: 0;
  padding: 8px 9px;
}

.partner-price-edit .btn {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .partner-buy-form {
    grid-template-columns: 1fr;
  }
  .partner-purchase-summary {
    grid-template-columns: 1fr 1fr;
  }
  .partner-price-pair strong {
    font-size: 15px;
  }
  .partner-price-edit {
    min-width: 165px;
  }
  .partner-price-edit input {
    width: 100px;
  }
}

/* v11: category-led catalog and full product/key inventory management */

.category-showcase-list {
  display: block;
  min-width: 0;
}

.category-showcase {
  margin: 20px 0 36px;
  padding: 22px;
  border: 1px solid #ffffff12;
  border-radius: 22px;
  background: linear-gradient(145deg, #111927b8, #0b111bba);
  box-shadow: 0 18px 55px #0002;
}

.category-showcase:first-child {
  margin-top: 0;
}

.category-showcase-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ffffff12;
}

.category-showcase-head h2 {
  margin: 5px 0 3px;
  font:
    700 clamp(20px, 2.3vw, 27px) Inter,
    sans-serif;
  letter-spacing: -0.5px;
}

.category-showcase-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.category-showcase-head .eyebrow {
  color: var(--brand);
}

.category-see-all {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand);
  white-space: nowrap;
}

.category-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-product-top {
  align-items: start;
  gap: 16px;
}

.admin-product-form .section-head {
  align-items: center;
}

.admin-product-form textarea,
.admin-product-form input,
.admin-product-form select {
  width: 100%;
}

.admin-product-form .actions {
  margin-top: 15px;
  flex-wrap: wrap;
}

.admin-stock-manager {
  margin-top: 18px;
  overflow: hidden;
}

.stock-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}

.stock-toolbar label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.stock-toolbar select {
  min-width: min(320px, 100%);
}

.key-stock-table td {
  vertical-align: middle;
}

.order-arrows {
  display: flex;
  gap: 4px;
  grid-column: 1/-1;
}

.order-arrows .btn {
  flex: 1;
}

.product-row-actions {
  min-width: 145px;
  flex-wrap: wrap;
}

.product-row-actions .btn {
  white-space: nowrap;
}

.admin-products-table .section-head {
  align-items: end;
}

@media (max-width: 900px) {
  .category-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-showcase {
    padding: 17px;
  }
}

@media (max-width: 700px) {
  .category-product-grid {
    grid-template-columns: 1fr;
  }
  .category-showcase {
    margin: 14px 0 24px;
    padding: 13px;
    border-radius: 17px;
  }
  .category-showcase-head {
    align-items: start;
    flex-direction: column;
    gap: 9px;
  }
  .category-see-all {
    align-self: flex-start;
  }
  .stock-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .stock-toolbar select {
    width: 100%;
  }
  .admin-products-table .section-head {
    align-items: start;
    flex-direction: column;
  }
}

/* v12: compact admin controls, numbered key entry and category-specific ordering */

#admin-dashboard textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  resize: none !important;
  overflow-y: auto;
  line-height: 1.55;
}

#admin-dashboard input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

#admin-dashboard input[type="number"]::-webkit-inner-spin-button,
#admin-dashboard input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.numbered-textarea {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #090e17;
}

.numbered-textarea:focus-within {
  border-color: var(--brand);
}

.numbered-textarea-gutter {
  box-sizing: border-box;
  margin: 0;
  padding: 12px 8px 12px 4px;
  min-height: 168px;
  max-height: 168px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  color: #65758b;
  background: #ffffff03;
  text-align: right;
  white-space: pre;
  font:
    12px/1.55 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  user-select: none;
}

.numbered-textarea textarea {
  display: block;
  min-height: 168px;
  max-height: 168px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 12px !important;
  outline: none;
  box-shadow: none !important;
  resize: none !important;
  overflow: auto;
  font:
    12px/1.55 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  white-space: pre;
  tab-size: 2;
}

.numbered-textarea textarea:focus {
  border: 0 !important;
}

.key-edit-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 15px;
  margin: 12px 0 16px;
  border: 1px solid #ffffff35;
  border-radius: 14px;
  background: #ffffff08;
}

.key-edit-form .field {
  margin: 0;
}

.key-edit-form input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  font:
    12px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}

.key-stock-code {
  display: block;
  width: max-content;
  max-width: min(620px, 100%);
  padding: 8px 10px;
  border: 1px solid #ffffff12;
  border-radius: 8px;
  background: #080d15;
  color: #d4e2f8;
  font:
    12px/1.5 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  white-space: normal;
  overflow-wrap: anywhere;
}

.key-number-col,
.key-number-cell {
  text-align: center !important;
  width: 64px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.key-stock-table {
  min-width: 720px;
}

.key-stock-table td {
  vertical-align: middle;
}

.admin-category-group {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid #ffffff12;
  border-radius: 17px;
  background: #ffffff03;
}

.admin-category-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ffffff12;
}

.admin-category-heading h3 {
  margin: 4px 0 0;
  font:
    700 18px Inter,
    sans-serif;
}
.admin-category-heading > div:first-child {
  flex: 1 1 180px;
  min-width: 0;
}
.admin-category-heading h3 {
  overflow-wrap: anywhere;
}

.admin-category-heading .eyebrow {
  color: var(--brand);
}
.admin-category-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-category-actions .order-arrows .btn {
  min-width: 40px;
  min-height: 40px;
}

.admin-category-group .table-wrap {
  border-radius: 11px;
}

.admin-category-group table {
  min-width: 790px;
}

.admin-category-group .order-arrows {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  min-width: 84px;
}

.admin-category-group .order-arrows .btn {
  flex: 0 0 38px;
  width: 38px;
  height: 36px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.admin-category-group .order-arrows .btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.admin-category-group .product-row-actions {
  min-width: 165px;
}

.admin-stock-manager .section-head p {
  margin: 6px 0 0;
  max-width: 650px;
}

#admin-dashboard input[type="text"],
#admin-dashboard input:not([type]),
#admin-dashboard select {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 700px) {
  .admin-category-group {
    padding: 11px;
    margin-top: 13px;
  }
  .admin-category-heading {
    align-items: flex-start;
  }
  .numbered-textarea {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .numbered-textarea-gutter {
    padding-inline: 5px;
  }
  .numbered-textarea textarea {
    padding: 10px !important;
  }
  .key-edit-form {
    padding: 11px;
  }
}

/* Typography hardening v15: force Inter consistently across every visible UI element. */

html,
body,
body *,
body *::before,
body *::after {
  font-family: "Inter", "Segoe UI", Arial, system-ui, sans-serif !important;
}

/* MOD tool navigation link */

.navlinks .nav-mod-link {
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.35px;
}

.navlinks .nav-mod-link:hover {
  filter: brightness(1.15);
}

/* BEU Store v21 – demo sales reports */

.report-dashboard {
  display: grid;
  gap: 18px;
  margin: 16px 0 28px;
}
.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.report-head h2 {
  margin: 6px 0;
}
.report-head p {
  margin: 0;
}
.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.report-stat {
  min-width: 0;
  border: 1px solid var(--border, #283642);
  background: var(--panel, #141e29);
  border-radius: 15px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.report-stat > span {
  font-size: 12px;
  color: var(--muted, #a5b2bf);
}
.report-stat strong {
  font-size: clamp(16px, 2vw, 23px);
  overflow-wrap: anywhere;
}
.report-stat small {
  font-size: 11px;
  color: var(--muted, #a5b2bf);
}
.report-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.report-panel h3 {
  margin: 0 0 18px;
  font-size: 16px;
}
.report-bars {
  display: grid;
  gap: 14px;
}
.report-bar-row {
  display: grid;
  grid-template-columns: minmax(85px, 1fr) minmax(70px, 2fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.report-bar-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-bar-row > strong {
  text-align: right;
  font-size: 12px;
  white-space: nowrap;
}
.report-bar-track {
  height: 9px;
  border-radius: 9px;
  background: rgb(255 255 255 / 10%);
  overflow: hidden;
}
.report-bar-track > div {
  height: 100%;
  border-radius: 9px;
  background: linear-gradient(90deg, #f6b8d0, #e6c4f5);
}
[hidden] {
  display: none !important;
}
@media (max-width: 820px) {
  .report-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-two-col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .report-stat {
    padding: 13px;
  }
  .report-bar-row {
    grid-template-columns: 75px minmax(45px, 1fr) auto;
    gap: 6px;
  }
}

/* v22 - product type selector */

#partner-price-field[hidden] {
  display: none !important;
}

/* v24: product availability & activity */

.product-sales-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: -4px 0 14px;
}
.product-sales-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  line-height: 1.5;
  padding: 5px 9px;
  border: 1px solid #ffffff18;
  border-radius: 9px;
  background: #ffffff05;
  color: #b7c6d7;
}
.product-sales-meta :is(.in-stock, .out-stock)::before {
  content: "";
  flex: 0 0 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.product-sales-meta .in-stock {
  color: #9cf36b;
  border-color: #9cf36b35;
  background: #9cf36b0a;
}
.product-sales-meta .out-stock {
  color: #ffa6a6;
  border-color: #ff77772e;
  background: #ff777710;
}
.stock-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.stock-head-actions button {
  white-space: normal;
}
.modal {
  scrollbar-width: thin;
  scrollbar-color: #888 transparent;
  scrollbar-gutter: stable;
}
.modal::-webkit-scrollbar {
  width: 7px;
}
.modal::-webkit-scrollbar-track {
  background: #1b1b1d;
  border-radius: 8px;
}
.modal::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 12px;
  border: 1px solid #242427;
}
.modal::-webkit-scrollbar-thumb:hover {
  background: var(--text);
}

/* v24: custom accessible-looking menus using the original form select as source of truth */

.beu-select {
  position: relative;
  min-width: 0;
}
.beu-select select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  left: 2px;
  bottom: 2px;
  padding: 0 !important;
  border: 0 !important;
}
.beu-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 10px 13px;
  color: #e5f0fc;
  background: #0d1521;
  border: 1px solid var(--line);
  border-radius: 11px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.beu-select-trigger:hover,
.beu-select-trigger[aria-expanded="true"] {
  border-color: var(--text);
  background: #142027;
}
.beu-select-trigger:focus-visible {
  outline: 2px solid rgb(255 255 255 / 80%);
  outline-offset: 2px;
}
.beu-select-trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.beu-select-chevron {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 12px;
}
.beu-select-menu {
  position: fixed;
  z-index: 9999;
  background: #111c29;
  border: 1px solid #365062;
  border-radius: 13px;
  padding: 5px;
  box-shadow: 0 18px 55px #000a;
  overflow: auto;
  max-height: min(320px, 55vh);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #4b6576 transparent;
}
.beu-select-option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  color: #d7e4f1;
  border: 0;
  border-radius: 8px;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
  white-space: normal;
}
.beu-select-option:hover,
.beu-select-option:focus-visible {
  outline: none;
  background: #243a3f;
  color: #fff;
}
.beu-select-option[aria-selected="true"] {
  background: #ffffff20;
  color: var(--text);
  font-weight: 800;
}
.beu-select-trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.stock-toolbar .beu-select {
  min-width: min(320px, 100%);
  flex: 1;
}
.toolbar .beu-select {
  min-width: 165px;
}
.field .beu-select {
  width: 100%;
}
.beu-select-menu::-webkit-scrollbar {
  width: 6px;
}
.beu-select-menu::-webkit-scrollbar-thumb {
  background: rgb(255 255 255 / 25%);
  border-radius: 10px;
}

/* v25 — quantity and explicit confirmation */

.checkout-quantity-row {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}

.checkout-quantity-row .btn {
  min-width: 42px;
  min-height: 44px;
  padding: 8px 12px;
}

.checkout-quantity-row input {
  width: 88px;
  min-width: 70px;
  text-align: center;
  font-weight: 800;
  appearance: textfield;
  -moz-appearance: textfield;
}

.checkout-quantity-row input::-webkit-inner-spin-button,
.checkout-quantity-row input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.checkout-quantity-row .tiny {
  margin-left: 6px;
}

.checkout-confirm-block {
  background: #101c24;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  margin: 14px 0;
}

.checkout-confirm-block .checkout-confirm-title {
  font-weight: 800;
  margin-bottom: 6px;
}

.checkout-confirm-block label {
  display: block;
  font-weight: 650;
  font-size: 13px;
  margin: 12px 0 7px;
}

.checkout-confirm-block input {
  width: 100%;
  letter-spacing: 0.04em;
}

.checkout-confirm-block small {
  display: block;
  margin-top: 6px;
}

#checkout-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: saturate(0.65);
}

.copy-key {
  margin-bottom: 7px;
}
.copy-key code {
  overflow-wrap: anywhere;
}

/* v26 — checkout confirmation input, consistent with BEU STORE dark inputs */

.checkout-confirm-block #checkout-confirm-input {
  display: block;

  box-sizing: border-box;

  width: 100%;

  min-width: 0;

  min-height: 48px;

  padding: 12px 14px;

  border: 1px solid var(--line);

  border-radius: 12px;

  outline: none;

  background: rgb(18 20 23 / 58%);

  color: var(--text);

  -webkit-text-fill-color: var(--text);

  caret-color: var(--text);

  font:
    600 14px/1.4 Inter,
    system-ui,
    sans-serif;

  letter-spacing: 0.015em;

  appearance: none;

  -webkit-appearance: none;

  box-shadow: none;

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.checkout-confirm-block #checkout-confirm-input::placeholder {
  color: #7e92a6;

  -webkit-text-fill-color: #7e92a6;

  opacity: 1;
}

.checkout-confirm-block #checkout-confirm-input:hover {
  border-color: rgb(255 255 255 / 40%);
}

.checkout-confirm-block #checkout-confirm-input:focus,
.checkout-confirm-block #checkout-confirm-input:focus-visible {
  border-color: var(--text);

  box-shadow: 0 0 0 3px rgb(255 255 255 / 14%);

  background: rgb(18 20 23 / 68%);
}

.checkout-confirm-block #checkout-confirm-input:-webkit-autofill,
.checkout-confirm-block #checkout-confirm-input:-webkit-autofill:hover,
.checkout-confirm-block #checkout-confirm-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #242427 inset;

  -webkit-text-fill-color: var(--text);

  caret-color: var(--text);
}

/* v27: Remove number increment/decrement controls (including wallet top-up). */
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* v28 — keep wallet top-up field within its panel */
.wallet-columns,
.wallet-columns > *,
.wallet-columns .panel,
#wallet-topup-form,
#wallet-topup-form .field {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
#wallet-topup-form {
  width: 100%;
}
#wallet-topup-form #topup-amount {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 13px;
}

/* Keep the account visibility control beside the credentials column title. */
.stock-credentials-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.stock-password-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff05;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s;
}
.stock-password-toggle svg {
  flex-shrink: 0;
}
.stock-password-toggle:hover {
  color: var(--text);
  border-color: rgb(255 255 255 / 35%);
  background: rgb(255 255 255 / 8%);
}
.stock-password-toggle[aria-pressed="true"] {
  color: var(--brand);
  border-color: var(--line);
  background: rgb(255 255 255 / 8%);
}
.stock-password-toggle:focus-visible {
  outline: 2px solid var(--brand2);
  outline-offset: 3px;
}

/* Shared confirmation and input dialog; native dialog keeps keyboard focus inside. */
.store-action-dialog {
  width: min(480px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  overflow: auto;
  margin: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  font: inherit;
}
.store-action-dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(4px);
}
.store-action-dialog .modal-head {
  margin-bottom: 12px;
}
.store-action-dialog h2 {
  margin: 4px 0 0;
  font-size: 21px;
  line-height: 1.35;
}
.store-action-dialog p {
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 22px;
}
.store-action-dialog .actions {
  justify-content: flex-end;
}
.store-action-dialog .field input {
  min-width: 0;
  width: 100%;
}
@media (max-width: 700px) {
  .store-action-dialog {
    padding: 20px;
  }
  .store-action-dialog .actions .btn {
    flex: 1;
  }
}

/* Admin and checkout layout refinement, using the existing store palette. */
.admin-product-top {
  align-items: start;
  gap: 22px;
}
.admin-product-form > .section-head {
  margin-bottom: 8px;
}
.admin-product-form > p {
  margin: 0 0 22px;
}
.admin-form-group {
  min-width: 0;
  margin: 0 0 24px;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.admin-form-group legend {
  padding: 0 10px 0 0;
  font-size: 13px;
  font-weight: 750;
  color: var(--brand2);
}
.admin-form-group > .field:last-child,
.admin-form-group > .grid-2 > .field {
  margin-bottom: 0;
}
.admin-form-group > p {
  margin: 0 0 14px;
}
.admin-form-group .grid-2 {
  gap: 14px;
}
.admin-form-actions {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.admin-stock-manager > .section-head {
  align-items: center;
  gap: 18px;
}
.admin-stock-manager > .section-head p {
  max-width: 620px;
  margin-bottom: 0;
  line-height: 1.6;
}
.admin-stock-manager .stock-toolbar {
  padding: 14px;
  background: #080d154d;
  border: 1px solid #ffffff0c;
  border-radius: 12px;
  gap: 12px;
}
.admin-stock-manager .stock-toolbar select {
  flex: 1;
  min-width: 0;
}
.admin-stock-manager .key-stock-table {
  table-layout: fixed;
  min-width: 650px;
}
.admin-stock-manager .key-stock-table th:first-child {
  width: 58px;
}
.admin-stock-manager .key-stock-table th:nth-child(3) {
  width: 120px;
}
.admin-stock-manager .key-stock-table th:nth-child(4) {
  width: 144px;
}
.admin-stock-manager .key-stock-code {
  max-width: 100%;
  line-height: 1.7;
}
.admin-stock-manager .key-stock-table td {
  padding-top: 15px;
  padding-bottom: 15px;
}
.admin-stock-manager .key-stock-table tbody tr:hover {
  background: #ffffff02;
}
.field-error {
  display: block;
  margin-top: 7px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.numbered-textarea:has(textarea[aria-invalid="true"]) {
  border-color: var(--danger);
}
.checkout-dialog {
  width: min(560px, 100%);
  padding: 26px;
}
.checkout-dialog .modal-head {
  margin-bottom: 10px;
}
.checkout-dialog #checkout-product-note {
  margin: 0 0 20px;
}
.checkout-dialog #checkout-account {
  background: #ffffff03;
  color: var(--muted);
}
.checkout-dialog .order-summary {
  padding: 18px;
  margin: 20px 0;
  border: 1px solid #ffffff26;
  background: #ffffff05;
  gap: 9px;
}
.checkout-dialog .summary-line.total {
  margin-top: 4px;
  padding-top: 13px;
  align-items: center;
}
.checkout-dialog #checkout-total {
  color: var(--brand);
  font-size: 25px;
  line-height: 1.25;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.checkout-dialog .checkout-demo-note {
  font-size: 12px;
  padding: 11px 13px;
  line-height: 1.6;
}
.checkout-dialog .checkout-confirm-block {
  padding: 15px;
  background: #ffffff02;
  border-color: var(--line);
}
.checkout-dialog #checkout-submit {
  min-height: 48px;
  white-space: normal;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .admin-product-top {
    grid-template-columns: 1fr;
  }
  .admin-product-top > #add-keys {
    width: 100%;
  }
}
@media (max-width: 700px) {
  .admin-form-group .grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .admin-form-actions .btn {
    flex: 1;
  }
  .admin-stock-manager > .section-head {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .admin-stock-manager .stock-toolbar {
    padding: 12px;
  }
  .checkout-dialog {
    padding: 20px;
    max-height: calc(100dvh - 36px);
  }
  .checkout-dialog #checkout-total {
    font-size: 23px;
  }
  .checkout-dialog .order-summary {
    padding: 15px;
  }
  .checkout-dialog .payment-option {
    min-width: 0;
  }
  .checkout-dialog .summary-line {
    gap: 12px;
  }
}

/* Finance separates actual money, customer balances and sales results. */
.finance-dashboard {
  min-width: 0;
}
#admin-dashboard > .admin-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 22px 0;
}
#admin-dashboard > .admin-tabs .btn {
  min-width: 0;
  min-height: 46px;
  padding: 10px 8px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#admin-dashboard > .admin-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
#admin-dashboard [data-save-role] {
  display: flex;
  width: max-content;
  margin-top: 10px;
}
.finance-dashboard > .section-head > div:first-child {
  flex: 1;
  min-width: 0;
}
.finance-dashboard > .section-head > .actions {
  flex-shrink: 0;
  align-self: flex-start;
}
@media (max-width: 900px) {
  #admin-dashboard > .admin-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  #admin-dashboard > .admin-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .finance-dashboard > .section-head > .actions {
    width: 100%;
  }
  .finance-dashboard > .section-head > .actions .btn {
    flex: 1;
    white-space: normal;
  }
}
.finance-dashboard details {
  min-width: 0;
  max-width: 100%;
}
.finance-dashboard > .panel + .panel,
.finance-dashboard details > .panel + .panel,
.finance-dashboard .finance-forms + .panel {
  margin-top: 20px;
}
.finance-dashboard summary {
  cursor: pointer;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.finance-dashboard details[open] > summary {
  margin-bottom: 18px;
}
.finance-dashboard .report-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.finance-dashboard > .section-head {
  align-items: start;
}
.finance-dashboard > .notice {
  margin: 16px 0;
}
.finance-stats {
  margin: 20px 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.finance-stats .report-stat strong {
  overflow-wrap: anywhere;
}
.finance-forms {
  align-items: start;
  margin-top: 22px;
  gap: 20px;
}
.finance-form-stack {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.finance-dashboard .panel,
.finance-dashboard form,
.finance-dashboard .field {
  min-width: 0;
}
.finance-dashboard input,
.finance-dashboard select {
  max-width: 100%;
  width: 100%;
  min-width: 0;
}
.finance-dashboard .field {
  margin-bottom: 14px;
}
.finance-dashboard .notice {
  line-height: 1.65;
}
.finance-cost-form {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  margin: 20px 0;
}
.finance-cost-form .field {
  margin: 0;
}
.finance-cost-form .btn {
  justify-self: start;
  margin-bottom: 1px;
}
.finance-dashboard table {
  min-width: 740px;
}
.finance-dashboard td {
  overflow-wrap: anywhere;
  max-width: 340px;
}
@media (max-width: 900px) {
  .finance-forms {
    grid-template-columns: 1fr;
  }
  .finance-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .finance-dashboard > .section-head {
    flex-direction: column;
    gap: 12px;
  }
  .finance-cost-form {
    grid-template-columns: 1fr;
  }
  .finance-cost-form .btn {
    justify-self: stretch;
  }
  .finance-dashboard .report-stat-grid {
    grid-template-columns: 1fr;
  }
  .finance-dashboard .report-stat strong {
    font-size: 24px;
  }
}

/* Neutral smoked glass lets the wallpaper show through like the reference. */
body:has(.site-video-background) {
  --muted: #fff;
}
body:has(.site-video-background) :is(.panel, .product-card, .stat, .report-stat, .dash-stat, .support-card, .category-showcase, .auth-side, .profile-hero, .table-wrap) {
  background: rgb(18 20 23 / 52%);
  border-color: rgb(255 255 255 / 18%);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
body:has(.site-video-background) .wallet-balance-panel {
  background: rgb(18 20 23 / 52%);
  border-color: rgb(255 255 255 / 18%);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  box-shadow: 0 12px 36px rgb(0 0 0 / 12%);
}
body:has(.site-video-background) .topbar {
  background: rgb(18 20 23 / 62%);
  backdrop-filter: blur(6px);
}

/* Neutral reading text, keeping action and status colors distinct. */
.field label,
.features,
.category-see-all,
.beu-select-trigger,
.beu-select-option,
.license-option-copy strong,
.license-heading h2,
.license-all-link {
  color: var(--text);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: .8;
}

/* Neutral decorative edges for the smoked-glass theme. */
.account-menu-trigger,
.account-avatar,
.account-dropdown-ident em,
.account-balance,
.profile-avatar,
.wallet-mark,
.wallet-nav,
.license-panel,
.license-count,
.license-option-symbol,
.license-option-wide,
.license-option-wide .license-option-symbol,
.license-info-icon,
.source-icon,
.copy-key,
.product-card .pill,
.key-edit-form,
.checkout-dialog .order-summary {
  border-color: rgb(255 255 255 / 20%);
}
.account-menu-trigger,
.account-avatar,
.profile-avatar,
.account-balance {
  background: rgb(255 255 255 / 6%);
}
.account-avatar,
.profile-avatar,
.account-dropdown-ident em,
.account-chevron {
  color: var(--text);
}
.account-menu-trigger:hover,
.account-menu-wrap.open .account-menu-trigger,
.account-menu-wrap.open .account-chevron,
.product-card:hover,
.license-option:hover,
.license-option:focus-visible,
.beu-select-trigger:hover,
.beu-select-trigger[aria-expanded="true"] {
  border-color: rgb(255 255 255 / 40%);
  background-color: rgb(255 255 255 / 8%);
}
.account-chevron::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6L8 10L12 6' fill='none' stroke='%23f5f5f5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Blush accents; body text stays white and stock/status colors remain semantic. */
.wallet-balance-panel h2,
.license-option-price,
.license-option-copy small,
.license-kicker,
.license-count,
.license-option-symbol,
.license-all-link:hover,
.license-option:hover .license-option-arrow,
.license-option:focus-visible .license-option-arrow,
.partner-key-code,
.profile-avatar {
  color: var(--brand);
}
.brand-mark,
.license-emblem {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}
.product-symbol,
.icon-box,
.wallet-mark,
.source-icon,
.license-option-symbol {
  background: linear-gradient(145deg, #ffffff1c, #ffffff14);
}
.tag.ok {
  color: #9cf36b;
}

/* Selected glass tabs use a brighter neutral surface, like the reference. */
.admin-tabs .btn:not(.secondary),
.report-tabs .btn:not(.secondary) {
  background: rgb(255 255 255 / 24%);
  border-color: rgb(255 255 255 / 28%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%);
}
.btn:focus-visible {
  outline: 2px solid rgb(255 255 255 / 80%);
  outline-offset: 3px;
}
.btn.danger:hover:not(:disabled) {
  background: rgb(255 119 119 / 20%);
  border-color: rgb(255 119 119 / 45%);
}

/* Complete the glass treatment across storefront cards and form controls. */
body:has(.site-video-background) :is(.hero-art, .license-panel, .showcase-line, .partner-price-pair, .partner-purchase-summary, .payment-choice, .payment-option, .order-summary, .key-edit-form, .demo-login) {
  background: rgb(18 20 23 / 52%);
  border-color: rgb(255 255 255 / 18%);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
body:has(.site-video-background) :is(.modal, .store-action-dialog, .account-dropdown, .beu-select-menu) {
  background: rgb(24 24 27 / 90%);
  border-color: rgb(255 255 255 / 22%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
body:has(.site-video-background) :is(.field input, .field select, .field textarea, .toolbar input, .toolbar select, .beu-select-trigger, .numbered-textarea, .key-stock-code, #checkout-confirm-input) {
  background: rgb(18 20 23 / 58%);
  color: var(--text);
}
body:has(.site-video-background) :is(.field input, .field select, .field textarea, .toolbar input, .toolbar select, .beu-select-trigger):not([aria-invalid="true"]) {
  border-color: rgb(255 255 255 / 22%);
}
body:has(.site-video-background) :is(.field input, .field select, .field textarea, .toolbar input, .toolbar select):focus:not([aria-invalid="true"]),
body:has(.site-video-background) .beu-select-trigger[aria-expanded="true"] {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgb(255 255 255 / 12%);
}
body:has(.site-video-background) .numbered-textarea textarea {
  background: transparent !important;
}
body:has(.site-video-background) .license-option,
body:has(.site-video-background) .license-option-wide {
  background: rgb(255 255 255 / 5%);
  border-color: rgb(255 255 255 / 18%);
}
body:has(.site-video-background) .license-option:hover,
body:has(.site-video-background) .license-option:focus-visible {
  background: rgb(255 255 255 / 12%);
  border-color: rgb(255 255 255 / 36%);
}
.license-glow {
  background: radial-gradient(circle, #ffffff14, transparent 72%);
}
.license-live-dot {
  background: var(--brand);
  box-shadow: 0 0 10px rgb(255 255 255 / 25%);
}
.license-count {
  background: rgb(255 255 255 / 6%);
}
.license-all-link span,
.beu-select-chevron {
  color: var(--brand);
}
.beu-select-option:hover,
.beu-select-option:focus-visible,
.beu-select-option[aria-selected="true"] {
  background: rgb(255 255 255 / 12%);
  color: var(--text);
}
body:has(.site-video-background) .payment-option:has(input:checked) {
  border-color: var(--brand);
  background: rgb(255 255 255 / 8%);
}
.field select option,
.toolbar select option {
  background: #242427;
  color: var(--text);
}

/* Shared footer: a contained glass surface with clear navigation. */
[data-site-footer] {
  margin-top: 48px;
  padding: 0 0 32px;
  border: 0;
  color: #fff;
}
.footer-inner {
  display: block;
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 22px;
  background: rgb(18 20 23 / 64%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}
.footer-about p {
  margin: 12px 0 0;
  line-height: 1.7;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-links a {
  padding: 9px 13px;
  border-radius: 10px;
  background: rgb(255 255 255 / 6%);
  transition: background .18s;
}
.footer-links a:hover {
  background: rgb(255 255 255 / 16%);
}
.footer-links a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 14%);
  font-size: 12px;
}
.footer-bottom p {
  margin: 0;
}
[data-site-footer] :is(a, p, .legal),
body:has(.site-video-background) .license-panel :is(strong, small, h2, p, a, .license-brandcopy, .license-count, .license-kicker, .license-option-symbol, .license-option-price, .license-option-arrow, .license-all-link span, .license-demo-note, .license-info-icon) {
  color: #fff;
}
[data-site-footer] .brand-mark,
.license-panel .license-emblem {
  color: #fff;
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 22%);
  box-shadow: none;
}
.license-panel .license-live-dot {
  background: #fff;
  box-shadow: none;
}
@media (max-width: 700px) {
  [data-site-footer] { margin-top: 32px; padding-bottom: 24px; }
  .footer-inner { padding: 22px 18px; }
  .footer-main { flex-direction: column; align-items: stretch; gap: 22px; }
  .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-links a { text-align: center; }
  .footer-bottom { flex-direction: column; gap: 10px; line-height: 1.7; }
}

/* Monochrome typography; stock availability keeps its red/green meaning. */
.gradient {
  background: none;
  color: #fff;
}
.brand-mark,
.license-emblem,
.product-symbol,
.icon-box,
.wallet-mark,
.source-icon,
.license-option-symbol {
  color: #fff;
  background: rgb(255 255 255 / 8%);
}
/* Header B matches the MOD welcome logo. */
[data-site-header] .brand-mark {
  color: #081018;
  background: linear-gradient(135deg, #f6b8d0, #e6c4f5);
  box-shadow: 0 0 16px rgb(246 184 208 / 35%),
    0 0 32px rgb(230 196 245 / 16%),
    inset 0 1px 0 rgb(255 255 255 / 35%);
}
.product-sales-meta span {
  color: #fff;
}
.product-sales-meta .in-stock {
  color: #62dc8a;
  border-color: rgb(50 170 93 / 55%);
  background: rgb(20 100 48 / 22%);
}
.product-sales-meta .out-stock {
  color: #ff7878;
  border-color: rgb(210 60 60 / 55%);
  background: rgb(130 25 25 / 22%);
}

/* Search and category filter share the same control height. */
.toolbar:has(#search-products) {
  align-items: stretch;
}
#search-products,
.toolbar:has(#search-products) .beu-select-trigger {
  height: 50px;
  min-height: 50px;
  padding: 12px 13px;
  border-radius: 11px;
}
.toolbar:has(#search-products) .beu-select {
  display: flex;
  align-items: stretch;
}

/* Orders: aligned search, readable totals and clearly separated delivery rows. */
.orders-page > .panel.wide {
  width: 100%;
  max-width: none;
  padding: 24px;
}
#order-search-form .grid-2 {
  gap: 20px;
}
#order-search-form .field input {
  height: 50px;
}
#order-search-form .actions {
  gap: 10px;
  padding-top: 4px;
}
#order-account {
  text-overflow: ellipsis;
}
.orders-page > .section {
  padding-top: 24px;
  padding-bottom: 24px;
}
#order-results {
  display: grid;
  gap: 24px;
}
.orders-page .order-card {
  padding: 26px;
  overflow: hidden;
}
.orders-page .order-card > .section-head {
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}
.orders-page .order-card > .section-head > div:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.orders-page .order-card h3 {
  font-size: 21px;
}
.orders-page .order-card .tiny {
  line-height: 1.8;
}
.orders-page .order-card .tag {
  white-space: nowrap;
  padding: 6px 10px;
}
body:has(.site-video-background) .orders-page .order-summary {
  background: rgb(18 20 23 / 62%);
  border: 1px solid rgb(255 255 255 / 14%);
  padding: 18px 20px;
  margin: 0 0 24px;
  gap: 12px;
}
.orders-page .summary-line {
  gap: 16px;
  align-items: baseline;
}
.orders-page .summary-line > span:last-child {
  text-align: right;
}
.orders-page .summary-line.total {
  margin-top: 4px;
  padding-top: 14px;
  border-color: rgb(255 255 255 / 18%);
  font-size: 18px;
}
.orders-page .copy-key {
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid rgb(255 255 255 / 18%);
  background: rgb(18 20 23 / 54%);
  gap: 16px;
}
.orders-page .copy-key code {
  min-width: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.7;
}
.orders-page .copy-key .btn {
  flex-shrink: 0;
}
.orders-page .order-card > .notice {
  margin: 20px 0 0;
  line-height: 1.7;
}
@media (max-width: 700px) {
  .orders-page > .panel.wide,
  .orders-page .order-card { padding: 20px 16px; }
  .orders-page .order-card > .section-head { flex-direction: column; gap: 12px; }
  #order-search-form .actions .btn { flex: 1; white-space: normal; }
  .orders-page .copy-key { flex-wrap: wrap; padding: 12px; }
  .orders-page .copy-key code { flex: 1 1 100%; }
  .orders-page .copy-key .btn { margin-left: auto; }
  body:has(.site-video-background) .orders-page .order-summary { padding: 16px 12px; }
}

/* Lighter product surfaces against the softly blurred wallpaper. */
body:has(.site-video-background) .product-card {
  background: rgb(18 20 23 / 38%);
}

/* Blush only for branding and hero highlights; product text remains white. */
.brand > .gradient,
.brand > span > .gradient,
.hero h1,
.hero .eyebrow {
  color: #f6b8d0;
}
.hero h1.shop-title,
.hero .eyebrow {
  color: #fff;
}
.brand .gradient,
.hero h1 .gradient {
  background: linear-gradient(105deg, #f6b8d0, #e6c4f5);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
body:has(.site-video-background) .license-option-wide .license-option-symbol {
  background: rgb(255 255 255 / 8%);
  border-color: rgb(255 255 255 / 20%);
  color: #fff;
}

/* Applied only when the reveal controller and observers are available. */
.card-reveal-pending {
  opacity: 0;
  translate: 0 -96px;
  scale: 0.76;
}
.card-reveal-pending.card-reveal-intro {
  translate: 0 46px;
}
.card-reveal-pending.card-reveal-navigation {
  translate: 0 8px;
  scale: 1;
}
.card-reveal-pending.card-reveal-text {
  translate: 0 20px;
  scale: 1;
}
/* Store dialogs and option lists live outside main, so they enter when opened. */
body:has([data-site-header]) .modal-backdrop.open > .modal,
body:has([data-site-header]) .store-action-dialog[open],
body:has([data-site-header]) .beu-select-menu {
  animation: store-overlay-enter 220ms ease-out both;
}
@keyframes store-overlay-enter {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes store-overlay-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .card-reveal-pending,
  .card-reveal-pending.card-reveal-intro {
    translate: 0 26px;
    scale: 0.94;
  }
  .card-reveal-pending.card-reveal-navigation,
  .card-reveal-pending.card-reveal-text {
    translate: none;
    scale: 1;
  }
  body:has([data-site-header]) .modal-backdrop.open > .modal,
  body:has([data-site-header]) .store-action-dialog[open],
  body:has([data-site-header]) .beu-select-menu {
    animation-name: store-overlay-fade;
    animation-duration: 120ms;
  }
}
@media print {
  .card-reveal-pending,
  .card-reveal-pending.card-reveal-intro,
  .card-reveal-pending.card-reveal-navigation,
  .card-reveal-pending.card-reveal-text {
    opacity: 1;
    translate: none;
    scale: none;
  }
}
