/* Tactical Overwatch - customer portal.
   Follows the site's visual direction: near-black ground, faint camo map grid,
   dark green panels, camo green for rules and graphics only.
   Accessibility rule: #6F7D4A on black is 4.4:1, under the 4.5:1 floor, so small
   accent text uses #A8B878 instead. */

:root {
  --black: #0A0C0A;
  --green: #1F3324;
  --camo: #6F7D4A;
  --camo-light: #A8B878;
  --white: #FFFFFF;
  --body: #DCE3D6;
  --muted: #8A9484;
  --danger: #E4705E;
  --ok: #8FC08A;
  --rule: rgba(111, 125, 74, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--body);
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* One decoration, drawn from the product itself. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(111, 125, 74, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 125, 74, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 80%);
}

.wrap { position: relative; z-index: 1; }

h1, h2, h3 {
  font-family: 'Oswald', 'Barlow Condensed', sans-serif;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}
h1 { font-size: 34px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }

p { margin: 0 0 14px; }
a { color: var(--camo-light); }

.eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--camo-light);
  margin: 0 0 10px;
}

/* ---------- centred auth pages ---------- */

.auth {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 48px;
}
.auth .brand { margin-bottom: 26px; text-align: center; }
.auth .brand img { height: 56px; width: auto; display: block; margin: 0 auto 10px; }
.auth .brand .strap {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--camo-light);
}
.card {
  width: 100%;
  max-width: 420px;
  background: var(--green);
  border: 1px solid var(--rule);
  padding: 30px 26px;
}
.card h1 { font-size: 27px; }
.card .lede { color: var(--body); font-size: 16px; margin-bottom: 22px; }

/* ---------- forms ---------- */

label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--camo-light);
  margin: 0 0 6px;
}
input[type="email"], input[type="password"], input[type="text"],
input[type="date"], input[type="number"], input[type="tel"] {
  width: 100%;
  padding: 13px 14px;
  background: rgba(10, 12, 10, 0.6);
  border: 1px solid var(--rule);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 17px; /* 16px+ stops iOS zooming on focus */
  border-radius: 2px;
}
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

input:focus {
  outline: 2px solid var(--camo-light);
  outline-offset: 1px;
  border-color: transparent;
}
.field { margin-bottom: 18px; }
.hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }

button, .btn {
  display: inline-block;
  width: 100%;
  padding: 14px 20px;
  background: var(--camo);
  color: var(--black);
  border: none;
  border-radius: 2px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .btn:hover { background: var(--camo-light); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
button:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--camo-light);
  outline-offset: 2px;
}
.btn-quiet {
  background: transparent;
  color: var(--camo-light);
  border: 1px solid var(--rule);
  width: auto;
  padding: 9px 16px;
  font-size: 15px;
}
.btn-quiet:hover { background: rgba(111, 125, 74, 0.14); color: var(--white); }

.below { margin-top: 18px; text-align: center; font-size: 15px; }
.below a { color: var(--camo-light); }

/* ---------- messages ---------- */

.msg {
  padding: 12px 14px;
  border-left: 3px solid var(--camo);
  background: rgba(10, 12, 10, 0.5);
  font-size: 15px;
  margin-bottom: 18px;
}
.msg.error { border-left-color: var(--danger); color: #F3C9C1; }
.msg.good { border-left-color: var(--ok); color: #D2E8CF; }
.msg[hidden] { display: none; }

/* ---------- app shell ---------- */

.topbar {
  border-bottom: 1px solid var(--rule);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.topbar img { height: 34px; width: auto; }
.topbar .who { font-size: 14px; color: var(--muted); text-align: right; }
main { max-width: 760px; margin: 0 auto; padding: 26px 20px 70px; }

/* ---------- order panels ---------- */

.order {
  background: var(--green);
  border: 1px solid var(--rule);
  padding: 24px 22px;
  margin-bottom: 24px;
}
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.order-head .code {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--camo-light);
}

.pill {
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill.open { color: var(--ok); border-color: rgba(143, 192, 138, 0.5); }
.pill.pending { color: var(--camo-light); }
.pill.closed { color: var(--muted); }

.window {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  padding: 16px 0;
  margin: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.window div { min-width: 120px; }
.window .k {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}
.window .v { font-size: 17px; color: var(--white); }

.countdown {
  background: rgba(10, 12, 10, 0.5);
  border-left: 3px solid var(--camo);
  padding: 13px 15px;
  font-size: 15px;
  margin-bottom: 18px;
}
.countdown strong { color: var(--white); }

/* ---------- checklist ---------- */

.checklist { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: step; }
.checklist li {
  counter-increment: step;
  position: relative;
  padding: 0 0 14px 42px;
  font-size: 16px;
}
.checklist li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--camo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--camo-light);
}
.checklist li strong { color: var(--white); display: block; }

/* ---------- credentials ---------- */

.creds { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 15px; }
.creds th {
  text-align: left;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 0 10px 8px 0;
  border-bottom: 1px solid var(--rule);
}
.creds td { padding: 9px 10px 9px 0; border-bottom: 1px solid rgba(111, 125, 74, 0.16); vertical-align: middle; }
.creds .mono {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--white);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.creds input.label-input {
  width: 100%;
  min-width: 90px;
  padding: 6px 8px;
  font-size: 15px;
  background: rgba(10, 12, 10, 0.5);
  border: 1px solid transparent;
  color: var(--white);
  border-radius: 2px;
}
.creds input.label-input:hover { border-color: var(--rule); }
.creds input.label-input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

input:focus { border-color: var(--camo-light); outline: none; }
.creds .saved { color: var(--ok); }

details.creds-wrap { margin-top: 6px; }
details.creds-wrap > summary {
  cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--camo-light);
  padding: 10px 0;
  list-style: none;
}
details.creds-wrap > summary::-webkit-details-marker { display: none; }
details.creds-wrap > summary::before { content: '+ '; }
details.creds-wrap[open] > summary::before { content: '- '; }

.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.footnote { font-size: 14px; color: var(--muted); margin-top: 28px; text-align: center; }

@media (max-width: 560px) {
  h1 { font-size: 28px; }
  main { padding: 20px 16px 60px; }
  .order { padding: 20px 16px; }
  .window { gap: 18px; }
}

/* ---------- progress stepper ----------
   Five stages across the top of an order. Horizontal at every width: on a narrow
   phone the labels wrap to two lines rather than the row becoming a column, so
   the shape of the journey stays readable. */

.stepper {
  display: flex;
  align-items: flex-start;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: stage;
}
.stepper li {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  text-align: center;
  counter-increment: stage;
  padding-top: 34px;
}
/* the connecting rail, drawn behind the dots */
.stepper li::before {
  content: '';
  position: absolute;
  top: 13px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--rule);
}
.stepper li:first-child::before { display: none; }
.stepper li.done::before,
.stepper li.current::before { background: var(--camo); }

.stepper .dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--rule);
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  line-height: 1;
}
.stepper li.done .dot {
  background: var(--camo);
  border-color: var(--camo);
  color: var(--black);
}
.stepper li.current .dot {
  border-color: var(--camo-light);
  color: var(--camo-light);
  box-shadow: 0 0 0 3px rgba(168, 184, 120, 0.18);
}
.stepper .dot .tick { font-size: 15px; }

.stepper .label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 3px;
  overflow-wrap: break-word;
}
.stepper li.done .label { color: var(--body); }
.stepper li.current .label { color: var(--camo-light); }

.stage-prompt {
  background: rgba(10, 12, 10, 0.5);
  border-left: 3px solid var(--camo-light);
  padding: 13px 15px;
  font-size: 15px;
  margin: 0 0 20px;
}
.stage-prompt strong { color: var(--white); }
.stage-prompt .go { margin-top: 10px; }

.finalise-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.finalise-row input[type="checkbox"] {
  width: 21px;
  height: 21px;
  margin: 2px 0 0;
  accent-color: var(--camo);
  flex: 0 0 auto;
}
.finalise-row label {
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--body);
  cursor: pointer;
}

@media (max-width: 420px) {
  .stepper .label { font-size: 11px; letter-spacing: 0; }
  .stepper .dot { width: 24px; height: 24px; font-size: 12px; }
  .stepper li { padding-top: 30px; }
  .stepper li::before { top: 11px; }
}

/* ---------- app shell with left nav ----------
   Sidebar on a desktop; an off-canvas drawer from the left on a phone, so the
   menu stays on the left rather than turning into a bottom bar. */

.app { display: flex; min-height: 100dvh; align-items: stretch; }

.sidenav {
  flex: 0 0 232px;
  background: #0D100C;
  border-right: 1px solid var(--rule);
  padding: 22px 0 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.sidenav .brand-block { padding: 0 20px 22px; border-bottom: 1px solid var(--rule); }
.sidenav .brand-block img { height: 34px; width: auto; display: block; }
.sidenav .brand-block .strap {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--camo-light); margin-top: 7px;
}
.sidenav nav { padding: 14px 0; flex: 1 1 auto; }
.sidenav a.navlink {
  display: block;
  padding: 12px 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-left: 3px solid transparent;
}
.sidenav a.navlink:hover { color: var(--white); background: rgba(111,125,74,.08); }
.sidenav a.navlink[aria-current="page"] {
  color: var(--white);
  border-left-color: var(--camo);
  background: rgba(111,125,74,.12);
}
.sidenav a.navlink .badge {
  display: inline-block; margin-left: 7px; padding: 1px 7px;
  background: var(--camo); color: var(--black); border-radius: 9px;
  font-size: 12px; letter-spacing: .04em;
}
.sidenav .foot { padding: 16px 20px 0; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.sidenav .foot .addr { display: block; word-break: break-all; margin-bottom: 9px; color: var(--body); }

.content { flex: 1 1 auto; min-width: 0; }
.content main { max-width: 740px; margin: 0; padding: 30px 28px 70px; }

.mobilebar { display: none; }
.scrim { display: none; }

@media (max-width: 860px) {
  .mobilebar {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-bottom: 1px solid var(--rule);
    position: sticky; top: 0; z-index: 40; background: var(--black);
  }
  .mobilebar .burger {
    width: auto; padding: 8px 11px; background: transparent;
    border: 1px solid var(--rule); color: var(--camo-light); font-size: 17px; line-height: 1;
  }
  .mobilebar .here {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase; font-size: 15px; color: var(--white);
  }
  .sidenav {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
    width: 254px; flex-basis: 254px; height: 100dvh;
    transform: translateX(-100%);
    transition: transform .22s ease;
  }
  .app.nav-open .sidenav { transform: translateX(0); }
  .app.nav-open .scrim {
    display: block; position: fixed; inset: 0; z-index: 50;
    background: rgba(0,0,0,.6);
  }
  .content main { padding: 22px 16px 60px; }
}

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

/* ---------- account view ---------- */
.kv { border-top: 1px solid var(--rule); margin-top: 18px; }
.kv .row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--rule); flex-wrap: wrap;
}
.kv .row .k {
  font-family: 'Barlow Condensed', sans-serif; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.kv .row .v { color: var(--white); text-align: right; word-break: break-word; }

.pkg-facts { margin: 0 0 20px; padding: 0; list-style: none; }
.pkg-facts li {
  padding: 9px 0 9px 22px; position: relative; border-bottom: 1px solid rgba(111,125,74,.16);
  font-size: 15px;
}
.pkg-facts li::before { content: '—'; position: absolute; left: 0; color: var(--camo-light); }

/* ---------- guides ---------- */

.guide {
  background: var(--green);
  border: 1px solid var(--rule);
  margin-bottom: 14px;
}
.guide > summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 20px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.guide > summary::-webkit-details-marker { display: none; }
.guide > summary::after {
  content: '+';
  margin-left: auto;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 21px;
  color: var(--camo-light);
  line-height: 1;
}
.guide[open] > summary::after { content: '\2013'; }
.guide > summary:focus-visible { outline: 2px solid var(--camo-light); outline-offset: -2px; }
.guide .g-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  line-height: 1.25;
}
.guide .g-for {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--camo-light);
  margin-bottom: 4px;
}
.guide .g-body { padding: 0 20px 20px; border-top: 1px solid var(--rule); padding-top: 16px; }
.guide .g-body > *:last-child { margin-bottom: 0; }

.faq { margin: 0; padding: 0; list-style: none; }
.faq li { padding: 14px 0; border-bottom: 1px solid rgba(111,125,74,.16); }
.faq li:last-child { border-bottom: none; }
.faq .q { display: block; color: var(--white); font-weight: 600; margin-bottom: 5px; }

.share-box {
  background: rgba(10,12,10,.6);
  border: 1px solid var(--rule);
  padding: 15px 16px;
  margin: 14px 0;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--body);
  white-space: pre-wrap;
  max-height: 260px;
  overflow-y: auto;
}

.order.purchase { border-color: var(--camo); }
.order.purchase .window { border-top: none; padding-top: 6px; }
