/* Foster's Surveillance Solutions — storefront styles */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2"); }

:root {
  --navy: #0B1F33;
  --navy-2: #13304D;
  --ink: #0E2238;
  --ink-soft: #46596D;
  --blue: #1D6BC4;
  --blue-hover: #155AA8;
  --sky: #EAF3FB;
  --sky-2: #D9E9F8;
  --line: #D3E0EC;
  --white: #FFFFFF;
  --amber-bg: #FFF4D6;
  --amber-ink: #6B4A00;
  --error: #B42318;
  --success: #12704A;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(11, 31, 51, 0.06), 0 6px 20px rgba(11, 31, 51, 0.06);
  --header-h: 68px;
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Archivo", "Hanken Grotesk", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 17px/1.6 var(--font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; color: var(--navy); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid #5AA2EE; outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--ink-soft); }
.small { font-size: 15px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; touch-action: manipulation; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: #B7C8D9; }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-lg { min-height: 52px; font-size: 17px; padding: 0 26px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: #9AAABB; border-color: transparent; color: var(--white); cursor: not-allowed; }
.grow { flex: 1; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--navy); color: var(--white); }
.header-inner { width: min(1240px, 100% - 32px); margin-inline: auto; height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 16px; white-space: nowrap; }
.brand:hover { color: var(--white); }
.brand img { width: 44px; height: 44px; border-radius: 6px; }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { color: #D6E4F2; text-decoration: none; font-size: 15px; padding: 8px 0; }
.main-nav a:hover { color: var(--white); text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-button, .menu-button, .icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 0; background: transparent; color: inherit; cursor: pointer; }
.cart-button:hover, .menu-button:hover { background: var(--navy-2); }
.cart-button svg, .menu-button svg, .icon-btn svg { width: 24px; height: 24px; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #5AA2EE; color: var(--navy); font-size: 12px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.menu-button { display: none; }
@media (max-width: 1080px) {
  .main-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--navy); padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(0,0,0,.25); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--navy-2); font-size: 17px; }
  .menu-button { display: inline-grid; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  .brand span { font-size: 15px; white-space: normal; line-height: 1.2; max-width: 14ch; }
  .header-cta { display: none; }
}

.mode-banner { background: var(--amber-bg); color: var(--amber-ink); text-align: center; font-size: 14px; padding: 8px 16px; border-bottom: 1px solid #F0DDA4; }
.mode-banner strong { font-weight: 700; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--sky); }
.section-dark { background: var(--navy); color: #D6E4F2; }
.section-dark h2 { color: var(--white); }
.section-title { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 2.2vw + 14px, 38px); letter-spacing: -0.01em; margin-bottom: 20px; }
.section-intro { max-width: 62ch; color: var(--ink-soft); margin-bottom: 36px; }
@media (max-width: 720px) { .section { padding: 60px 0; } }

/* Hero */
.hero { background: linear-gradient(var(--sky), var(--sky)); padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 750; font-size: clamp(32px, 3.2vw + 12px, 52px); letter-spacing: -0.015em; line-height: 1.08; }
.hero-sub { font-size: 20px; font-weight: 600; color: var(--blue-hover); margin: 16px 0 14px; }
.hero-desc { color: var(--ink-soft); max-width: 58ch; }
.offer-facts { list-style: none; margin: 24px 0; padding: 18px 20px; display: grid; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.offer-facts li { position: relative; padding-left: 18px; }
.offer-facts li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.offer-facts strong { font-family: var(--display); font-size: 22px; color: var(--navy); }
.offer-closed { padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.preorder-note { margin-top: 16px; font-size: 14px; color: var(--ink-soft); max-width: 60ch; }
.hero-media { margin: 0; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; background: var(--white); }
.hero-media img { width: 100%; height: auto; max-height: 600px; object-fit: cover; }
@media (max-width: 900px) {
  .hero { padding: 32px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-media img { max-height: 420px; object-position: 50% 40%; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* System */
.system-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.thumb { padding: 0; aspect-ratio: 1; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--white); overflow: hidden; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: #9DB6CF; }
.thumb.is-active { border-color: var(--blue); }
.buy-panel h2 { font-family: var(--display); font-weight: 750; font-size: clamp(28px, 2vw + 14px, 36px); }
.price-line { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 14px 0 6px; }
.price { font-family: var(--display); font-weight: 750; font-size: 36px; color: var(--navy); font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--sky-2); color: #0F4E9E; font-size: 14px; font-weight: 600; }
.list-title { font-size: 17px; margin: 22px 0 10px; }
.included { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 8px; }
.included li { display: flex; gap: 10px; }
.included li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; background: no-repeat center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5 8 14.5 16 6' fill='none' stroke='%231D6BC4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.purchase { display: flex; gap: 12px; align-items: stretch; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid #B7C8D9; border-radius: var(--radius-sm); background: var(--white); overflow: hidden; }
.qty-btn { width: 44px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--navy); }
.qty-btn:hover { background: var(--sky); }
.qty-btn:disabled { color: #A7B6C5; cursor: not-allowed; background: transparent; }
.qty-input { width: 48px; border: 0; text-align: center; font-weight: 600; font-size: 17px; -moz-appearance: textfield; appearance: textfield; background: transparent; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm .qty-btn { width: 38px; height: 40px; font-size: 18px; }
.qty-sm .qty-input { width: 40px; font-size: 16px; }
.unavailable { margin-top: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--amber-bg); color: var(--amber-ink); }
.disclosure { display: flex; gap: 12px; margin-top: 20px; padding: 16px; border-radius: var(--radius); background: var(--sky); border: 1px solid var(--line); font-size: 15px; }
.disclosure p { margin: 0; }
.disclosure svg { flex: none; width: 24px; height: 24px; color: var(--navy); margin-top: 2px; }
@media (max-width: 900px) {
  .system-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; }
  .gallery-thumbs { grid-template-columns: repeat(5, 64px); overflow-x: auto; padding-bottom: 4px; }
}

/* Features & specs */
.feature-grid { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature svg { width: 32px; height: 32px; color: var(--blue); margin-bottom: 12px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }
.spec-layout { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 40px; align-items: start; }
.spec-figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.spec-table-wrap { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; font-size: 16px; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 34%; font-weight: 600; color: var(--navy); background: #F5F9FD; }
@media (max-width: 760px) {
  .spec-layout { grid-template-columns: 1fr; }
  .spec-figure { max-width: 320px; }
  .spec-table th, .spec-table td { display: block; width: 100%; padding: 10px 16px; }
  .spec-table th { border-bottom: 0; padding-bottom: 2px; background: transparent; }
}

/* Demo */
.demo-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.link-light { color: #9FD0FF; }
.link-light:hover { color: var(--white); }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; border: 0; background: transparent; color: var(--white); font-weight: 600; cursor: pointer; }
.video-play svg { width: 76px; height: auto; transition: transform .15s ease; }
.video-play:hover svg { transform: scale(1.05); }
.video-note { position: absolute; left: 14px; bottom: 10px; margin: 0; font-size: 13px; color: #D6E4F2; pointer-events: none; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Accessories */
.acc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.acc-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.acc-slot { aspect-ratio: 4 / 3; display: grid; place-items: center; align-content: center; gap: 4px; background: var(--sky); border-bottom: 1px solid var(--line); text-align: center; padding: 12px; }
.acc-slot b { font-family: var(--display); font-size: 30px; color: var(--navy); }
.acc-slot span { font-size: 13px; color: var(--ink-soft); }
.acc-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.acc-body h3 { font-size: 17px; }
.acc-price { font-weight: 700; font-size: 18px; color: var(--navy); margin: 0; font-variant-numeric: tabular-nums; }
.acc-desc { font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; }
.acc-actions { margin-top: auto; display: flex; gap: 8px; }
.acc-actions .btn { flex: 1; min-height: 42px; padding: 0 12px; font-size: 15px; }
@media (max-width: 1000px) { .acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .acc-grid { grid-template-columns: 1fr; gap: 12px; }
  .acc-card { flex-direction: row; }
  .acc-slot { aspect-ratio: auto; width: 96px; flex: none; border-bottom: 0; border-right: 1px solid var(--line); }
  .acc-slot b { font-size: 22px; }
  .acc-slot span:last-child { display: none; }
  .acc-body { padding: 14px; }
}

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 56px; align-items: center; }
.about-grid p { max-width: 62ch; }
.about-logo { margin: 0; justify-self: center; width: min(320px, 100%); }
.about-logo img { border-radius: 16px; box-shadow: var(--shadow); }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } .about-logo { width: 200px; justify-self: start; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.contact-details { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form { padding: 28px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #A9BCCF; border-radius: var(--radius-sm); background: var(--white); font-size: 16px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid #5AA2EE; outline-offset: 0; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: 0; color: var(--error); font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 15px; }
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--success); font-weight: 600; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } .form { padding: 20px; } }

/* Footer */
.site-footer { background: var(--navy); color: #C3D3E3; padding: 48px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 32px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 56px; height: 56px; border-radius: 8px; }
.footer-brand strong { color: var(--white); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a { color: #D6E4F2; }
.footer-links a:hover { color: var(--white); }
.footer-fine p { margin: 0 0 8px; font-size: 14px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile purchase bar */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: 76px; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(11,31,51,.08); transform: translateY(110%); transition: transform .2s ease; }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar p { margin: 0; line-height: 1.25; }
  .mobile-bar-name { font-weight: 600; font-size: 15px; }
  .mobile-bar-price { font-size: 14px; color: var(--ink-soft); }
  .mobile-bar .btn { min-width: 140px; }
}

/* Cart drawer */
.cart { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw); max-width: 100vw; padding: 0; border: 0; background: var(--white); color: var(--ink); display: none; flex-direction: column; box-shadow: -12px 0 40px rgba(11,31,51,.2); overscroll-behavior: contain; }
.cart[open] { display: flex; }
.cart::backdrop { background: rgba(11, 31, 51, 0.5); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 22px; }
.icon-btn:hover { background: var(--sky); }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line-name { font-weight: 600; margin: 0; }
.cart-line-meta { margin: 0; font-size: 14px; color: var(--ink-soft); }
.cart-line-total { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.cart-line-controls { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.link-btn { border: 0; background: none; color: var(--blue); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; padding: 8px 4px; font-size: 15px; }
.link-btn:hover { color: var(--blue-hover); }
.cart-empty { padding: 32px 0; color: var(--ink-soft); text-align: center; }
.cart-foot { padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #F7FAFD; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; margin-bottom: 10px; }
.cart-subtotal strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.cart-notes { margin: 0 0 14px; padding-left: 18px; font-size: 13.5px; color: var(--ink-soft); display: grid; gap: 4px; }
.cart-error { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: #FDECEA; color: var(--error); font-size: 15px; }
.cart-mode-note { margin: 10px 0 0; font-size: 13.5px; color: var(--amber-ink); background: var(--amber-bg); padding: 8px 10px; border-radius: var(--radius-sm); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; border-radius: var(--radius); background: var(--navy); color: var(--white); box-shadow: 0 10px 30px rgba(11,31,51,.3); }
.toast-btn { border: 1px solid #5B7894; background: transparent; color: var(--white); border-radius: var(--radius-sm); padding: 6px 12px; cursor: pointer; font-weight: 600; }
.toast-btn:hover { background: var(--navy-2); }
@media (max-width: 900px) { .toast { bottom: 92px; width: calc(100% - 32px); justify-content: space-between; } }

/* Simple pages (policy, order status, test checkout, admin) */
.page { min-height: 70vh; padding: 56px 0 80px; background: var(--sky); }
.page .card { padding: 32px; max-width: 760px; }
.page h1 { font-family: var(--display); font-size: clamp(28px, 2vw + 16px, 38px); margin-bottom: 16px; }
.policy-body { white-space: pre-line; }
.status-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; font-size: 14px; font-weight: 600; background: var(--sky-2); color: var(--navy); }
.status-pill.ok { background: #DDF3E8; color: var(--success); }
.status-pill.bad { background: #FDECEA; color: var(--error); }
.summary-lines { list-style: none; margin: 16px 0; padding: 0; border-top: 1px solid var(--line); }
.summary-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.test-banner { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--amber-bg); color: var(--amber-ink); border: 1px solid #F0DDA4; margin-bottom: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--white); }
.admin-table th, .admin-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-wrap { overflow-x: auto; margin-bottom: 28px; }
.page .admin-card { max-width: none; }
.admin-card h2 { font-size: 20px; margin: 24px 0 10px; }

/* Add-ons inside the system buy panel */
.addons { margin: 0 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #F7FAFD; }
.addons legend { padding: 0 6px; font-weight: 600; font-size: 17px; color: var(--navy); }
.addons-hint { margin: 0 0 8px; font-size: 14px; color: var(--ink-soft); }
.addon-list { list-style: none; margin: 0; padding: 0; display: grid; }
.addon { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 6px; border-top: 1px solid #E3ECF5; border-radius: 4px; }
.addon:first-child { border-top: 0; }
.addon.is-selected { background: var(--sky-2); }
.addon label { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; font-size: 15px; cursor: pointer; }
.addon-name { font-weight: 500; }
.addon-price { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.addon .qty-sm .qty-btn { width: 36px; height: 36px; }
.addon .qty-sm .qty-input { width: 34px; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 12px; font-size: 16px; }
.order-total strong { font-size: 22px; font-variant-numeric: tabular-nums; color: var(--navy); }
@media (max-width: 420px) { .purchase { flex-wrap: wrap; } .purchase .btn { flex: 1 1 100%; } }
.addons { scroll-margin-top: calc(var(--header-h) + 16px); }
.extras-only { display: block; margin: 10px 0 0; padding-left: 0; text-align: left; }
.extras-only.btn { display: flex; margin-top: 0; }
