.page-shell { min-height: 100vh; background: linear-gradient(118deg, transparent 0 63%, rgba(120,120,120,.07) 63.1% 80%, transparent 80.1%), var(--paper); }
.simple-header { position: sticky; top: 0; z-index: 50; height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 max(24px, calc((100vw - 1320px) / 2)); color: white; background: var(--black); border-bottom: 1px solid #333; }
.simple-header .brand-plaque { width: 270px; }
.simple-header nav { display: flex; align-items: center; gap: 24px; font-weight: 750; }
.simple-header nav a:hover { color: #ef6469; }
.page-hero { padding: 80px max(24px, calc((100vw - 1320px) / 2)) 48px; color: white; background: linear-gradient(110deg, #151516 0 70%, #2b2b2d 70.2%); }
.page-hero h1 { max-width: 920px; margin-bottom: 15px; font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1; }
.page-hero > p:not(.eyebrow) { max-width: 760px; margin: 0; color: #c7c4bf; line-height: 1.6; }
.page-content { max-width: 1320px; margin: 0 auto; padding: 55px 24px 90px; }
.split-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .7fr); gap: 30px; align-items: start; }
.form-panel, .summary-panel, .info-panel, .admin-panel { padding: 30px; background: white; border: 1px solid var(--line); }
.form-panel, .admin-panel { border-top: 4px solid var(--charcoal); }
.summary-panel { position: sticky; top: 102px; }
.form-panel h2, .summary-panel h2, .info-panel h2, .admin-panel h2 { margin-bottom: 22px; font-size: 1.55rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; align-items: start; }
.field, .form-panel label, .admin-panel label, .login-card label { min-width: 0; display: grid; align-content: start; gap: 8px; }
.field.full, .field-grid .full { grid-column: 1 / -1; }
.field > span, .form-panel label > span, .admin-panel label > span, .login-card label > span { color: #242325; font-size: .7rem; font-weight: 900; line-height: 1.25; text-transform: uppercase; }
.field:has(:required) > span::after, .login-card label:has(:required) > span::after { content: " *"; color: var(--red); }
.field:focus-within > span, .form-panel label:focus-within > span, .admin-panel label:focus-within > span, .login-card label:focus-within > span { color: var(--red-dark); }
.field small { min-height: 18px; margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.field input:user-invalid:not(:focus), .field select:user-invalid:not(:focus), .field textarea:user-invalid:not(:focus) { border-color: #a72a30; background: #fffafa; }
.secure-verification { padding: 18px 20px; background: #eeece8; border: 1px solid #d8d4cd; border-left: 4px solid var(--red); }
.secure-verification strong { font-size: .78rem; text-transform: uppercase; }
.secure-verification p { margin: 6px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.turnstile-note {
  margin: 0;
  color: #5f5c57;
  font-size: .86rem;
  line-height: 1.5;
}
[data-purchase-form][data-turnstile-state="loading"] .turnstile-note,
[data-purchase-form][data-turnstile-state="ready"] .turnstile-note,
[data-purchase-form][data-turnstile-state="reset"] .turnstile-note {
  color: #5f5c57;
}
[data-purchase-form][data-turnstile-state="verified"] .turnstile-note {
  color: #1f6b3a;
  font-weight: 750;
}
[data-purchase-form][data-turnstile-state="error"] .turnstile-note,
[data-purchase-form][data-turnstile-state="expired"] .turnstile-note {
  color: var(--red-dark);
}
[data-purchase-form][data-turnstile-state]:not([data-turnstile-state="verified"]):not([data-turnstile-state="disabled"]) [data-purchase-submit] {
  opacity: .58;
  cursor: not-allowed;
}
.checkbox-field { display: grid !important; grid-column: 1 / -1; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 11px !important; padding: 15px 16px; background: #f0efec; border: 1px solid #dedbd5; cursor: pointer; }
.checkbox-field:hover { border-color: #bcb8b1; background: #ebe9e4; }
.checkbox-field input { width: 18px !important; height: 18px !important; min-height: 18px !important; margin: 1px 0 0; cursor: pointer; }
.checkbox-field span { font-size: .86rem !important; font-weight: 650 !important; text-transform: none !important; line-height: 1.5; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-actions .btn { min-width: 150px; }
.form-message { min-height: 22px; margin: 14px 0 0; color: var(--red-dark); font-size: .86rem; font-weight: 750; line-height: 1.45; }
.summary-items { display: grid; gap: 12px; }
.summary-item { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.summary-item img { width: 68px; height: 60px; object-fit: cover; }
.summary-item h3 { margin: 0 0 4px; font-size: .88rem; }
.summary-item p { margin: 0; color: var(--muted); font-size: .76rem; }
.summary-total { display: flex; justify-content: space-between; padding: 22px 0 14px; font-size: 1.14rem; }
.notice { padding: 16px; color: #4d4b47; background: #eeeae5; border-left: 4px solid var(--red); font-size: .82rem; line-height: 1.55; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 30px; }
.contact-card { padding: 25px; color: white; background: var(--charcoal); }
.contact-card span { display: block; margin-bottom: 10px; color: #ef787d; font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.contact-card strong, .contact-card a { font-size: 1.08rem; overflow-wrap: anywhere; }
.contact-card-link { display: block; border: 1px solid transparent; cursor: pointer; transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.contact-card-link:hover, .contact-card-link:focus-visible { color: white; background: #111; border-color: #5a5a5d; transform: translateY(-2px); }
.spam-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.licence-steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 35px; }
.licence-step { counter-increment: step; padding: 25px; background: white; border: 1px solid var(--line); }
.licence-step::before { content: "0" counter(step); display: block; margin-bottom: 20px; color: var(--red); font-weight: 900; }
.licence-step h2 { font-size: 1.05rem; }
.licence-step p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.source-note { padding: 28px; color: white; background: var(--red); }
.source-note p { max-width: 850px; line-height: 1.6; }

.admin-shell { min-height: 100vh; color: #eee; background: #111; }
.admin-login { position: fixed; inset: 0; z-index: 20; min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(125deg, #080809 0 58%, #1b1b1d 58.2% 78%, #0e0e0f 78.2%); }
.admin-login[hidden] { display: none !important; }
.login-card { width: min(460px, 100%); padding: 35px; background: #f5f4f1; color: var(--ink); border-top: 5px solid var(--red); }
.login-card img { width: 100%; max-height: 80px; object-fit: contain; margin-bottom: 25px; background: #0b0b0c; }
.login-card label { margin-top: 20px; }
.login-card .btn { width: 100%; margin-top: 15px; }
.admin-app { display: none; }
.admin-app.open { display: block; min-height: 100vh; animation: admin-app-reveal .36s ease; }
@keyframes admin-app-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.admin-header { height: 78px; display: flex; justify-content: space-between; align-items: center; padding: 0 28px; background: #080809; border-bottom: 1px solid #333; }
.admin-header img { width: 245px; max-height: 58px; object-fit: contain; }
.admin-header a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #f0ece7;
  border: 1px solid #4a4a4d;
  background: rgba(255,255,255,.03);
  font-weight: 750;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.admin-header a:hover { transform: translateY(-1px); border-color: #777; background: rgba(255,255,255,.08); }
.admin-layout { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 230px 1fr; }
.admin-nav { padding: 25px 14px; background: #181819; }
.admin-nav button { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid transparent; color: #ccc; background: transparent; text-align: left; font-weight: 750; cursor: pointer; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease; }
.admin-nav button:hover { transform: translateY(-1px); color: #fff; border-color: #3e3d42; background: #232325; }
.admin-nav button.active { color: white; border-color: #8e1118; background: linear-gradient(135deg, #951118 0%, #c4141c 100%); }
.admin-main { padding: 34px; background: #f3f2ef; color: var(--ink); }
.admin-view { display: none; max-width: 1180px; }
.admin-view.active { display: block; }
.admin-intro { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 18px 25px; margin-bottom: 25px; }
.admin-intro p { color: var(--muted); }
.admin-intro .btn { align-self: flex-start; }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.overview-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 18px; align-items: start; }
.overview-stack { display: grid; gap: 18px; }
.overview-card h2 { margin-bottom: 10px; }
.overview-meta { display: grid; gap: 8px; margin-top: 18px; }
.overview-meta span {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: white;
  background: #222;
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
.overview-meta small { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.quick-actions .btn { min-width: 0; }
.admin-note { padding: 16px 18px; background: #f0ede7; border: 1px solid #dcd6ce; }
.admin-note strong { display: block; margin-bottom: 6px; font-size: .76rem; text-transform: uppercase; }
.admin-note p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.overview-steps, .overview-list { margin: 0; padding-left: 20px; color: var(--muted); }
.overview-steps li, .overview-list li { margin-bottom: 10px; line-height: 1.55; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 14px; background: white; border: 1px solid var(--line); border-bottom: 0; }
.admin-toolbar label { display: grid; gap: 8px; width: min(360px, 100%); }
.admin-toolbar label span { font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.admin-toolbar input { height: 42px; min-height: 42px; }
.segment-control { display: inline-flex; overflow: hidden; border: 1px solid #aaa7a1; background: #f5f4f1; }
.segment-control button { min-height: 40px; padding: 0 14px; border: 0; border-right: 1px solid #aaa7a1; background: transparent; cursor: pointer; font-weight: 750; transition: background .2s ease, color .2s ease; }
.segment-control button:last-child { border-right: 0; }
.segment-control button:hover { background: #ebe8e1; }
.segment-control button.active { color: white; background: #222; }
.admin-table { width: 100%; border-collapse: collapse; background: white; border: 1px solid var(--line); }
.admin-table th, .admin-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: .82rem; }
.admin-table th { background: #e5e3de; font-size: .68rem; text-transform: uppercase; }
.admin-table img { width: 56px; height: 50px; object-fit: cover; }
.admin-table td small { display: block; margin-top: 4px; color: var(--muted); }
.admin-table tr.is-archived { opacity: .62; }
.admin-table del { display: block; color: var(--muted); font-size: .72rem; }
.sale-admin-price { display: block; color: var(--red); }
.table-action { min-height: 34px; padding: 0 12px; border: 1px solid #c8c3bc; color: #221f1f; background: #f7f5f1; cursor: pointer; font-weight: 750; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease; }
.table-action:hover { transform: translateY(-1px); border-color: #8f8a83; background: #ebe7df; }
.table-action.destructive { color: #8d1218; border-color: #d0b2b5; background: #faf1f2; }
.table-action.destructive:hover { border-color: #b56a72; background: #f4e3e5; }
.table-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stock-toggle { min-width: 96px; min-height: 34px; padding: 0 12px; border: 1px solid; cursor: pointer; font-weight: 800; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.stock-toggle:hover:not(:disabled) { transform: translateY(-1px); }
.stock-toggle.in { color: #176d3b; background: #e4f3ea; border-color: #8ac09f; }
.stock-toggle.out { color: #8c2429; background: #f6e5e6; border-color: #d3a0a3; }
.stock-toggle:disabled { cursor: not-allowed; opacity: .7; }
.wizard-steps { display: flex; gap: 7px; margin-bottom: 22px; }
.wizard-steps span { min-width: 34px; height: 34px; display: grid; place-items: center; background: #d8d6d1; font-weight: 850; }
.wizard-steps span.active { color: white; background: var(--red); }
.image-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.image-preview > div { position: relative; }
.image-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.image-preview button { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; color: white; background: #111; border: 1px solid #777; cursor: pointer; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px)); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.image-preview button:hover { transform: translateY(-1px); border-color: #bbb; background: #222; }
.discount-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 22px; align-items: start; }
.product-pick-list { margin: 0; padding: 15px; border: 1px solid var(--control-border); }
.product-pick-list legend { padding: 0 7px; font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.product-pick-list > div { max-height: 230px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; overflow-y: auto; }
.product-pick-list label { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; padding: 8px; background: #f2f1ee; }
.product-pick-list input { width: 16px !important; min-height: 16px !important; }
.product-pick-list span { font-size: .78rem !important; font-weight: 650 !important; text-transform: none !important; }
.promotion-list { display: grid; gap: 10px; }
.promotion-list article { display: flex; justify-content: space-between; gap: 15px; padding: 18px; background: white; border: 1px solid var(--line); }
.promotion-list article.inactive { opacity: .58; }
.promotion-list p { margin: 5px 0 0; color: var(--muted); font-size: .8rem; }
.promotion-list .table-actions { justify-content: flex-end; }
.status-dot { width: 8px; height: 8px; display: inline-block; margin-right: 8px; border-radius: 50%; background: #249252; }
.inactive .status-dot { background: #888; }
.order-status { width: auto; height: 38px; min-height: 38px; padding-inline: 10px 30px; }
.admin-modal { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 24px; background: rgba(0,0,0,.75); }
.admin-modal.open { display: grid; }
.admin-modal > section { position: relative; width: min(860px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 34px; color: var(--ink); background: #f7f6f3; border-top: 5px solid var(--red); }
.modal-close { position: absolute; top: 20px; right: 20px; }
.work-order-meta, .work-order-total { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-block: 1px solid var(--line); }
.work-order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 22px 0; }
.work-order-grid section { padding: 18px; background: white; border: 1px solid var(--line); }
.work-order-grid h2 { font-size: 1rem; }
.work-order-grid p { color: var(--muted); line-height: 1.55; }
.work-order-lines { display: grid; }
.work-order-lines article { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.work-order-lines small { display: block; margin-top: 4px; color: var(--muted); }
.work-order-total { margin-top: 12px; font-size: 1.15rem; }
.subscriber-list { margin-top: 20px; }
.prototype-tag { padding: 6px 9px; color: #111; background: #f1c94f; font-size: .68rem; font-weight: 900; text-transform: uppercase; }

@media (max-width: 820px) {
  .simple-header { height: auto; min-height: 68px; padding: 8px 16px; }
  .simple-header .brand-plaque { width: 190px; }
  .simple-header nav { gap: 12px; font-size: .76rem; }
  .page-hero { padding: 55px 20px 38px; }
  .page-content { padding: 35px 18px 70px; }
  .split-layout { grid-template-columns: 1fr; }
  .summary-panel { position: static; grid-row: 1; }
  .contact-cards, .licence-steps { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { display: flex; overflow-x: auto; padding: 8px; }
  .admin-nav button { min-width: max-content; width: auto; }
  .admin-main { padding: 22px 14px; }
  .admin-table { display: block; overflow-x: auto; }
  .discount-layout { grid-template-columns: 1fr; }
  .overview-grid,
  .overview-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .field-grid { grid-template-columns: 1fr; }
  .field.full, .field-grid .full, .checkbox-field { grid-column: 1; }
}

@media (max-width: 520px) {
  .simple-header nav a:not(:last-child) { display: none; }
  .form-panel, .summary-panel, .info-panel, .admin-panel { padding: 20px; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  .admin-header { padding: 0 14px; }
  .admin-header img { width: 180px; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .work-order-grid { grid-template-columns: 1fr; }
  .product-pick-list > div { grid-template-columns: 1fr; }
}
