:root {
  color-scheme: dark;
  --bg: #080b0f;
  --surface: #121822;
  --surface-2: #1a2330;
  --surface-3: #202a38;
  --line: #314054;
  --text: #f6f8fb;
  --muted: #9caabd;
  --green: #34d7a5;
  --blue: #6aa8ff;
  --red: #ff7668;
  --yellow: #f4c95d;
  --coral: #ff8f70;
  --violet: #a78bfa;
  --shadow: 0 24px 80px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(8,11,15,.82), var(--bg) 420px),
    radial-gradient(circle at 12% 0%, rgba(52,215,165,.18), transparent 340px),
    radial-gradient(circle at 88% 8%, rgba(255,143,112,.16), transparent 320px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(30px, 4vw, 52px); }
h2 { font-size: 25px; }
h3 { font-size: 17px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 126px;
  padding: 0 max(24px, calc((100vw - 1440px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(8, 11, 15, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 14px; font-weight: 900; }
.brand small { display: block; color: var(--green); font-size: 10px; text-transform: uppercase; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(135deg, var(--green), var(--blue)); color: #07110e; font-size: 20px; box-shadow: 0 0 28px rgba(52,215,165,.2); }
.logo-mark { width: 168px; height: 104px; overflow: hidden; background: #05070a; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 30px rgba(176,65,255,.24); }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.credits { color: var(--muted); font-size: 13px; margin-right: 4px; }

main { width: min(1480px, calc(100% - 40px)); margin: 0 auto; padding: 20px 0 70px; }
.maintenance-banner { margin-bottom: 18px; padding: 13px 15px; border: 1px solid var(--yellow); border-radius: 7px; background: #342d17; color: var(--yellow); font-weight: 800; }
.store-head {
  min-height: min(680px, calc(100vh - 150px));
  display: grid;
  align-items: center;
  margin: 0 calc((min(1480px, calc(100vw - 40px)) - 100vw) / 2);
  padding: 58px max(24px, calc((100vw - 1480px) / 2)) 72px;
}
.hero-image {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(90deg, rgba(5,7,10,.9) 0%, rgba(5,7,10,.66) 36%, rgba(5,7,10,.2) 70%, rgba(5,7,10,.52) 100%),
    linear-gradient(180deg, rgba(5,7,10,.08), rgba(5,7,10,.78)),
    url("/hero/brandforge-hero.png");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: -1;
}
.store-copy { max-width: 780px; }
.store-copy p:last-of-type { color: var(--muted); margin-top: 14px; font-size: 18px; line-height: 1.65; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-kpis { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-kpis span { min-height: 54px; min-width: 120px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(11,15,20,.56); color: var(--muted); font-size: 12px; font-weight: 900; backdrop-filter: blur(12px); }
.hero-kpis strong { display: block; color: var(--text); font-size: 24px; line-height: 1; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; max-width: 760px; }
.hero-proof span { padding: 8px 10px; border: 1px solid rgba(52,215,165,.24); border-radius: 999px; background: rgba(52,215,165,.08); color: #dffcf3; font-size: 12px; font-weight: 900; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 900; text-transform: uppercase; margin-bottom: 7px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }

.shop-toolbar { position: sticky; top: 76px; z-index: 12; display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: -36px 0 28px; padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; background: rgba(10,14,20,.9); backdrop-filter: blur(16px); box-shadow: 0 18px 48px rgba(0,0,0,.26); }
.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.app-card { min-height: 42px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 7px; padding: 0 13px; background: var(--surface); color: var(--muted); font-weight: 900; transition: transform .16s, border-color .16s, background .16s; }
.app-card:hover, .app-card.active { border-color: var(--green); background: #14261f; color: var(--text); transform: translateY(-1px); }
.app-card span { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--yellow); font-size: 11px; }
.search-box { width: min(300px, 100%); }

.themes-section, .assets-section, .history-section { margin-top: 32px; }
.product-count { color: var(--muted); font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card { overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 8px; background: linear-gradient(180deg, var(--surface), #0e131b); display: grid; grid-template-rows: auto 1fr; box-shadow: 0 12px 36px rgba(0,0,0,.22); transition: transform .18s, border-color .18s, box-shadow .18s; }
.product-card:hover { border-color: rgba(106,168,255,.72); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.34); }
.product-image { position: relative; }
.product-image::after { content: ""; position: absolute; inset: auto 0 0; height: 46%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); pointer-events: none; }
.product-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #080b10; transform: scale(1.01); }
.product-label { position: absolute; left: 12px; top: 12px; padding: 5px 8px; border-radius: 5px; background: rgba(8,11,16,.86); color: var(--text); font-size: 11px; font-weight: 900; }
.product-slots { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 6px 9px; border-radius: 5px; background: rgba(8,11,16,.82); color: #d8e5f4; font-size: 11px; font-weight: 900; }
.product-gallery-count { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 6px 9px; border-radius: 5px; background: rgba(8,11,16,.82); color: var(--yellow); font-size: 11px; font-weight: 900; }
.product-body { padding: 18px; display: grid; gap: 14px; align-content: start; }
.product-topline { display: flex; justify-content: space-between; gap: 10px; color: var(--green); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.product-copy { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.product-copy p { color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.5; }
.product-price { white-space: nowrap; color: var(--green); font-weight: 900; font-size: 13px; }
.product-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; }
.product-thumbs img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 5px; border: 1px solid rgba(255,255,255,.1); background: #070a0e; }
.product-features { display: flex; flex-wrap: wrap; gap: 7px; }
.product-features span { padding: 6px 8px; border-radius: 999px; background: rgba(106,168,255,.1); border: 1px solid rgba(106,168,255,.18); color: #cfe0f5; font-size: 11px; font-weight: 900; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.form-panel, .admin-block { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 800; }
input, select, textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); color: var(--text); outline: none; }
select, select option { color-scheme: dark; background: var(--surface-2); color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(112,168,255,.16); }
.check-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.availability { margin-top: 14px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); }
.availability.good { color: var(--green); border-color: #246c56; background: #10271f; }
.availability.bad { color: var(--red); border-color: #704039; background: #2b1715; }
.availability.warn { color: var(--yellow); border-color: #6f5e29; background: #2a2414; }
.reuse-panel-option { margin-top: 12px; display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.035); color: var(--muted); line-height: 1.45; }
.reuse-panel-option input { width: 18px; margin-top: 2px; accent-color: var(--green); }
.reuse-panel-option strong { display: block; color: var(--text); margin-bottom: 2px; }

.hosting-panel .section-heading { margin-bottom: 14px; }
.hosting-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.hosting-option {
  min-height: 126px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 9px;
  align-content: start;
  color: var(--muted);
}
.hosting-option.active { border-color: var(--green); background: rgba(52,215,165,.08); }
.hosting-option.covered { border-color: rgba(244,201,93,.62); background: rgba(244,201,93,.07); }
.hosting-option input { width: 17px; margin-top: 2px; accent-color: var(--green); }
.hosting-option strong { display: block; color: var(--text); font-size: 14px; }
.hosting-option small { display: block; margin-top: 5px; font-size: 12px; line-height: 1.35; }
.hosting-option b { grid-column: 2; color: var(--green); font-size: 12px; }
.hosting-option.covered b { color: var(--yellow); }

.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.asset-option { min-height: 270px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, var(--surface), #0e141c); display: grid; grid-template-rows: auto 1fr auto; gap: 13px; }
.asset-option p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.asset-preview { min-height: 125px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 7px; color: var(--muted); overflow: hidden; }
.asset-preview img { width: 100%; height: 150px; object-fit: contain; }
.asset-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.asset-actions input { display: none; }

.button { min-height: 42px; padding: 0 16px; border-radius: 7px; border: 1px solid transparent; font-weight: 900; color: var(--text); text-decoration: none; display: inline-grid; place-items: center; transition: transform .16s, filter .16s, border-color .16s; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: linear-gradient(135deg, var(--green), var(--blue)); color: #06110d; box-shadow: 0 10px 28px rgba(52,215,165,.16); }
.button.secondary { background: var(--surface-2); border-color: var(--line); }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); color: var(--text); }

.builds { display: grid; gap: 10px; }
.build-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, var(--surface), #0e141b); }
.build-item.build-complete { border-color: #246c56; }
.build-item.build-failed, .build-item.build-cancelled { border-color: #704039; }
.build-item p { color: var(--muted); margin-top: 5px; font-size: 13px; overflow-wrap: anywhere; }
.panel-link-card { margin-top: 10px; padding: 12px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px 12px; align-items: center; border: 1px solid rgba(52,215,165,.55); border-radius: 8px; background: linear-gradient(135deg, rgba(52,215,165,.16), rgba(98,166,255,.08)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 12px 28px rgba(52,215,165,.08); }
.panel-link-card span { color: var(--green); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.panel-link-card code { grid-column: 1/-1; padding: 10px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; background: rgba(5,9,13,.72); color: #f6fbff; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.panel-link-card div { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 8px; }
.panel-link-card .button { min-height: 36px; padding: 0 12px; }
.build-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.pill { padding: 5px 9px; border-radius: 999px; background: #1d2c42; color: #d2e2ff; font-size: 11px; font-weight: 800; }
.pill.build-status.complete, .payment-state.confirmed, .payment-state.confirmed-overpaid { color: var(--green); background: #153329; }
.pill.build-status.failed, .pill.build-status.cancelled, .payment-state.expired, .payment-state.underpaid { color: var(--red); background: #351c1a; }
.pill.build-status.queued, .pill.build-status.building, .pill.build-status.retrying, .payment-state.confirming, .payment-state.unconfirmed { color: var(--yellow); background: #342d17; }
.pill.refund { color: var(--green); background: #153329; }
.pill.hosting-pill { color: #d5ecff; background: #173045; }
.build-wait { min-width: 110px; color: var(--muted); font-size: 13px; font-weight: 800; text-align: center; }
.history-actions { display: flex; align-items: center; gap: 12px; }
.empty { padding: 20px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); }

dialog { border: 0; padding: 0; color: var(--text); background: transparent; }
dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(5px); }
.dialog-card { width: min(440px, calc(100vw - 30px)); padding: 24px; display: grid; gap: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.credit-shop { width: min(760px, calc(100vw - 30px)); }
.credit-pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.credit-pack { padding: 16px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); }
.credit-pack strong { font-size: 24px; }
.payment-order { margin-top: 8px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 7px; }
.payment-order code { display: block; margin-top: 4px; max-width: 420px; overflow-wrap: anywhere; color: var(--muted); }
.payment-order small { display: block; margin-top: 4px; color: var(--muted); }
.payment-state { align-self: center; padding: 6px 9px; border-radius: 5px; background: var(--surface-2); white-space: nowrap; }
.payment-details { padding: 14px; border: 1px solid var(--green); border-radius: 7px; background: #10271f; display: grid; gap: 8px; }
.payment-qr { width: 220px; max-width: 100%; aspect-ratio: 1; background: white; padding: 8px; border-radius: 6px; }
.payment-details code { overflow-wrap: anywhere; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 8px; }
.dialog-links { display: flex; justify-content: space-between; gap: 12px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--blue); font-weight: 800; }
.account-centre { width: min(1060px, calc(100vw - 30px)); max-height: calc(100vh - 30px); overflow: auto; grid-template-columns: repeat(2, minmax(0,1fr)); }
.account-centre > .dialog-head, .account-centre > section:last-child, .integration-panel, .account-overview, .account-build-panel { grid-column: 1/-1; }
.account-overview { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.account-overview article { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, var(--surface-2), #101720); }
.account-overview span { color: var(--muted); font-size: 12px; font-weight: 800; }
.account-overview strong { display: block; margin-top: 5px; font-size: 23px; }
.account-build-panel { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.035); }
.hosting-pass-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-bottom: 13px; }
.hosting-pass-card { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px; border: 1px solid rgba(244,201,93,.28); border-radius: 8px; background: linear-gradient(135deg, rgba(244,201,93,.11), rgba(52,215,165,.06)); }
.hosting-pass-card strong, .hosting-pass-card small { display: block; }
.hosting-pass-card small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.hosting-pass-card span { color: var(--yellow); font-size: 12px; font-weight: 900; text-align: right; }
.compact-empty { padding: 13px; }
.account-build-list { display: grid; gap: 10px; }
.account-build-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: #101720; }
.account-build-card small, .account-build-card > div > code { display: block; margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; }
.account-build-card > div > code { color: var(--yellow); font-size: 12px; }
.account-build-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.compact-account-form { display: grid; align-content: start; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 7px; }
.integration-panel { padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.035); display: grid; gap: 12px; }
.integration-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.integration-code { display: grid; gap: 6px; padding: 13px; border: 1px solid rgba(52,215,165,.3); border-radius: 8px; background: rgba(52,215,165,.08); }
.integration-code strong { font-size: 28px; letter-spacing: 1px; }
.integration-code code { color: var(--yellow); }
.session-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.session-row span:first-child { display: grid; gap: 3px; }
.session-row small { color: var(--muted); }
.progress-track { height: 6px; margin-top: 10px; overflow: hidden; border-radius: 3px; background: #080b10; }
.progress-track span { display: block; height: 100%; background: var(--green); transition: width .25s; }
.build-actions, .payment-order-actions { display: flex; align-items: center; gap: 8px; }
.admin-dialog { width: min(1120px, calc(100vw - 30px)); max-height: calc(100vh - 30px); }
.admin-shell { padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow: auto; max-height: calc(100vh - 30px); }
.builder-dialog { width: min(1160px, calc(100vw - 30px)); max-height: calc(100vh - 30px); }
.builder-dialog-shell { padding: 24px; display: grid; gap: 18px; background: linear-gradient(180deg, #0b1017, var(--bg)); border: 1px solid var(--line); border-radius: 8px; max-height: calc(100vh - 30px); overflow: auto; box-shadow: var(--shadow); }
.builder-summary { display: grid; grid-template-columns: 390px minmax(0,1fr); gap: 20px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(135deg, var(--surface), #101b24); }
.builder-summary img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.builder-summary p { color: var(--muted); line-height: 1.5; }
.selection-badge { display: inline-block; margin-top: 12px; padding: 6px 9px; border-radius: 5px; background: #19362c; color: var(--green); font-size: 12px; font-weight: 900; }
.builder-footer { position: sticky; bottom: -24px; display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 0 -24px -24px; padding: 16px 24px; border-top: 1px solid var(--line); background: rgba(11,15,20,.96); backdrop-filter: blur(12px); }
.builder-footer div { display: grid; gap: 3px; }
.builder-footer span { color: var(--muted); font-size: 12px; }
.admin-login { max-width: 430px; display: grid; gap: 14px; }
.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.admin-block { display: grid; gap: 12px; }
.user-management { margin-top: 16px; }
.user-list { display: grid; gap: 8px; max-height: 300px; overflow: auto; }
.user-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; }
.user-row button { min-height: 34px; padding: 0 10px; }

.toast { position: fixed; right: 18px; bottom: 18px; z-index: 50; max-width: 440px; padding: 13px 15px; border-radius: 7px; background: var(--text); color: var(--bg); font-weight: 800; opacity: 0; transform: translateY(8px); transition: .16s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 950px) {
  .product-grid, .asset-grid, .admin-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .account-overview { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hosting-pass-list { grid-template-columns: 1fr; }
  .hosting-options { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .builder-summary { grid-template-columns: 250px minmax(0,1fr); }
  .store-head { min-height: 620px; }
}
@media (max-width: 640px) {
  .site-header { padding: 0 14px; }
  .credits, .button.secondary#adminOpenButton { display: none; }
  main { width: min(100% - 24px, 1440px); padding-top: 22px; }
  .shop-toolbar, .builder-footer, .hero-actions { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .product-grid, .asset-grid, .admin-grid, .form-grid, .builder-summary { grid-template-columns: 1fr; }
  .hosting-options { grid-template-columns: 1fr; }
  .store-head { min-height: 620px; padding-top: 42px; padding-bottom: 86px; }
  .hero-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-kpis span { min-width: 0; }
  .credit-pack-grid { grid-template-columns: 1fr; }
  .account-centre { grid-template-columns: 1fr; }
  .account-overview, .account-build-card { grid-template-columns: 1fr; }
  .account-centre > * { grid-column: 1 !important; }
  .section-heading, .build-item { align-items: stretch; grid-template-columns: 1fr; flex-direction: column; }
}




/* Keep the catalogue and build results usable at narrow widths. */
body { background: #0b0d10; }
.site-header { position: relative; height: auto; min-height: 126px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand, .header-actions, .product-copy > div, .build-item > div { min-width: 0; }
.brand { flex-shrink: 0; }
.logo-mark { flex-shrink: 0; box-shadow: none; }
.header-actions { flex-wrap: wrap; justify-content: flex-end; }
.button { font-weight: 650; line-height: 1.35; text-align: center; padding-top: 9px; padding-bottom: 9px; }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button:focus-visible, .app-card:focus-visible, .icon-button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.shop-toolbar { position: relative; top: auto; margin: 0 0 24px; align-items: flex-start; box-shadow: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 0; background: transparent; }
.category-tabs { flex: 1; min-width: 0; gap: 7px; }
.app-card { font-size: 13px; font-weight: 650; min-height: 38px; padding: 7px 11px; }
.search-box { flex: 0 0 220px; min-width: 0; }
.product-card { box-shadow: none; background: #14171c; }
.product-card:hover { transform: translateY(-2px); border-color: #557469; }
.product-grid { gap: 18px; }
.product-copy h3 { overflow-wrap: anywhere; }
.build-item { background: #14171c; grid-template-columns: minmax(0,1fr); padding: 20px; }
.build-actions { flex-wrap: wrap; }
.panel-link-card { border: 0; border-left: 3px solid var(--green); border-radius: 0; box-shadow: none; background: transparent; padding: 4px 0 4px 16px; }
.panel-link-card code { min-width: 0; user-select: all; }
.panel-link-card .panel-credentials { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.panel-credentials label { min-width: 0; }
.panel-credentials input { font-family: ui-monospace, monospace; user-select: all; }
.panel-login-editor { max-height: calc(100dvh - 32px); overflow: auto; }
.panel-login-editor h2 { font-size: 20px; overflow-wrap: anywhere; }
.panel-login-editor p { color: var(--muted); line-height: 1.5; font-size: 13px; }
.panel-login-editor .login-error { color: var(--red); }
.toast { max-width: min(440px,calc(100vw - 32px)); max-height: 40dvh; overflow: auto; overflow-wrap: anywhere; font-weight: 600; line-height: 1.5; pointer-events: none; }
h1 { font-size: 48px; }
.store-head { margin: 0; padding: 40px 24px; min-height: 480px; }
.account-build-actions, .history-actions { flex-wrap: wrap; }
@media (max-width: 1000px) {
  .header-actions { justify-content: flex-start; }
  .shop-toolbar { flex-direction: column; }
  .search-box { flex: auto; width: 100%; }
}
@media (max-width: 640px) {
  .site-header { gap: 12px; }
  .header-actions { gap: 6px; }
  .header-actions .button { min-height: 38px; font-size: 12px; padding: 8px 10px; }
  .logo-mark { width: 136px; height: 104px; }
  h1 { font-size: 32px; }
  .store-head { min-height: 0; padding: 28px 16px; }
  .store-copy p:last-of-type { font-size: 15px; }
  .hero-proof { gap: 6px; }
  .panel-link-card .panel-credentials { grid-template-columns: minmax(0,1fr); }
  .build-item { padding: 14px; }
  .product-actions { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 640px) {
  .category-tabs { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2,38px); grid-auto-columns: max-content; width: 100%; overflow-x: auto; padding-bottom: 10px; }
  .app-card { white-space: nowrap; }
}

/* Catalogue navigation, image inspection and delivery details. */
.shop-toolbar { display: grid; grid-template-columns: minmax(0,1fr) 210px 180px 250px; gap: 16px; align-items: end; }
.catalogue-categories { display: flex; flex-wrap: wrap; gap: 6px; align-self: center; }
.shop-toolbar label, .shop-toolbar .search-box { width: auto; min-width: 0; }
.price-note { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.price-note a, .pricing-nav a { color: var(--green); }
.product-price { text-align: right; }
.product-price small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; margin-top: 5px; }
.product-image { aspect-ratio: 16/9; height: auto; background: #080a0d; }
.preview-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.product-image .preview-open img { width: 100%; height: 100%; object-fit: contain; }
.product-label, .product-slots, .product-gallery-count { pointer-events: none; }
.favourite-toggle { position: absolute; right: 10px; top: 10px; z-index: 2; font-size: 25px; line-height: 1; background: #12171eee; }
.favourite-toggle[aria-pressed="true"] { color: var(--yellow); border-color: var(--yellow); }
.product-thumbs button { padding: 0; border: 1px solid var(--line); background: #080a0d; border-radius: 5px; overflow: hidden; aspect-ratio: 16/9; }
.product-thumbs button img { width: 100%; height: 100%; object-fit: contain; border: 0; }
.empty .text-button { display: block; margin-top: 12px; }
.gallery-dialog { width: min(1080px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.gallery-shell { padding: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow: auto; max-height: calc(100dvh - 24px); }
.gallery-shell h2 { font-size: 20px; overflow-wrap: anywhere; }
.gallery-stage { height: min(62vh,600px); background: #050608; display: grid; place-items: center; }
.gallery-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 12px 0; }
.gallery-thumbnails { display: flex; justify-content: center; gap: 8px; overflow-x: auto; }
.gallery-thumbnails button { width: 96px; flex: 0 0 96px; aspect-ratio: 16/9; padding: 2px; border: 1px solid var(--line); background: #101216; border-radius: 4px; }
.gallery-thumbnails button[aria-pressed="true"] { border-color: var(--green); }
.gallery-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.build-result-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.build-result-heading img { width: 72px; height: 54px; object-fit: contain; background: #080b0f; border-radius: 6px; }
.build-result-heading > div { min-width: 0; overflow-wrap: anywhere; }
.build-error { padding: 14px 0; color: #ffd1c8; border-top: 1px solid #71443b; }
.build-error details { margin-top: 12px; }
.build-error summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.build-error pre { max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; padding: 12px; background: #080b0f; color: var(--muted); }
.pricing-heading { margin: 24px 0; }
.pricing-heading p:last-child { margin-top: 12px; color: var(--muted); }
.pricing-nav { display: flex; flex-wrap: wrap; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pricing-section { padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.price-packs { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 14px; }
.price-pack { border: 1px solid var(--line); border-radius: 8px; background: #15181d; padding: 18px; display: grid; gap: 12px; }
.price-pack > strong { font-size: 30px; }
.price-pack > p { color: var(--muted); }
.price-saving { color: var(--green); font-size: 12px; }
.table-scroll { max-width: 100%; overflow: auto; margin-top: 20px; }
.pricing-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 14px; }
.pricing-table th, .pricing-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.pricing-table thead th { color: var(--muted); font-weight: 500; }
.pricing-table tbody th { font-weight: 600; }
@media (max-width: 1250px) { .shop-toolbar { grid-template-columns: repeat(3,minmax(0,1fr)); } .catalogue-categories { grid-column: 1/-1; } }
@media (max-width: 640px) {
  .shop-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .shop-toolbar .search-box { grid-column: 1/-1; }
  .gallery-stage { height: 45vh; }
  .price-packs { grid-template-columns: minmax(0,1fr); }
  .product-copy { flex-wrap: wrap; }
  .product-price { text-align: left; }
  .pricing-table th, .pricing-table td { padding: 12px 8px; }
}

.panel-audit-result { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; padding: 14px; background: #080b0f; max-height: 280px; overflow: auto; }
.product-admin-head { flex-wrap: wrap; }

.product-image .preview-open img { transform: none; }
.product-image::after { display: none; }

#appBuildOptions label:has(input[type="checkbox"]) { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
#appBuildOptions input[type="checkbox"] { width: 20px; height: 20px; padding: 0; accent-color: var(--blue); }
#appBuildOptions label small { grid-column: 1 / -1; line-height: 1.5; }
