:root {
  --green: #91f20d;
  --green-strong: #72d900;
  --green-soft: rgba(145, 242, 13, 0.16);
  --black: #030504;
  --black-2: #080c0a;
  --charcoal: #101612;
  --navy: #031432;
  --navy-2: #052453;
  --navy-3: #0a3475;
  --gold: #ffc83f;
  --gold-light: #ffe07b;
  --gold-deep: #d8920f;
  --sand: #efc477;
  --sand-light: #ffe0a6;
  --white: #ffffff;
  --text: #f7faf8;
  --muted: rgba(240, 247, 242, 0.67);
  --navy-text: #061b3d;
  --danger: #ee4b55;
  --danger-dark: #b82631;
  --success: #28b869;
  --warning: #e6a01c;
  --line-light: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(5, 22, 50, 0.15);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 16px 50px rgba(0, 0, 0, 0.2);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 42px;
  --admin-bg: #0b1110;
  --admin-panel: #111a17;
  --admin-panel-2: #17211e;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.dialog-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
}

a {
  color: inherit;
}

img,
picture,
svg {
  display: block;
}

img {
  max-width: 100%;
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

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

::selection {
  color: #061005;
  background: var(--green);
}

/* Boot and maintenance */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.7);
  background:
    radial-gradient(circle at 36% 42%, rgba(145, 242, 13, 0.12), transparent 28rem),
    radial-gradient(circle at 68% 48%, rgba(255, 200, 63, 0.1), transparent 28rem),
    #030504;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.boot-screen.is-ready {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-screen p {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.boot-mark {
  display: flex;
  gap: 7px;
}

.boot-mark span {
  width: 9px;
  height: 42px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--green), rgba(145, 242, 13, 0.15));
  animation: bootPulse 900ms ease-in-out infinite alternate;
}

.boot-mark span:nth-child(2) {
  height: 58px;
  animation-delay: 130ms;
}

.boot-mark span:nth-child(3) {
  animation-delay: 260ms;
}

@keyframes bootPulse {
  from { transform: scaleY(0.62); opacity: 0.38; }
  to { transform: scaleY(1); opacity: 1; }
}

.maintenance-screen {
  min-height: 100vh;
  padding: calc(70px + var(--safe-top)) 24px calc(70px + var(--safe-bottom));
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(rgba(3, 5, 4, 0.84), rgba(3, 5, 4, 0.94)),
    radial-gradient(circle at 35% 45%, rgba(145, 242, 13, 0.18), transparent 36rem),
    radial-gradient(circle at 70% 42%, rgba(255, 200, 63, 0.12), transparent 36rem),
    #030504;
}

.maintenance-screen__glow {
  width: min(74vw, 700px);
  aspect-ratio: 1;
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  border: 1px solid rgba(145, 242, 13, 0.16);
  box-shadow: 0 0 0 80px rgba(145, 242, 13, 0.025), 0 0 0 160px rgba(255, 200, 63, 0.018);
  animation: slowSpin 24s linear infinite;
}

.maintenance-screen picture {
  width: min(320px, 78vw);
  margin-bottom: 22px;
}

.maintenance-screen h1 {
  max-width: 760px;
  margin: 6px 0 12px;
  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.maintenance-screen > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--muted);
}

.admin-link--maintenance {
  margin-top: 24px;
}

/* Shared buttons and text */
.eyebrow,
.section-kicker,
.company-kicker,
.legacy-kicker {
  margin: 0;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.button {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.button--small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.82rem;
}

.button--compact {
  min-height: 42px;
  padding: 0 19px;
}

.button--green {
  color: #061005;
  background: linear-gradient(135deg, #b5ff48, var(--green) 48%, #69c900);
  box-shadow: 0 12px 30px rgba(145, 242, 13, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.button--green:hover,
.button--green:focus-visible {
  box-shadow: 0 18px 40px rgba(145, 242, 13, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.button--dark-glass {
  color: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(14px);
}

.button--gold-outline {
  color: var(--gold-light);
  border-color: rgba(255, 200, 63, 0.72);
  background: rgba(255, 200, 63, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.button--gold-outline svg {
  width: 19px;
  height: 19px;
}

.button--legacy-order {
  min-height: 58px;
  color: var(--gold-light);
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #0d3978, #051b43);
  box-shadow: 0 0 0 4px rgba(255, 200, 63, 0.11), 0 12px 30px rgba(3, 20, 50, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.button--legacy-order:hover,
.button--legacy-order:focus-visible {
  color: #07172e;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-deep));
  box-shadow: 0 0 0 6px rgba(255, 200, 63, 0.16), 0 18px 42px rgba(255, 200, 63, 0.22);
}

.button--legacy-secondary {
  color: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(4, 23, 55, 0.38);
  backdrop-filter: blur(12px);
}

.button--submit {
  width: 100%;
  min-height: 56px;
  color: #07172e;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 54%, var(--gold-deep));
  box-shadow: 0 14px 34px rgba(216, 146, 15, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.button--admin-primary {
  color: #061005;
  background: linear-gradient(135deg, #b7ff4d, var(--green) 52%, #6fd300);
  box-shadow: 0 12px 28px rgba(145, 242, 13, 0.16);
}

.button--admin-secondary {
  color: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
}

.button--danger {
  color: #fff;
  background: linear-gradient(135deg, var(--danger), var(--danger-dark));
}

/* Split page */
.site-shell {
  min-height: 100vh;
}

.mobile-header {
  display: none;
}

.split-site {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  position: relative;
  isolation: isolate;
  background: var(--black);
}

.side-panel {
  min-width: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.side-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.04);
  transition: opacity 420ms ease, transform 8s ease;
}

.company-side::before {
  background-image:
    linear-gradient(145deg, rgba(2, 4, 3, 0.78), rgba(8, 12, 10, 0.73) 50%, rgba(7, 16, 8, 0.84)),
    var(--company-photo, none);
}

.legacy-side::before {
  background-image:
    linear-gradient(155deg, rgba(3, 17, 43, 0.58), rgba(5, 35, 87, 0.58) 62%, rgba(18, 38, 71, 0.42)),
    var(--legacy-photo, none);
}

.side-panel.has-custom-photo::before {
  opacity: 0.9;
  transform: scale(1);
}

.panel-shell {
  width: 100%;
  min-height: 100vh;
  padding: 22px clamp(24px, 3.2vw, 58px) 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.company-side {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(145, 242, 13, 0.13), transparent 24rem),
    radial-gradient(circle at 18% 52%, rgba(145, 242, 13, 0.07), transparent 22rem),
    linear-gradient(145deg, #020403, #080c0a 50%, #071008);
}

.legacy-side {
  color: var(--white);
  background:
    radial-gradient(circle at 48% 27%, rgba(28, 87, 186, 0.42), transparent 28rem),
    radial-gradient(circle at 78% 10%, rgba(255, 200, 63, 0.12), transparent 24rem),
    linear-gradient(155deg, #03112b, #052357 52%, #082e69 72%, #e7b866 72.2%, #f0c983 100%);
}

.split-seam {
  width: 40px;
  height: 100%;
  margin-left: -20px;
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 20;
  display: grid;
  place-items: start center;
  pointer-events: none;
}

.split-seam__beam {
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--green) 8%, #5dcdf8 48%, var(--gold) 92%, transparent);
  box-shadow: 0 0 12px rgba(145, 242, 13, 0.75), 0 0 30px rgba(53, 169, 255, 0.32);
}

.split-seam__control {
  width: 52px;
  height: 52px;
  margin-top: 20px;
  position: absolute;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(5, 15, 22, 0.9);
  box-shadow: 0 0 0 5px rgba(145, 242, 13, 0.08), 0 0 22px rgba(106, 215, 255, 0.38);
  backdrop-filter: blur(12px);
}

.split-seam__control span:first-child {
  color: var(--green);
}

.split-seam__control span:last-child {
  color: var(--gold);
}

body.company-only .split-site,
body.legacy-only .split-site {
  grid-template-columns: 1fr;
}

body.company-only .company-side,
body.legacy-only .legacy-side {
  min-height: 100vh;
}

body.company-only .split-seam,
body.legacy-only .split-seam {
  display: none;
}

/* Desktop panel headers */
.desktop-panel-header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  position: relative;
  z-index: 10;
}

.desktop-panel-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 30px);
}

.desktop-panel-header nav a,
.desktop-panel-header nav button {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.desktop-panel-header nav a::after,
.desktop-panel-header nav button::after {
  content: "";
  height: 2px;
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  transition: right 180ms ease;
}

.desktop-panel-header nav a:hover::after,
.desktop-panel-header nav a:focus-visible::after,
.desktop-panel-header nav button:hover::after,
.desktop-panel-header nav button:focus-visible::after,
.desktop-panel-header nav .is-active::after {
  right: 0;
}

.desktop-panel-header--company nav a::after {
  background: var(--green);
}

.desktop-panel-header--legacy nav a::after,
.desktop-panel-header--legacy nav button::after {
  background: var(--gold);
}

.desktop-panel-header--company nav a.is-active {
  color: var(--green);
}

.desktop-panel-header--legacy nav a.is-active {
  color: var(--gold-light);
}

.desktop-logo {
  width: clamp(122px, 11vw, 164px);
  flex: 0 0 auto;
}

.desktop-logo img {
  width: 100%;
  height: auto;
}

.header-admin-button {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.header-admin-button svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.header-admin-button--legacy svg {
  color: var(--gold);
}

.legacy-header-actions,
.legacy-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Company effects */
.company-effects,
.legacy-effects {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.company-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(145, 242, 13, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 242, 13, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 56% 44%, #000 0%, transparent 74%);
}

.company-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(145, 242, 13, 0.55) 1px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent 0 18%, #000 48%, transparent 92%);
  animation: gridDrift 18s linear infinite;
}

.company-orbit {
  aspect-ratio: 1;
  position: absolute;
  border: 1px solid rgba(145, 242, 13, 0.12);
  border-radius: 50%;
}

.company-orbit--one {
  width: 34vw;
  max-width: 520px;
  right: -12vw;
  top: 120px;
  animation: slowSpin 34s linear infinite;
}

.company-orbit--two {
  width: 22vw;
  max-width: 350px;
  left: -10vw;
  bottom: 18%;
  animation: slowSpinReverse 28s linear infinite;
}

.company-pulse {
  width: 200px;
  aspect-ratio: 1;
  position: absolute;
  border-radius: 50%;
  background: rgba(145, 242, 13, 0.12);
  filter: blur(70px);
  animation: pulseGlow 5s ease-in-out infinite alternate;
}

.company-pulse--one { right: 6%; top: 15%; }
.company-pulse--two { left: 5%; bottom: 14%; animation-delay: -2.5s; }

.company-particle {
  width: 7px;
  height: 7px;
  position: absolute;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px var(--green);
  animation: particleFloat 7s ease-in-out infinite;
}

.company-particle--one { left: 12%; top: 24%; }
.company-particle--two { right: 13%; top: 43%; animation-delay: -2s; }
.company-particle--three { left: 25%; bottom: 17%; animation-delay: -4s; }

@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(24px, 24px, 0); }
}

@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes slowSpinReverse { to { transform: rotate(-360deg); } }
@keyframes pulseGlow { from { opacity: 0.4; transform: scale(0.86); } to { opacity: 1; transform: scale(1.15); } }
@keyframes particleFloat { 0%, 100% { transform: translateY(0); opacity: 0.32; } 50% { transform: translateY(-26px); opacity: 1; } }

/* Company content */
.company-main {
  width: 100%;
  padding: clamp(52px, 6vw, 86px) 0 20px;
  display: grid;
  gap: 30px;
}

.company-hero {
  max-width: 760px;
}

.company-hero__media {
  width: min(430px, 84%);
  min-height: 190px;
  margin-bottom: 24px;
  padding: 18px 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(145, 242, 13, 0.21);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 50%, rgba(145, 242, 13, 0.14), transparent 46%),
    rgba(6, 12, 8, 0.74);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
}

.company-hero__media picture,
.company-hero__media img {
  width: 100%;
  max-height: 210px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 22px rgba(145, 242, 13, 0.18));
}

.company-hero__rings,
.company-hero__rings span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.company-hero__rings span {
  width: 220px;
  aspect-ratio: 1;
  margin: auto;
  border: 1px solid rgba(145, 242, 13, 0.12);
  border-radius: 50%;
  animation: ringPulse 4.8s ease-out infinite;
}

.company-hero__rings span:nth-child(2) { animation-delay: 1.6s; }
.company-hero__rings span:nth-child(3) { animation-delay: 3.2s; }

@keyframes ringPulse {
  0% { transform: scale(0.5); opacity: 0; }
  22% { opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

.scan-line {
  width: 100%;
  height: 2px;
  position: absolute;
  left: 0;
  top: 15%;
  z-index: 4;
  background: linear-gradient(90deg, transparent, rgba(145, 242, 13, 0.9), transparent);
  box-shadow: 0 0 15px rgba(145, 242, 13, 0.7);
  animation: scanLine 4.6s ease-in-out infinite;
}

@keyframes scanLine {
  0%, 100% { top: 12%; opacity: 0; }
  12% { opacity: 0.8; }
  82% { opacity: 0.6; }
  92% { top: 88%; opacity: 0; }
}

.company-kicker {
  color: var(--green);
}

.company-hero h1 {
  max-width: 690px;
  margin: 10px 0 16px;
  font-size: clamp(2.35rem, 4.3vw, 5.45rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.company-hero h1 span {
  color: var(--green);
  text-shadow: 0 0 30px rgba(145, 242, 13, 0.13);
}

.company-description {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.2vw, 1.08rem);
}

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

.company-values {
  max-width: 780px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.value-card {
  min-height: 94px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.value-card:hover {
  transform: translateY(-3px);
  border-color: rgba(145, 242, 13, 0.36);
  background: rgba(145, 242, 13, 0.07);
}

.value-card__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--green);
  border: 1px solid rgba(145, 242, 13, 0.28);
  border-radius: 13px;
  background: rgba(145, 242, 13, 0.1);
  box-shadow: 0 0 22px rgba(145, 242, 13, 0.1);
}

.value-card__icon svg {
  width: 24px;
  height: 24px;
}

.value-card div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.value-card strong {
  font-size: 0.88rem;
}

.value-card small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.catalogue-section {
  max-width: 900px;
  margin-top: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  background: rgba(7, 12, 9, 0.7);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
}

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

.section-heading--company p {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 750;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(145, 242, 13, 0.1), 0 0 14px var(--green);
  animation: livePulse 1.8s ease-in-out infinite;
}

@keyframes livePulse { 50% { opacity: 0.45; transform: scale(0.8); } }

.section-heading h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2.05rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.section-heading small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.catalogue-controls {
  display: flex;
  gap: 7px;
}

.round-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.round-button:hover,
.round-button:focus-visible {
  color: #071006;
  border-color: var(--green);
  background: var(--green);
}

.catalogue-track {
  margin-top: 16px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 30%);
  gap: 11px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.catalogue-track::-webkit-scrollbar {
  display: none;
}

.product-card {
  min-width: 0;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(145, 242, 13, 0.42);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 30px rgba(145, 242, 13, 0.08);
}

.product-card__image {
  aspect-ratio: 1.15;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(145, 242, 13, 0.16), transparent 56%),
    #070b09;
}

.product-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(3, 5, 4, 0.72));
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.045);
}

.product-card__badge {
  padding: 5px 8px;
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  color: #071006;
  border-radius: 999px;
  background: var(--green);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-card__body {
  padding: 12px 13px 14px;
}

.product-card__body > span {
  color: var(--green);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card__body h3 {
  margin: 5px 0 4px;
  font-size: 1rem;
  line-height: 1.12;
}

.product-card__body p {
  min-height: 34px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-card__body strong {
  color: #fff;
  font-size: 0.86rem;
}

.product-order-button {
  min-height: 32px;
  padding: 0 11px;
  color: #061005;
  border-radius: 999px;
  background: var(--green);
  font-size: 0.67rem;
  font-weight: 900;
  cursor: pointer;
}

.product-order-button:disabled {
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
}

.catalogue-empty {
  margin-top: 16px;
  padding: 30px 20px;
  text-align: center;
  border: 1px dashed rgba(145, 242, 13, 0.24);
  border-radius: 18px;
  background: rgba(145, 242, 13, 0.035);
}

.catalogue-empty > span {
  color: var(--green);
  font-size: 1.6rem;
}

.catalogue-empty h3 {
  margin: 8px 0 4px;
}

.catalogue-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.company-connect {
  max-width: 900px;
  margin-top: 4px;
  padding: 20px 2px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.company-connect h2 {
  max-width: 470px;
  margin: 6px 0 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.08;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.social-link svg {
  width: 19px;
  height: 19px;
}

.social-links--company .social-link:hover,
.social-links--company .social-link:focus-visible,
.social-links--maintenance .social-link:hover,
.social-links--maintenance .social-link:focus-visible {
  color: #061005;
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 24px rgba(145, 242, 13, 0.25);
  transform: translateY(-3px);
}

.company-footer,
.legacy-footer {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
}

.company-footer p,
.legacy-footer p {
  margin: 0;
}

.admin-link {
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.48);
  background: transparent;
  font-size: 0.72rem;
  cursor: pointer;
}

.admin-link:hover,
.admin-link:focus-visible {
  color: var(--green);
}

/* Legacy effects and content */
.legacy-rays {
  width: 130%;
  aspect-ratio: 1;
  position: absolute;
  left: -15%;
  top: -34%;
  opacity: 0.24;
  background: repeating-conic-gradient(from -12deg, rgba(255, 255, 255, 0.18) 0deg 2deg, transparent 2deg 12deg);
  mask-image: radial-gradient(circle, #000 0, transparent 70%);
  animation: slowSpin 90s linear infinite;
}

.legacy-stars {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image: radial-gradient(circle, rgba(255, 219, 118, 0.92) 1px, transparent 1.5px);
  background-size: 34px 34px;
}

.legacy-stars--one {
  mask-image: linear-gradient(180deg, #000, transparent 68%);
  animation: starsDrift 24s linear infinite;
}

.legacy-stars--two {
  opacity: 0.2;
  background-size: 62px 62px;
  transform: translateX(18px);
  animation: starsDrift 36s linear infinite reverse;
}

@keyframes starsDrift { to { background-position: 68px 68px; } }

.legacy-palm {
  width: 310px;
  height: 420px;
  position: absolute;
  bottom: -34px;
  opacity: 0.16;
  filter: blur(0.2px);
}

.legacy-palm::before,
.legacy-palm::after {
  content: "";
  position: absolute;
}

.legacy-palm::before {
  width: 18px;
  height: 330px;
  left: 50%;
  bottom: 0;
  border-radius: 50%;
  background: #0c2a4e;
  transform: rotate(8deg);
  transform-origin: bottom;
}

.legacy-palm::after {
  width: 280px;
  height: 150px;
  left: 14px;
  top: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #0c2a4e 0deg 9deg, transparent 9deg 19deg);
  mask-image: radial-gradient(ellipse at center, #000 0 44%, transparent 70%);
}

.legacy-palm--one { left: -90px; transform: scale(1.1) rotate(-5deg); }
.legacy-palm--two { right: -100px; transform: scale(1.2) rotate(7deg); }

.gold-spark {
  position: absolute;
  color: var(--gold-light);
  text-shadow: 0 0 16px var(--gold);
  animation: sparkPulse 2.6s ease-in-out infinite;
}

.gold-spark--one { right: 13%; top: 18%; font-size: 1.6rem; }
.gold-spark--two { left: 15%; top: 42%; animation-delay: -1s; }
.gold-spark--three { right: 24%; bottom: 20%; animation-delay: -1.8s; font-size: 1.2rem; }

@keyframes sparkPulse { 0%, 100% { opacity: 0.26; transform: scale(0.75) rotate(0); } 50% { opacity: 1; transform: scale(1.2) rotate(45deg); } }

.legacy-main {
  width: 100%;
  padding: clamp(34px, 4vw, 62px) 0 26px;
  display: grid;
  justify-items: center;
  text-align: center;
}

.legacy-wordmark {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  color: var(--gold-light);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-style: italic;
  filter: drop-shadow(0 7px 0 rgba(2, 13, 34, 0.6)) drop-shadow(0 0 16px rgba(255, 200, 63, 0.28));
  transform: rotate(-3deg);
}

.legacy-wordmark span {
  font-size: clamp(1.65rem, 2.7vw, 3.4rem);
  font-weight: 700;
  white-space: nowrap;
}

.legacy-wordmark span:first-child {
  margin-right: -11px;
  align-self: flex-start;
}

.legacy-wordmark span:last-child {
  margin-left: -8px;
  align-self: flex-end;
}

.legacy-wordmark strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5.4rem, 9vw, 10.5rem);
  line-height: 0.7;
  letter-spacing: -0.11em;
  background: linear-gradient(110deg, #fff2a8 0%, #f6ad08 24%, #fff7bf 45%, #e99b05 70%, #ffe98e 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(117, 68, 0, 0.7);
  animation: goldSweep 5s linear infinite;
}

@keyframes goldSweep { to { background-position: -220% 0; } }

.pin-stage {
  width: min(420px, 72%);
  margin: 6px auto 2px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  transform-style: preserve-3d;
}

.pin-stage picture,
.pin-stage img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  position: relative;
  z-index: 4;
  filter: drop-shadow(0 18px 26px rgba(1, 12, 31, 0.45)) drop-shadow(0 0 18px rgba(255, 200, 63, 0.22));
  animation: pinFloat 5s ease-in-out infinite;
}

@keyframes pinFloat { 0%, 100% { transform: translateY(0) rotate(-0.4deg); } 50% { transform: translateY(-13px) rotate(0.8deg); } }

.pin-halo {
  width: 78%;
  aspect-ratio: 1;
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 63, 0.3), rgba(255, 200, 63, 0.05) 46%, transparent 70%);
  filter: blur(6px);
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

.pin-orbit {
  position: absolute;
  border: 1px solid rgba(255, 222, 119, 0.25);
  border-radius: 50%;
}

.pin-orbit::before,
.pin-orbit::after {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 16px var(--gold);
}

.pin-orbit::before { left: 11%; top: 15%; }
.pin-orbit::after { right: 8%; bottom: 19%; }
.pin-orbit--one { inset: 3%; animation: slowSpin 18s linear infinite; }
.pin-orbit--two { inset: 12%; border-style: dashed; animation: slowSpinReverse 13s linear infinite; }

.pin-glint {
  width: 9px;
  height: 9px;
  position: absolute;
  z-index: 5;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 0 0 6px #fff, 0 0 22px var(--gold-light);
  animation: glint 3.2s ease-in-out infinite;
}

.pin-glint::before,
.pin-glint::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
}

.pin-glint::before { width: 1px; height: 26px; left: 4px; top: -9px; }
.pin-glint::after { width: 26px; height: 1px; left: -9px; top: 4px; }
.pin-glint--one { right: 21%; top: 17%; }
.pin-glint--two { left: 23%; bottom: 23%; animation-delay: -1.6s; }

@keyframes glint { 0%, 100% { opacity: 0; transform: rotate(45deg) scale(0.3); } 34% { opacity: 1; transform: rotate(45deg) scale(1); } 56% { opacity: 0; transform: rotate(45deg) scale(1.6); } }

.legacy-sale {
  width: min(720px, 100%);
  margin-top: 4px;
  position: relative;
  z-index: 3;
}

.legacy-kicker {
  color: var(--gold-light);
}

.legacy-sale h1 {
  margin: 7px 0 8px;
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 3.7rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.legacy-description {
  max-width: 630px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
}

.legacy-order-card {
  width: min(650px, 100%);
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  border: 1px solid rgba(255, 211, 92, 0.48);
  border-radius: 22px;
  background: rgba(255, 224, 166, 0.9);
  box-shadow: 0 22px 55px rgba(2, 13, 34, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  overflow: hidden;
}

.legacy-price {
  padding: 16px 14px;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--gold-light);
  background: linear-gradient(155deg, #0b3978, #031a40);
}

.legacy-price small {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legacy-price strong {
  display: flex;
  align-items: flex-start;
  line-height: 0.9;
}

.legacy-price strong span {
  margin: 8px 4px 0 0;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
}

.legacy-price strong b {
  font-size: clamp(3.8rem, 6vw, 6.1rem);
  letter-spacing: -0.08em;
}

.legacy-contact {
  padding: 15px 17px;
  display: grid;
  align-content: center;
  justify-items: center;
  color: var(--navy-text);
  text-align: center;
}

.legacy-contact > span {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legacy-contact__brands {
  margin: 5px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.legacy-contact__brands picture {
  width: min(150px, 44%);
}

.legacy-contact__brands img {
  width: 100%;
}

.legacy-contact__brands em {
  color: rgba(6, 27, 61, 0.35);
  font-style: normal;
}

.legacy-contact__brands strong {
  max-width: 120px;
  font-size: 0.72rem;
  line-height: 1.06;
}

.legacy-contact a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--navy-text);
  text-decoration: none;
}

.legacy-contact a svg {
  width: 27px;
  height: 27px;
}

.legacy-contact a strong {
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1;
}

.legacy-actions {
  width: min(650px, 100%);
  margin: 15px auto 0;
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 10px;
}

.legacy-proof {
  width: min(650px, 100%);
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: var(--navy-text);
  border-radius: 16px;
  background: rgba(255, 224, 166, 0.9);
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(2, 13, 34, 0.18);
}

.legacy-proof article {
  min-height: 54px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-right: 1px solid rgba(6, 27, 61, 0.13);
  text-transform: uppercase;
}

.legacy-proof article:last-child {
  border-right: 0;
}

.legacy-proof span {
  color: var(--gold-deep);
}

.legacy-proof strong {
  font-size: 0.73rem;
  letter-spacing: 0.07em;
}

.social-links--legacy .social-link {
  width: 34px;
  height: 34px;
  color: var(--navy-text);
  border-color: rgba(6, 27, 61, 0.18);
  background: rgba(255, 255, 255, 0.22);
}

.social-links--legacy .social-link:hover,
.social-links--legacy .social-link:focus-visible {
  color: var(--navy-text);
  border-color: var(--gold);
  background: var(--gold-light);
  transform: translateY(-2px);
}

.legacy-footer {
  color: rgba(6, 27, 61, 0.64);
}

.legacy-footer .admin-link {
  color: rgba(6, 27, 61, 0.68);
}

.legacy-footer .admin-link:hover,
.legacy-footer .admin-link:focus-visible {
  color: var(--navy-text);
}

/* Reveal and tilt */
.reveal-block {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}

.reveal-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tilt-card {
  transition: transform 180ms ease;
  will-change: transform;
}

/* Dialogs and forms */
.modal {
  width: min(1060px, calc(100vw - 28px));
  max-height: min(92vh, 920px);
  margin: auto;
  padding: 0;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: #0d1513;
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.64);
  overflow: auto;
}

.modal::backdrop {
  background: rgba(0, 6, 16, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dialog-heading {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dialog-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.dialog-heading--dark {
  position: sticky;
  top: 0;
  z-index: 8;
  background: rgba(10, 18, 15, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.dialog-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  color: #061005;
  border-color: var(--green);
  background: var(--green);
}

.order-dialog {
  width: min(1040px, calc(100vw - 28px));
  background: #fff;
}

.order-dialog__shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
}

.order-dialog__product {
  min-height: 650px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 200, 63, 0.22), transparent 19rem),
    linear-gradient(155deg, #041431, #082b62);
  position: relative;
  overflow: hidden;
}

.order-dialog__product::before {
  content: "";
  width: 160%;
  aspect-ratio: 1;
  position: absolute;
  left: -30%;
  top: -62%;
  opacity: 0.12;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.32) 0 2deg, transparent 2deg 13deg);
}

.dialog-close--product {
  display: none;
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 4;
}

.order-product-image {
  width: 100%;
  min-height: 280px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}

.order-product-image img {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.38));
}

.order-dialog__product > p:first-of-type {
  margin: 20px 0 4px;
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.order-dialog__product h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1;
  letter-spacing: -0.045em;
  position: relative;
  z-index: 2;
}

.order-product-price {
  margin: 18px 0 8px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255, 200, 63, 0.36);
  border-radius: 14px;
  background: rgba(255, 200, 63, 0.08);
  position: relative;
  z-index: 2;
}

.order-product-price span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.order-product-price strong {
  color: var(--gold-light);
}

.order-dialog__product > p:last-child {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  position: relative;
  z-index: 2;
}

.order-dialog__form {
  padding: 12px 12px 24px;
  color: #11203a;
  background: #fff;
}

.order-dialog__form .dialog-heading {
  padding: 18px 18px 12px;
}

.order-dialog__form .dialog-heading .section-kicker {
  color: #558100;
}

.order-summary-strip {
  margin: 0 18px 14px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(6, 27, 61, 0.11);
  border-radius: 12px;
  background: #f5f8f6;
}

.order-summary-strip span {
  color: #6b7689;
  font-size: 0.75rem;
}

.order-summary-strip strong {
  color: #071b3d;
}

#orderForm {
  padding: 0 18px;
}

.form-grid {
  display: grid;
  gap: 13px;
}

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

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

.field {
  margin-bottom: 13px;
}

.field label {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #3d4a5f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.field label span {
  color: #8a95a6;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: #13203a;
  border: 1px solid #dfe4e8;
  border-radius: 12px;
  outline: none;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #596579 50%), linear-gradient(135deg, #596579 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #83d60d;
  box-shadow: 0 0 0 4px rgba(131, 214, 13, 0.12);
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(238, 75, 85, 0.1);
}

.quantity-control {
  min-height: 48px;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  border: 1px solid #dfe4e8;
  border-radius: 12px;
  overflow: hidden;
}

.quantity-control button {
  color: #071b3d;
  background: #f3f6f4;
  font-size: 1.3rem;
  cursor: pointer;
}

.quantity-control input {
  min-height: 46px;
  padding: 0;
  text-align: center;
  border: 0;
  border-left: 1px solid #dfe4e8;
  border-right: 1px solid #dfe4e8;
  border-radius: 0;
  box-shadow: none !important;
  appearance: textfield;
}

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

.form-note {
  margin: 10px 0 0;
  color: #6f7c90;
  font-size: 0.72rem;
  text-align: center;
}

.form-status {
  min-height: 0;
  margin-top: 10px;
  padding: 0;
  border-radius: 11px;
  font-size: 0.78rem;
  font-weight: 700;
}

.form-status:not(:empty) {
  padding: 10px 12px;
}

.form-status.is-success {
  color: #0b6a38;
  border: 1px solid rgba(40, 184, 105, 0.28);
  background: rgba(40, 184, 105, 0.1);
}

.form-status.is-error {
  color: #a71e27;
  border: 1px solid rgba(238, 75, 85, 0.28);
  background: rgba(238, 75, 85, 0.1);
}

.form-status.is-info {
  color: #4a6510;
  border: 1px solid rgba(145, 242, 13, 0.23);
  background: rgba(145, 242, 13, 0.09);
}

.honeypot {
  width: 1px;
  height: 1px;
  position: absolute;
  left: -9999px;
  overflow: hidden;
}

.flyer-dialog {
  width: min(720px, calc(100vw - 28px));
}

.flyer-dialog__body {
  padding: 16px;
  display: grid;
  place-items: center;
  background: #061a3f;
}

.flyer-dialog__body img {
  max-height: calc(92vh - 110px);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.info-dialog {
  width: min(680px, calc(100vw - 28px));
}

.info-dialog__body {
  padding: 22px 24px 30px;
  color: rgba(255, 255, 255, 0.76);
}

.info-dialog__body h3 {
  margin: 18px 0 6px;
  color: #fff;
}

.info-dialog__body p {
  margin: 0 0 12px;
}

.info-dialog__body .faq-item {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Admin */
.admin-dialog {
  width: min(1240px, calc(100vw - 22px));
  height: min(94vh, 980px);
  max-height: 94vh;
  color: var(--text);
  background: var(--admin-bg);
  overflow: hidden;
}

.admin-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 12% 4%, rgba(145, 242, 13, 0.075), transparent 22rem),
    var(--admin-bg);
}

.admin-header {
  min-height: 76px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(8, 14, 12, 0.92);
}

.admin-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-header__brand picture {
  width: 118px;
}

.admin-header__brand img {
  width: 100%;
}

.admin-header__brand p {
  margin: 0;
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.admin-header__brand h2 {
  margin: 2px 0 0;
  font-size: 1.15rem;
  line-height: 1;
}

.dialog-close--admin {
  width: 40px;
  height: 40px;
}

.admin-auth {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(340px, 1.15fr);
  align-items: stretch;
  overflow: auto;
}

.admin-auth__visual {
  min-height: 520px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(circle at 30% 25%, rgba(145, 242, 13, 0.16), transparent 20rem),
    linear-gradient(145deg, #070c09, #101a14);
  position: relative;
  overflow: hidden;
}

.admin-auth__visual::before {
  content: "";
  width: 500px;
  aspect-ratio: 1;
  position: absolute;
  left: -240px;
  bottom: -260px;
  border: 1px solid rgba(145, 242, 13, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(145, 242, 13, 0.025), 0 0 0 140px rgba(145, 242, 13, 0.015);
}

.admin-lock {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  color: var(--green);
  border: 1px solid rgba(145, 242, 13, 0.3);
  border-radius: 22px;
  background: rgba(145, 242, 13, 0.08);
  box-shadow: 0 0 38px rgba(145, 242, 13, 0.12);
}

.admin-lock svg {
  width: 34px;
  height: 34px;
}

.setup-state {
  width: fit-content;
  padding: 6px 10px;
  color: var(--green);
  border: 1px solid rgba(145, 242, 13, 0.24);
  border-radius: 999px;
  background: rgba(145, 242, 13, 0.08);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-auth__visual h3 {
  margin: 18px 0 8px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.admin-auth__visual p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

.admin-auth__form {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  color: #102039;
}

.field--admin label {
  color: rgba(255, 255, 255, 0.62);
}

.field--admin input,
.field--admin select,
.field--admin textarea {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.11);
  background-color: rgba(255, 255, 255, 0.055);
}

.field--admin input::placeholder,
.field--admin textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.admin-auth__form .field--admin label {
  color: #445168;
}

.admin-auth__form .field--admin input {
  color: #102039;
  border-color: #dfe4e8;
  background: #fff;
}

.text-link {
  width: fit-content;
  margin: 12px auto 0;
  padding: 4px;
  color: #5e6b7e;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.text-link:hover,
.text-link:focus-visible {
  color: #4d8100;
}

.security-copy {
  margin: 22px 0 0;
  padding: 13px 14px;
  color: #687588;
  border-left: 3px solid #8eda0d;
  background: #f4f7f3;
  font-size: 0.72rem;
}

.admin-dashboard {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
}

.admin-userbar {
  grid-column: 1 / -1;
  min-height: 60px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.018);
}

.admin-userbar > div:first-child {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.admin-userbar span {
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.68rem;
}

.admin-userbar strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
}

.admin-userbar__actions {
  display: flex;
  gap: 8px;
}

.admin-tabs {
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
  overflow-y: auto;
}

.admin-tab {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55);
  border-radius: 11px;
  background: transparent;
  font-size: 0.77rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.admin-tab span {
  width: 22px;
  color: rgba(145, 242, 13, 0.7);
  text-align: center;
}

.admin-tab:hover,
.admin-tab:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.admin-tab.is-active {
  color: #071006;
  background: var(--green);
  box-shadow: 0 10px 28px rgba(145, 242, 13, 0.14);
}

.admin-tab.is-active span {
  color: #071006;
}

.admin-content {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  scrollbar-color: #3d4b45 transparent;
}

.admin-panel {
  min-height: 100%;
  padding: 24px;
}

.admin-panel-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.admin-panel-heading .section-kicker {
  color: var(--green);
}

.admin-panel-heading h3 {
  margin: 5px 0 5px;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.admin-panel-heading p:last-child {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.admin-heading-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.visibility-card {
  min-height: 142px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: var(--admin-panel);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.visibility-card::before {
  content: "";
  width: 160px;
  height: 160px;
  position: absolute;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  filter: blur(8px);
}

.visibility-card--company::before { background: rgba(145, 242, 13, 0.08); }
.visibility-card--legacy::before { background: rgba(255, 200, 63, 0.09); }

.visibility-card input,
.settings-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch {
  width: 46px;
  height: 26px;
  padding: 3px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 180ms ease, border-color 180ms ease;
}

.switch i {
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  transition: transform 180ms ease, background 180ms ease;
}

.visibility-card input:checked + .switch,
.settings-toggle input:checked + .switch {
  border-color: rgba(145, 242, 13, 0.45);
  background: rgba(145, 242, 13, 0.23);
}

.visibility-card input:checked + .switch i,
.settings-toggle input:checked + .switch i {
  transform: translateX(20px);
  background: var(--green);
  box-shadow: 0 0 14px rgba(145, 242, 13, 0.45);
}

.visibility-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 950;
}

.visibility-card--company .visibility-card__icon {
  color: #071006;
  background: var(--green);
}

.visibility-card--legacy .visibility-card__icon {
  color: #061b3d;
  background: var(--gold);
}

.visibility-card > span:nth-of-type(3) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.visibility-card strong {
  font-size: 0.9rem;
}

.visibility-card small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
}

.visibility-card em {
  color: var(--green);
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.visibility-card input:not(:checked) ~ em {
  color: rgba(255, 255, 255, 0.35);
}

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

.admin-stat-grid article {
  min-height: 112px;
  padding: 16px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: var(--admin-panel);
}

.admin-stat-grid span {
  color: rgba(255, 255, 255, 0.47);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.admin-stat-grid strong {
  margin: 5px 0 1px;
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
}

.admin-stat-grid small {
  color: rgba(255, 255, 255, 0.33);
  font-size: 0.64rem;
}

.spark-note {
  margin-top: 16px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(145, 242, 13, 0.18);
  border-radius: 16px;
  background: rgba(145, 242, 13, 0.05);
}

.spark-note > span {
  color: var(--green);
}

.spark-note strong {
  font-size: 0.82rem;
}

.spark-note p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
}

.admin-filters,
.catalogue-admin-toolbar {
  margin-bottom: 15px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.32fr);
  align-items: end;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-filters .field,
.catalogue-admin-toolbar .field {
  margin: 0;
}

.catalogue-admin-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.orders-list {
  display: grid;
  gap: 9px;
}

.order-row {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(170px, 1.15fr) minmax(140px, 0.9fr) minmax(130px, 0.75fr) 105px auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: var(--admin-panel);
  transition: border-color 160ms ease, transform 160ms ease;
}

.order-row:hover {
  transform: translateY(-1px);
  border-color: rgba(145, 242, 13, 0.22);
}

.order-row__primary,
.order-row__contact,
.order-row__money {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.order-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
}

.order-row small,
.order-row span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.43);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-row__money strong {
  color: var(--gold-light);
}

.status-pill {
  width: fit-content;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill--new { color: #8df113; background: rgba(141, 241, 19, 0.11); }
.status-pill--approved { color: #64d5ff; background: rgba(100, 213, 255, 0.11); }
.status-pill--contacted { color: #ffd45c; background: rgba(255, 212, 92, 0.11); }
.status-pill--confirmed { color: #ad8cff; background: rgba(173, 140, 255, 0.11); }
.status-pill--completed { color: #4ee095; background: rgba(78, 224, 149, 0.11); }
.status-pill--cancelled { color: #ff7580; background: rgba(255, 117, 128, 0.11); }

.order-row__actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.icon-action {
  min-height: 34px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.66rem;
  font-weight: 850;
  cursor: pointer;
}

.icon-action--approve {
  color: #071006;
  border-color: var(--green);
  background: var(--green);
}

.admin-empty {
  padding: 44px 20px;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
}

.admin-empty > span {
  color: var(--green);
  font-size: 1.7rem;
}

.admin-empty h4 {
  margin: 8px 0 3px;
  color: #fff;
}

.admin-empty p {
  margin: 0;
  font-size: 0.74rem;
}

.admin-load-more {
  margin-top: 14px;
  text-align: center;
}

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

.admin-product-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 17px;
  background: var(--admin-panel);
  overflow: hidden;
}

.admin-product-card__image {
  aspect-ratio: 1.55;
  background: #070b09;
  overflow: hidden;
}

.admin-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-product-card__body {
  padding: 13px;
}

.admin-product-card__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.admin-product-card__top span {
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-product-card__top em {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.62rem;
  font-style: normal;
}

.admin-product-card h4 {
  margin: 7px 0 4px;
  font-size: 0.94rem;
}

.admin-product-card p {
  min-height: 34px;
  margin: 0;
  color: rgba(255, 255, 255, 0.43);
  font-size: 0.68rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.admin-product-card__footer strong {
  color: var(--gold-light);
  font-size: 0.82rem;
}

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

.media-card {
  padding: 14px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: var(--admin-panel);
}

.media-card__preview {
  min-height: 150px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: #050806;
  overflow: hidden;
}

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

.media-card__controls {
  min-width: 0;
}

.media-card h4 {
  margin: 0;
  font-size: 0.9rem;
}

.media-card p {
  margin: 3px 0 10px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.66rem;
}

.media-card .field {
  margin-bottom: 9px;
}

.media-card__actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.settings-section {
  margin-bottom: 15px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: var(--admin-panel);
}

.settings-section__heading {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.settings-section__heading > span {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #071006;
  border-radius: 9px;
  background: var(--green);
  font-size: 0.68rem;
  font-weight: 950;
}

.settings-section__heading h4 {
  margin: 0;
}

.settings-section__heading p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.68rem;
}

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

.settings-toggle {
  min-height: 74px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  position: relative;
}

.settings-toggle > span:last-child {
  display: grid;
}

.settings-toggle strong {
  font-size: 0.76rem;
}

.settings-toggle small {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.62rem;
}

.product-editor-dialog {
  width: min(980px, calc(100vw - 28px));
}

#productEditorForm {
  padding: 20px;
}

.product-editor-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 20px;
}

.product-image-editor {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.025);
}

.product-image-preview {
  min-height: 260px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #050806;
  overflow: hidden;
}

.product-image-preview img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: contain;
}

.upload-help {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.65rem;
}

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

.product-editor-actions,
.order-detail-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-detail-actions > div {
  display: flex;
  gap: 8px;
}

.order-detail-body {
  padding: 20px;
}

.order-detail-grid {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.order-detail-item {
  padding: 13px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.order-detail-item--wide {
  grid-column: span 3;
}

.order-detail-item span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.order-detail-item strong,
.order-detail-item a {
  color: #fff;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.order-detail-item a {
  color: var(--green);
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: calc(18px + var(--safe-bottom));
  z-index: 6000;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #101815;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.36);
  font-size: 0.76rem;
  font-weight: 750;
  animation: toastIn 260ms ease both;
}

.toast--success { border-color: rgba(40, 184, 105, 0.45); }
.toast--error { border-color: rgba(238, 75, 85, 0.48); }
.toast--info { border-color: rgba(145, 242, 13, 0.36); }

@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

.noscript-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 7000;
  padding: 12px;
  color: #071006;
  border-radius: 12px;
  background: var(--green);
  text-align: center;
  font-size: 0.76rem;
  font-weight: 850;
}

/* Medium screens */
@media (max-width: 1220px) {
  .panel-shell {
    padding-inline: 26px;
  }

  .desktop-panel-header nav {
    gap: 14px;
  }

  .desktop-panel-header nav a,
  .desktop-panel-header nav button {
    font-size: 0.74rem;
  }

  .header-admin-button {
    padding-inline: 10px;
  }

  .company-values {
    grid-template-columns: 1fr;
  }

  .value-card {
    min-height: 72px;
  }

  .catalogue-track {
    grid-auto-columns: minmax(205px, 44%);
  }

  .legacy-contact__brands strong {
    display: none;
  }

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

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

@media (max-width: 1000px) and (min-width: 821px) {
  .desktop-logo {
    width: 108px;
  }

  .desktop-panel-header nav a:nth-child(2),
  .desktop-panel-header--company nav a:nth-child(4) {
    display: none;
  }

  .header-admin-button {
    width: 38px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .company-hero__media {
    width: 100%;
  }

  .company-hero h1 {
    font-size: clamp(2.3rem, 4.8vw, 4rem);
  }

  .legacy-order-card {
    grid-template-columns: 1fr;
  }

  .legacy-actions {
    grid-template-columns: 1fr;
  }

  .legacy-proof strong {
    font-size: 0.62rem;
  }
}

/* Mobile-first experience: horizontally swipe between full-screen sides */
@media (max-width: 820px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body.dialog-open {
    overflow: hidden;
  }

  body.maintenance-mode {
    overflow-y: auto;
  }

  body.maintenance-mode .maintenance-screen {
    min-height: 100dvh;
    height: auto;
  }

  .site-shell {
    height: 100dvh;
    overflow: hidden;
  }

  .mobile-header {
    min-height: calc(62px + var(--safe-top));
    padding: calc(7px + var(--safe-top)) 9px 7px;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(3, 7, 7, 0.88);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .mobile-header.is-legacy-active {
    background: rgba(3, 20, 50, 0.9);
  }

  .mobile-brand {
    width: 90px;
    display: block;
  }

  .mobile-brand img {
    width: 100%;
  }

  .mobile-side-tabs {
    min-width: 0;
    padding: 3px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
  }

  .mobile-side-tab {
    min-width: 0;
    min-height: 34px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.54);
    border-radius: 999px;
    background: transparent;
    font-size: 0.66rem;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
  }

  .mobile-side-tab span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
  }

  #mobileCompanyTab span { background: var(--green); box-shadow: 0 0 10px rgba(145, 242, 13, 0.5); }
  #mobileLegacyTab span { background: var(--gold); box-shadow: 0 0 10px rgba(255, 200, 63, 0.5); }

  #mobileCompanyTab.is-active {
    color: #071006;
    background: var(--green);
  }

  #mobileCompanyTab.is-active span {
    background: #071006;
    box-shadow: none;
  }

  #mobileLegacyTab.is-active {
    color: var(--navy-text);
    background: var(--gold);
  }

  #mobileLegacyTab.is-active span {
    background: var(--navy-text);
    box-shadow: none;
  }

  .mobile-order-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--gold-light);
    border: 1px solid rgba(255, 200, 63, 0.42);
    border-radius: 50%;
    background: rgba(255, 200, 63, 0.08);
    cursor: pointer;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .mobile-admin-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--green);
    border: 1px solid rgba(145, 242, 13, 0.34);
    border-radius: 50%;
    background: rgba(145, 242, 13, 0.07);
    cursor: pointer;
  }

  .mobile-header.is-legacy-active .mobile-admin-button {
    color: var(--gold-light);
    border-color: rgba(255, 200, 63, 0.38);
    background: rgba(255, 200, 63, 0.07);
  }

  .mobile-admin-button svg {
    width: 18px;
    height: 18px;
  }

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

  .split-site {
    width: 100vw;
    height: 100dvh;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior: none;
    scrollbar-width: none;
  }

  .split-site::-webkit-scrollbar {
    display: none;
  }

  .side-panel {
    width: 100vw;
    min-width: 100vw;
    height: 100dvh;
    min-height: 0;
    padding-top: calc(62px + var(--safe-top));
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
  }

  .side-panel::-webkit-scrollbar {
    display: none;
  }

  .split-seam,
  .desktop-panel-header {
    display: none;
  }

  .panel-shell {
    min-height: calc(100dvh - 62px - var(--safe-top));
    padding: 22px 18px calc(24px + var(--safe-bottom));
  }

  body.company-only .split-site,
  body.legacy-only .split-site {
    overflow-x: hidden;
  }

  body.company-only .mobile-side-tabs,
  body.legacy-only .mobile-side-tabs {
    grid-template-columns: 1fr;
  }

  body.company-only #mobileLegacyTab,
  body.legacy-only #mobileCompanyTab {
    display: none;
  }

  body.company-only .mobile-order-button {
    color: var(--green);
    border-color: rgba(145, 242, 13, 0.38);
    background: rgba(145, 242, 13, 0.08);
  }

  .company-main {
    padding: 20px 0 12px;
    gap: 22px;
  }

  .company-hero__media {
    width: 100%;
    min-height: 165px;
    margin-bottom: 20px;
    padding: 16px 20px;
  }

  .company-hero__media picture,
  .company-hero__media img {
    max-height: 170px;
  }

  .company-hero h1 {
    max-width: 520px;
    margin-top: 8px;
    font-size: clamp(2.55rem, 12vw, 4.2rem);
    line-height: 0.92;
  }

  .company-description {
    font-size: 0.91rem;
  }

  .company-actions {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
  }

  .company-actions .button {
    min-width: 0;
    padding-inline: 14px;
    font-size: 0.78rem;
  }

  .company-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .company-values::-webkit-scrollbar {
    display: none;
  }

  .value-card {
    min-width: 150px;
    min-height: 96px;
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    scroll-snap-align: start;
  }

  .catalogue-section {
    margin-inline: -2px;
    padding: 15px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading h2 {
    font-size: 1.45rem;
  }

  .section-heading small {
    font-size: 0.72rem;
  }

  .catalogue-controls {
    display: none;
  }

  .catalogue-track {
    margin-right: -15px;
    padding-right: 15px;
    grid-auto-columns: minmax(210px, 72%);
  }

  .company-connect {
    align-items: flex-start;
    flex-direction: column;
  }

  .company-footer,
  .legacy-footer {
    margin-top: 18px;
  }

  .legacy-main {
    padding: 12px 0 14px;
  }

  .legacy-wordmark {
    min-height: 76px;
  }

  .legacy-wordmark strong {
    font-size: clamp(5.9rem, 26vw, 8rem);
  }

  .legacy-wordmark span {
    font-size: clamp(1.75rem, 7.5vw, 2.55rem);
  }

  .pin-stage {
    width: min(360px, 88%);
    margin-top: 0;
  }

  .legacy-sale {
    margin-top: -2px;
  }

  .legacy-kicker {
    font-size: 0.64rem;
  }

  .legacy-sale h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .legacy-description {
    font-size: 0.87rem;
  }

  .legacy-order-card {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .legacy-price {
    padding: 12px 8px;
  }

  .legacy-price strong b {
    font-size: clamp(3.5rem, 16vw, 5rem);
  }

  .legacy-contact {
    padding: 12px;
  }

  .legacy-contact__brands picture {
    width: min(132px, 72%);
  }

  .legacy-contact__brands em,
  .legacy-contact__brands strong {
    display: none;
  }

  .legacy-contact a strong {
    font-size: clamp(1.35rem, 6.6vw, 1.8rem);
  }

  .legacy-actions {
    grid-template-columns: 1fr;
  }

  .legacy-proof {
    margin-top: 14px;
  }

  .legacy-proof article {
    padding-inline: 6px;
  }

  .legacy-proof strong {
    font-size: 0.63rem;
  }

  .legacy-footer {
    color: rgba(6, 27, 61, 0.7);
  }

  .modal {
    width: 100vw;
    max-width: none;
    max-height: 100dvh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .order-dialog {
    background: #fff;
  }

  .order-dialog__shell {
    height: 100%;
    display: block;
    overflow-y: auto;
  }

  .order-dialog__product {
    min-height: 360px;
    padding: calc(24px + var(--safe-top)) 22px 24px;
  }

  .dialog-close--product {
    display: grid;
  }

  .order-product-image {
    min-height: 210px;
  }

  .order-product-image img {
    max-height: 235px;
  }

  .order-dialog__product > p:last-child {
    margin-bottom: 0;
  }

  .order-dialog__form {
    min-height: 560px;
    padding-bottom: calc(30px + var(--safe-bottom));
    border-radius: 24px 24px 0 0;
    position: relative;
    margin-top: -16px;
    z-index: 3;
  }

  .order-dialog__form .dialog-heading .dialog-close {
    display: none;
  }

  .form-grid--two,
  .form-grid--three {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flyer-dialog,
  .info-dialog,
  .product-editor-dialog,
  .order-detail-dialog,
  .admin-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
  }

  .dialog-heading--dark {
    padding-top: calc(16px + var(--safe-top));
  }

  .flyer-dialog__body {
    min-height: calc(100dvh - 82px - var(--safe-top));
  }

  .flyer-dialog__body img {
    max-height: calc(100dvh - 120px - var(--safe-top));
  }

  .admin-header {
    min-height: calc(66px + var(--safe-top));
    padding-top: calc(8px + var(--safe-top));
  }

  .admin-header__brand picture {
    width: 92px;
  }

  .admin-header__brand p {
    display: none;
  }

  .admin-header__brand h2 {
    font-size: 0.96rem;
  }

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

  .admin-auth__visual {
    min-height: 290px;
    padding: 32px 24px;
  }

  .admin-lock {
    width: 58px;
    height: 58px;
  }

  .admin-auth__visual h3 {
    font-size: 2.4rem;
  }

  .admin-auth__form {
    padding: 28px 22px calc(34px + var(--safe-bottom));
  }

  .admin-dashboard {
    display: flex;
    flex-direction: column;
  }

  .admin-userbar {
    min-height: 56px;
    flex: 0 0 auto;
  }

  .admin-userbar > div:first-child {
    display: grid;
    gap: 1px;
  }

  .admin-userbar__actions .button:first-child {
    display: none;
  }

  .admin-tabs {
    min-height: 58px;
    padding: 7px 9px;
    flex: 0 0 auto;
    flex-direction: row;
    gap: 5px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-tab {
    width: auto;
    min-width: max-content;
    min-height: 42px;
    padding: 0 12px;
  }

  .admin-content {
    flex: 1;
  }

  .admin-panel {
    padding: 18px 14px calc(24px + var(--safe-bottom));
  }

  .admin-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-panel-heading > .button,
  .admin-heading-actions {
    width: 100%;
  }

  .admin-heading-actions .button {
    flex: 1;
  }

  .visibility-grid,
  .media-admin-grid {
    grid-template-columns: 1fr;
  }

  .visibility-card {
    min-height: 116px;
    grid-template-columns: auto 48px minmax(0, 1fr) auto;
    padding: 15px;
  }

  .visibility-card__icon {
    width: 48px;
    height: 48px;
  }

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

  .admin-stat-grid article {
    min-height: 92px;
  }

  .admin-filters,
  .catalogue-admin-toolbar {
    grid-template-columns: 1fr;
  }

  .catalogue-admin-toolbar .button {
    width: 100%;
  }

  .order-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
  }

  .order-row__contact,
  .order-row__money {
    grid-column: 1;
  }

  .order-row .status-pill {
    grid-column: 2;
    grid-row: 1;
  }

  .order-row__actions {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: stretch;
    flex-direction: column;
  }

  .icon-action {
    height: 100%;
  }

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

  .media-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .media-card__preview {
    min-height: 110px;
  }

  .settings-toggle-grid {
    grid-template-columns: 1fr;
  }

  .product-editor-layout {
    grid-template-columns: 1fr;
  }

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

  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .order-detail-item--wide {
    grid-column: auto;
  }

  .order-detail-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .order-detail-actions > div {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
  }

  .order-detail-actions > .button {
    width: 100%;
  }

  .toast-region {
    left: 12px;
    right: 12px;
    bottom: calc(12px + var(--safe-bottom));
  }

  .toast {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .mobile-header {
    grid-template-columns: 68px minmax(0, 1fr) auto;
  }

  .mobile-brand {
    width: 72px;
  }

  .mobile-side-tab {
    font-size: 0.58rem;
  }

  .mobile-order-button,
  .mobile-admin-button {
    width: 36px;
    height: 36px;
  }

  .panel-shell {
    padding-inline: 14px;
  }

  .company-hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.4rem);
  }

  .company-actions {
    grid-template-columns: 1fr;
  }

  .company-values {
    margin-right: -14px;
    padding-right: 14px;
  }

  .catalogue-track {
    grid-auto-columns: minmax(200px, 84%);
  }

  .legacy-wordmark strong {
    font-size: 5.7rem;
  }

  .legacy-wordmark span {
    font-size: 1.65rem;
  }

  .pin-stage {
    width: 94%;
  }

  .legacy-order-card {
    grid-template-columns: 1fr;
  }

  .legacy-contact > span {
    font-size: 0.58rem;
  }

  .legacy-contact a strong {
    font-size: 1.24rem;
  }

  .legacy-proof strong {
    font-size: 0.55rem;
  }

  .company-footer,
  .legacy-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-stat-grid,
  .admin-product-grid {
    grid-template-columns: 1fr;
  }

  .visibility-card {
    grid-template-columns: auto 44px minmax(0, 1fr);
  }

  .visibility-card em {
    display: none;
  }

  .media-card {
    grid-template-columns: 1fr;
  }

  .media-card__preview {
    min-height: 190px;
  }

  .settings-toggle-grid--product {
    grid-template-columns: 1fr;
  }

  .product-editor-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .product-editor-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal-block {
    opacity: 1;
    transform: none;
  }
}

/* Mobile integrity fixes: preserve artwork ratios and prevent wide content from stretching a side. */
img {
  height: auto;
}

.panel-shell,
.company-main,
.company-hero,
.company-values,
.catalogue-section,
.legacy-main,
.legacy-wordmark,
.pin-stage,
.legacy-sale {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 820px) {
  .mobile-header {
    height: calc(62px + var(--safe-top));
    min-height: 0;
    overflow: hidden;
  }

  .mobile-brand {
    height: 46px;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  .mobile-brand picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
  }

  .mobile-brand img {
    width: 100%;
    height: auto;
    max-height: 44px;
    object-fit: contain;
    object-position: left center;
  }

  .company-hero__media picture,
  .company-hero__media img,
  .pin-stage picture,
  .pin-stage img {
    min-width: 0;
    max-width: 100%;
    height: auto;
  }

  .company-hero h1,
  .company-description,
  .legacy-sale h1,
  .legacy-description {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .company-values {
    width: 100%;
    display: flex;
  }

  .value-card {
    flex: 0 0 150px;
  }

  .pin-stage picture {
    display: grid;
    place-items: center;
  }
}

/* ========================================================================== */
/* v3 — International commerce, services and delegated backend access         */
/* ========================================================================== */

[hidden] { display: none !important; }

/* Public services */
.services-section {
  max-width: 900px;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid rgba(145, 242, 13, 0.13);
  border-radius: 24px;
  background:
    radial-gradient(circle at 96% 4%, rgba(145, 242, 13, 0.09), transparent 15rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.018));
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.17);
}

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

.service-card {
  min-height: 228px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(145, 242, 13, 0.075), transparent 45%),
    rgba(6, 12, 8, 0.78);
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-card::after {
  content: "";
  width: 140px;
  height: 140px;
  position: absolute;
  right: -80px;
  bottom: -90px;
  border-radius: 50%;
  background: rgba(145, 242, 13, 0.08);
  filter: blur(8px);
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(145, 242, 13, 0.43);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28), 0 0 34px rgba(145, 242, 13, 0.07);
}

.service-card--featured {
  border-color: rgba(145, 242, 13, 0.32);
  background:
    linear-gradient(150deg, rgba(145, 242, 13, 0.15), transparent 56%),
    rgba(6, 12, 8, 0.88);
}

.service-card__icon,
.service-card > span:first-child {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #061005;
  border-radius: 14px;
  background: var(--green);
  box-shadow: 0 0 26px rgba(145, 242, 13, 0.18);
  font-size: 1.05rem;
  font-weight: 950;
  position: relative;
  z-index: 1;
}

.service-card small {
  margin-top: 17px;
  color: var(--green);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-card h3 {
  margin: 6px 0 7px;
  font-size: 1.05rem;
  line-height: 1.12;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.service-card__cta {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.service-card__cta::after { content: "  ↗"; white-space: pre; }

.services-empty {
  margin-top: 16px;
  padding: 30px 20px;
  text-align: center;
  border: 1px dashed rgba(145, 242, 13, 0.24);
  border-radius: 18px;
  background: rgba(145, 242, 13, 0.035);
}
.services-empty > span { color: var(--green); font-size: 1.6rem; }
.services-empty h3 { margin: 8px 0 4px; }
.services-empty p { margin: 0; color: var(--muted); font-size: 0.84rem; }

/* Expanded order experience */
.order-dialog {
  width: min(1160px, calc(100vw - 24px));
  max-height: min(95vh, 1040px);
  overflow: hidden;
}

.order-dialog__shell {
  min-height: min(900px, 94vh);
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
}

.order-dialog__product { min-height: 100%; }
.order-dialog__form {
  min-height: 0;
  padding-bottom: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #c6ced3 transparent;
}

.order-summary-strip--expanded {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.order-summary-strip--expanded > div {
  min-width: 0;
  padding: 9px 10px;
  display: grid;
  gap: 3px;
  border-radius: 10px;
  background: rgba(7, 27, 61, 0.035);
}

.order-summary-strip--expanded .order-summary-strip__total {
  color: #fff;
  background: #071b3d;
}
.order-summary-strip--expanded .order-summary-strip__total span { color: rgba(255,255,255,.63); }
.order-summary-strip--expanded .order-summary-strip__total strong { color: var(--gold); }

.order-form-section {
  margin: 15px 0;
  padding: 16px;
  border: 1px solid #e4e9e7;
  border-radius: 17px;
  background: #f8faf8;
}

.order-form-section--location {
  margin-top: 0;
  border-color: rgba(113, 180, 12, 0.3);
  background: linear-gradient(145deg, rgba(145, 242, 13, 0.08), #f8faf8 46%);
}

.order-assistance {
  margin-top: 4px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #102039;
  border: 1px solid rgba(6, 27, 61, 0.12);
  border-radius: 14px;
  background: #fff;
}

.order-assistance > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.order-assistance strong {
  font-size: 0.84rem;
}

.order-assistance p {
  margin: 0;
  color: #6d798d;
  font-size: 0.7rem;
  line-height: 1.45;
}

.button--assist {
  min-height: 44px;
  flex: 0 0 auto;
  color: #071b3d;
  background: var(--gold);
  box-shadow: none;
}

.order-form-section__heading {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-form-section__heading > span {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #071006;
  border-radius: 10px;
  background: var(--green);
  font-size: 0.68rem;
  font-weight: 950;
}

.order-form-section__heading > div { display: grid; gap: 1px; }
.order-form-section__heading strong { color: #102039; font-size: 0.83rem; }
.order-form-section__heading small { color: #738095; font-size: 0.69rem; }

.payment-choice {
  margin: 15px 0;
  padding: 15px;
  display: grid;
  gap: 9px;
  border: 1px solid #dce3e0;
  border-radius: 17px;
  background: #fff;
}

.payment-choice legend {
  padding: 0 7px;
  color: #4a566b;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.payment-choice > label {
  min-height: 66px;
  padding: 12px 13px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid #e1e7e4;
  border-radius: 13px;
  background: #f8faf8;
  cursor: pointer;
}

.payment-choice input { margin-top: 3px; accent-color: #77bd0d; }
.payment-choice label > span { display: grid; gap: 2px; }
.payment-choice strong { color: #13203a; font-size: 0.78rem; }
.payment-choice small { color: #6d798d; font-size: 0.68rem; line-height: 1.35; }
.payment-choice > p { margin: 2px 3px 0; color: #778397; font-size: 0.66rem; line-height: 1.45; }

.payment-continue {
  margin-top: 9px;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #071b3d, #0b3779);
  text-decoration: none;
}

.ordering-paused .legacy-order-card,
.ordering-paused .catalogue-section { opacity: 0.9; }

/* Current management console structure */
.admin-dialog__shell {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 10% 0%, rgba(145, 242, 13, 0.08), transparent 24rem),
    var(--admin-bg);
}

.admin-dialog__header {
  min-height: 72px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(8, 14, 12, 0.96);
}
.admin-dialog__header p { margin: 0; color: var(--green); font-size: .62rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.admin-dialog__header h2 { margin: 3px 0 0; font-size: 1.22rem; }

.admin-auth__intro {
  min-height: 520px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(circle at 30% 25%, rgba(145, 242, 13, 0.16), transparent 20rem),
    linear-gradient(145deg, #070c09, #101a14);
}
.admin-auth__intro .admin-lock { font-size: 2rem; }
.admin-auth__intro > p:first-of-type {
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  color: var(--green);
  border: 1px solid rgba(145, 242, 13, .24);
  border-radius: 999px;
  background: rgba(145, 242, 13, .08);
  font-size: .66rem;
  font-weight: 850;
  text-transform: uppercase;
}
.admin-auth__intro h3 { margin: 18px 0 8px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: .98; letter-spacing: -.055em; }
.admin-auth__intro > p:last-child { max-width: 470px; margin: 0; color: var(--muted); }

.admin-dashboard {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-userbar small {
  color: rgba(255,255,255,.45);
  font-size: .67rem;
  line-height: 1.35;
}

.admin-workspace {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
}

.admin-tabs {
  min-height: 0;
  padding: 14px 10px;
  overflow-y: auto;
}

.admin-tabs > button {
  width: 100%;
  min-height: 45px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.55);
  border: 0;
  border-radius: 11px;
  background: transparent;
  font-size: .74rem;
  font-weight: 820;
  text-align: left;
  cursor: pointer;
}
.admin-tabs > button span { width: 22px; color: rgba(145,242,13,.72); text-align: center; }
.admin-tabs > button:hover,
.admin-tabs > button:focus-visible { color: #fff; background: rgba(255,255,255,.055); }
.admin-tabs > button.is-active { color: #071006; background: var(--green); box-shadow: 0 10px 28px rgba(145,242,13,.14); }
.admin-tabs > button.is-active span { color: #071006; }

.admin-panels {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  scrollbar-color: #3d4b45 transparent;
}

.admin-panel { min-height: 100%; padding: 24px; }
.admin-panel__heading {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.admin-panel__heading p { margin: 0 0 4px; color: var(--green); font-size: .64rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.admin-panel__heading h3 { margin: 0; font-size: clamp(1.45rem, 2.2vw, 2.05rem); line-height: 1.03; letter-spacing: -.04em; }
.admin-panel__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.admin-panel__description { max-width: 850px; margin: -7px 0 17px; color: rgba(255,255,255,.48); font-size: .75rem; line-height: 1.5; }

.visibility-card {
  min-height: 118px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
}
.visibility-card > div { display: grid; gap: 3px; }
.visibility-card--gold::before { background: rgba(255,200,63,.1); }
.visibility-card--gold input:checked + .switch { border-color: rgba(255,200,63,.5); background: rgba(255,200,63,.22); }
.visibility-card--gold input:checked + .switch i { background: var(--gold); box-shadow: 0 0 14px rgba(255,200,63,.45); }

.overview-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.overview-stats article {
  min-height: 108px;
  padding: 15px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: var(--admin-panel);
}
.overview-stats span { color: rgba(255,255,255,.48); font-size: .66rem; text-transform: uppercase; }
.overview-stats strong { margin: 5px 0 1px; color: #fff; font-size: 1.55rem; line-height: 1; }
.overview-stats small { color: rgba(255,255,255,.34); font-size: .62rem; }

.admin-filter-bar {
  margin-bottom: 14px;
  padding: 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}
.admin-filter-bar .field { margin: 0; }
.admin-filter-bar--orders { grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(145px, .65fr)); }

.compact-toggle {
  width: fit-content;
  margin: 0 0 13px;
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  font-size: .7rem;
  cursor: pointer;
  position: relative;
}
.compact-toggle input { position: absolute; opacity: 0; }
.compact-toggle input:checked + .switch { border-color: rgba(145,242,13,.45); background: rgba(145,242,13,.23); }
.compact-toggle input:checked + .switch i { transform: translateX(20px); background: var(--green); }

.country-summary {
  margin-bottom: 13px;
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 8px;
  overflow-x: auto;
}
.country-summary__item {
  min-width: 120px;
  padding: 11px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
  background: rgba(255,255,255,.03);
}
.country-summary__item span { color: rgba(255,255,255,.47); font-size: .62rem; }
.country-summary__item strong { color: #fff; font-size: 1.05rem; }
.country-summary__item small { color: var(--gold-light); font-size: .62rem; }

.order-row {
  grid-template-columns: minmax(170px, 1.05fr) minmax(125px, .8fr) minmax(150px, .92fr) minmax(130px, .72fr) 100px auto;
}
.order-row__destination { min-width: 0; display: grid; gap: 3px; }
.order-country-group {
  margin: 12px 0 2px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #071006;
  border-radius: 12px;
  background: linear-gradient(100deg, var(--green), #baf56c);
}
.order-country-group strong { font-size: .78rem; }
.order-country-group span { font-size: .67rem; font-weight: 800; }

.region-rate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.region-rate-card {
  padding: 13px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(255,255,255,.024);
}
.region-rate-card .settings-toggle { margin-bottom: 11px; }
.region-rate-card .field { margin-bottom: 0; }

.country-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.country-checkbox-grid label {
  min-height: 42px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 11px;
  background: rgba(255,255,255,.028);
  font-size: .69rem;
  cursor: pointer;
}
.country-checkbox-grid input { accent-color: var(--green); }
.country-checkbox-grid.is-disabled { opacity: .48; }

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.permission-grid label {
  min-height: 66px;
  padding: 11px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(255,255,255,.024);
  cursor: pointer;
}
.permission-grid input { margin-top: 3px; accent-color: var(--green); }
.permission-grid label > span { display: grid; gap: 2px; }
.permission-grid strong { font-size: .72rem; }
.permission-grid small { color: rgba(255,255,255,.4); font-size: .61rem; line-height: 1.35; }

.settings-section--embedded { margin-top: 14px; margin-bottom: 0; }

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

.admin-service-card {
  min-width: 0;
  padding: 15px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 17px;
  background: var(--admin-panel);
}
.admin-service-card--featured { border-color: rgba(145,242,13,.28); box-shadow: inset 0 0 28px rgba(145,242,13,.035); }
.admin-service-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #071006;
  border-radius: 14px;
  background: var(--green);
  font-weight: 950;
}
.admin-service-card__body { min-width: 0; }
.admin-service-card__top,
.admin-user-card__top { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.admin-service-card__top span,
.admin-user-card__top span { color: var(--green); font-size: .61rem; font-weight: 900; text-transform: uppercase; }
.admin-service-card__top span.is-hidden,
.admin-user-card__top span.is-inactive { color: #ff7883; }
.admin-service-card__top em,
.admin-user-card__top em { color: rgba(255,255,255,.4); font-size: .6rem; font-style: normal; }
.admin-service-card h4,
.admin-user-card h4 { margin: 7px 0 4px; font-size: .91rem; }
.admin-service-card p,
.admin-user-card p { margin: 0; color: rgba(255,255,255,.45); font-size: .67rem; line-height: 1.4; }
.admin-service-card__footer { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-service-card__footer small { color: rgba(255,255,255,.36); font-size: .61rem; }

.admin-user-card {
  min-width: 0;
  padding: 15px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 17px;
  background: var(--admin-panel);
}
.admin-user-card--owner { border-color: rgba(255,200,63,.28); background: linear-gradient(150deg, rgba(255,200,63,.055), var(--admin-panel)); }
.admin-user-card--inactive { opacity: .7; }
.admin-user-card__avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #071006;
  border-radius: 15px;
  background: var(--green);
  font-weight: 950;
}
.admin-user-card--owner .admin-user-card__avatar { background: var(--gold); }
.admin-user-card__body { min-width: 0; }
.admin-user-card__scope,
.admin-user-card__permissions { margin-top: 8px; display: block; color: rgba(255,255,255,.42); font-size: .62rem; line-height: 1.4; }
.admin-user-card__permissions { margin-top: 2px; color: rgba(145,242,13,.62); }
.admin-user-card__actions { margin-top: 12px; display: flex; gap: 7px; flex-wrap: wrap; }

.service-editor-dialog,
.user-editor-dialog { width: min(980px, calc(100vw - 28px)); }
#serviceEditorForm,
#userEditorForm { padding: 20px; }

@media (max-width: 1160px) {
  .admin-filter-bar--orders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-row { grid-template-columns: minmax(170px, 1.1fr) minmax(135px, .9fr) minmax(150px, .95fr) 105px auto; }
  .order-row__contact { display: none; }
  .admin-service-grid,
  .admin-user-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-dialog { overflow: auto; }
  .order-dialog__shell { min-height: 0; grid-template-columns: 1fr; }
  .order-dialog__product { min-height: auto; padding: 25px 22px 22px; }
  .order-product-image { min-height: 190px; }
  .order-product-image img { max-height: 230px; }
  .order-dialog__form { overflow: visible; }
  .order-summary-strip--expanded { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-workspace { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .admin-tabs { padding: 8px 10px; flex-direction: row; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); overflow-x: auto; }
  .admin-tabs > button { width: auto; min-width: max-content; padding: 0 13px; }
  .overview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-rate-grid { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: minmax(160px, 1fr) minmax(140px, .9fr) 95px auto; }
  .order-row__contact,
  .order-row__destination { display: none; }
}

@media (max-width: 640px) {
  .order-assistance {
    align-items: stretch;
    flex-direction: column;
  }

  .button--assist {
    width: 100%;
    justify-content: center;
  }

  .services-section { margin-top: 16px; padding: 16px; border-radius: 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 195px; }
  .order-dialog { width: 100vw; max-width: none; max-height: 100dvh; border-radius: 0; }
  .order-dialog__product { padding: 20px 18px 18px; }
  .order-dialog__product > p:first-of-type { margin-top: 11px; }
  .order-dialog__form { padding: 6px 6px max(24px, env(safe-area-inset-bottom)); }
  .order-dialog__form .dialog-heading { position: sticky; top: 0; z-index: 7; background: rgba(255,255,255,.95); backdrop-filter: blur(14px); }
  .order-summary-strip--expanded { margin-inline: 12px; grid-template-columns: 1fr 1fr; }
  #orderForm { padding: 0 12px; }
  .order-form-section { padding: 13px; }
  .form-grid--two,
  .form-grid--three { grid-template-columns: 1fr; }
  .admin-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .admin-dialog__header { min-height: 62px; padding: 9px 12px; }
  .admin-auth { grid-template-columns: 1fr; }
  .admin-auth__intro { min-height: 220px; padding: 28px 22px; }
  .admin-auth__intro h3 { font-size: 2.05rem; }
  .admin-auth__form { padding: 25px 20px 34px; }
  .admin-userbar { align-items: flex-start; }
  .admin-userbar > div:first-child { display: grid; gap: 2px; }
  .admin-panel { padding: 17px 13px max(28px, env(safe-area-inset-bottom)); }
  .admin-panel__heading { align-items: stretch; flex-direction: column; }
  .admin-panel__actions { justify-content: flex-start; }
  .visibility-grid,
  .overview-stats,
  .admin-filter-bar--orders,
  .permission-grid,
  .country-checkbox-grid,
  .admin-service-grid,
  .admin-user-grid { grid-template-columns: 1fr; }
  .visibility-card { min-height: 98px; padding: 15px; }
  .order-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .order-row__contact,
  .order-row__destination,
  .order-row__money { display: none; }
  .order-row .status-pill { grid-column: 1; }
  .order-row__actions { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; }
  .country-summary { grid-template-columns: repeat(6, 125px); }
  .region-rate-card .form-grid--two { grid-template-columns: 1fr 1fr; }
  .settings-toggle-grid { grid-template-columns: 1fr; }
  .media-admin-grid { grid-template-columns: 1fr; }
  .media-card { grid-template-columns: 110px minmax(0, 1fr); }
  #serviceEditorForm,
  #userEditorForm { padding: 15px; }
}

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

/* Invisible anti-bot field: retained in the form without exposing it to customers. */
.website-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ========================================================================== */
/* v4.0.0 — Reliable order scrolling, sticky submission and payment workflow  */
/* ========================================================================== */

/*
 * Desktop: the product summary and the long international order form are real
 * viewport-bounded scroll regions. The form's final action remains reachable
 * even on short laptop screens.
 */
.order-dialog {
  width: min(1160px, calc(100vw - 24px));
  height: min(95vh, 1040px);
  height: min(95dvh, 1040px);
  max-height: min(95vh, 1040px);
  max-height: min(95dvh, 1040px);
  overflow: hidden;
}

.order-dialog__shell {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  grid-template-rows: minmax(0, 1fr);
}

.order-dialog__product,
.order-dialog__form {
  min-height: 0;
  height: 100%;
}

.order-dialog__product {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.order-dialog__form {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding: 110px 0 max(132px, env(safe-area-inset-bottom));
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.order-dialog__form .dialog-heading {
  position: sticky;
  top: 0;
  z-index: 14;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(6, 27, 61, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.order-submit-dock {
  margin-top: 8px;
  padding: 14px 0 max(12px, env(safe-area-inset-bottom));
  position: sticky;
  bottom: -1px;
  z-index: 13;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 20px, #fff 100%);
}

.order-submit-dock::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(7, 27, 61, 0.12), transparent);
  pointer-events: none;
}

.order-submit-dock .button {
  position: relative;
  z-index: 1;
}

.order-form-status {
  margin: 10px 0 18px;
}

.order-mobile-total {
  display: none;
}

.order-privacy {
  padding-bottom: 18px;
}

/* Payment methods, EmailJS and proof review in the protected console. */
.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.payment-method-editor {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(145, 242, 13, 0.035), transparent 44%),
    rgba(255, 255, 255, 0.023);
}

.payment-method-editor .settings-toggle {
  margin-bottom: 13px;
}

.payment-method-editor .field:last-child,
.payment-method-editor .form-grid:last-child .field {
  margin-bottom: 0;
}

.settings-section--emailjs {
  border-color: rgba(145, 242, 13, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(145, 242, 13, 0.06), transparent 22rem),
    rgba(255, 255, 255, 0.023);
}

.emailjs-test-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.emailjs-test-row .field {
  margin-bottom: 0;
}

.emailjs-test-row .button {
  min-height: 44px;
  margin-bottom: 0;
}

.settings-security-note {
  margin: 13px 0 0;
  padding: 11px 12px;
  color: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 200, 63, 0.17);
  border-radius: 12px;
  background: rgba(255, 200, 63, 0.045);
  font-size: 0.66rem;
  line-height: 1.52;
}

.settings-security-note strong {
  color: var(--gold-light);
}

.payment-request-admin,
.payment-proof-admin {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid rgba(145, 242, 13, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(145, 242, 13, 0.055), transparent 48%),
    rgba(255, 255, 255, 0.025);
}

.payment-proof-admin {
  border-color: rgba(255, 200, 63, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 200, 63, 0.055), transparent 48%),
    rgba(255, 255, 255, 0.025);
}

.payment-request-admin__heading,
.payment-proof-admin__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.payment-request-admin__heading > div,
.payment-proof-admin__heading > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.payment-request-admin__heading span,
.payment-proof-admin__heading span {
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-request-admin__heading strong,
.payment-proof-admin__heading strong {
  color: #fff;
  font-size: 0.84rem;
}

.payment-request-admin__actions,
.payment-proof-admin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

#paymentRequestLink {
  margin-top: 10px;
  padding: 10px 11px;
  display: block;
  color: var(--green);
  border: 1px solid rgba(145, 242, 13, 0.12);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.66rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-decoration: none;
}

#paymentRequestLink:hover,
#paymentRequestLink:focus-visible {
  border-color: rgba(145, 242, 13, 0.38);
  text-decoration: underline;
}

#paymentRequestHelp {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.66rem;
  line-height: 1.5;
}

.payment-proof-admin__layout {
  margin: 13px 0;
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.35fr);
  gap: 13px;
}

.payment-proof-admin__image {
  min-height: 190px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.payment-proof-admin__image img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
}

.payment-proof-admin__details {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.payment-proof-admin__detail {
  min-width: 0;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.payment-proof-admin__detail span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.payment-proof-admin__detail strong {
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.order-detail-actions,
.order-detail-actions > div {
  flex-wrap: wrap;
}

/*
 * Tablet/mobile: the inner shell is the single touch-scroll surface. This
 * removes the nested-overflow conflict that previously trapped the customer
 * above the address fields and submit button.
 */
@media (max-width: 900px) {
  .order-dialog {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    touch-action: pan-y;
  }

  .order-dialog__shell {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-padding-bottom: max(138px, env(safe-area-inset-bottom));
    scrollbar-gutter: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .order-dialog__product,
  .order-dialog__form {
    height: auto;
    min-height: 0;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .order-dialog__form {
    padding-bottom: 0;
    scroll-padding: 0;
  }

  .order-dialog__form .dialog-heading {
    top: 0;
  }

  .order-dialog__form .dialog-heading .dialog-close {
    display: grid;
    color: #526074;
    border-color: rgba(6, 27, 61, 0.12);
    background: rgba(7, 27, 61, 0.035);
  }

  .order-submit-dock {
    margin-inline: -1px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .order-dialog.is-legacy-pin-order .order-dialog__form > .order-summary-strip--expanded {
    display: none;
  }

  .order-mobile-total:not([hidden]) {
    margin: 0 0 11px;
    padding: 14px;
    display: grid;
    gap: 5px;
    color: #fff;
    border: 1px solid rgba(255, 200, 63, 0.28);
    border-radius: 15px;
    background:
      radial-gradient(circle at 100% 0%, rgba(255, 200, 63, 0.13), transparent 11rem),
      #071b3d;
    box-shadow: 0 12px 28px rgba(7, 27, 61, 0.16);
  }

  .order-mobile-total__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .order-mobile-total__heading span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .order-mobile-total__heading strong {
    color: var(--gold);
    font-size: 1.22rem;
    line-height: 1;
  }

  .order-mobile-total__breakdown,
  .order-mobile-total__note {
    margin: 0;
  }

  .order-mobile-total__breakdown {
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
  }

  .order-mobile-total__note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.69rem;
    line-height: 1.45;
  }

  .payment-method-grid {
    grid-template-columns: 1fr;
  }

  .payment-proof-admin__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .order-dialog__product {
    min-height: 330px;
    padding: calc(22px + env(safe-area-inset-top)) 18px 22px;
  }

  .order-dialog__form {
    margin-top: -16px;
    padding: 4px 5px 0;
    border-radius: 23px 23px 0 0;
  }

  .order-dialog__form .dialog-heading {
    padding: 14px 13px 11px;
  }

  .order-summary-strip--expanded {
    margin-inline: 9px;
  }

  #orderForm {
    padding: 0 9px;
  }

  .order-form-section {
    padding: 12px;
  }

  .order-submit-dock {
    margin-inline: -9px;
    padding-inline: 9px;
  }

  #submitOrderButton,
  .payment-continue {
    width: 100%;
    min-height: 54px;
  }

  .emailjs-test-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .emailjs-test-row .button {
    width: 100%;
  }

  .payment-request-admin__heading,
  .payment-proof-admin__heading {
    flex-direction: column;
  }

  .payment-request-admin__actions,
  .payment-proof-admin__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .payment-request-admin__actions .button,
  .payment-proof-admin__actions .button {
    flex: 1 1 145px;
  }

  .payment-proof-admin__details {
    grid-template-columns: 1fr;
  }

  .order-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .order-detail-actions > div {
    width: 100%;
  }

  .order-detail-actions .button {
    flex: 1 1 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .order-dialog__shell,
  .order-dialog__form {
    scroll-behavior: auto;
  }
}
