/* Metatron Digital Group theme: deep navy header and public pages, violet gradient accent,
   light lavender work area with white cards (as on metatrondg.com). Logical properties keep RTL working. */
:root {
  --navy-950: #07061a; --navy-900: #0c0a26; --navy-800: #15123a; --navy-700: #221d54;
  --violet: #7c3aed; --violet-2: #a855f7; --violet-soft: #efe9ff; --violet-ink: #5b21b6;
  --grad: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  --grad-text: linear-gradient(90deg, #c4b5fd 0%, #a855f7 100%);
  --bg: #f4f2fc; --surface: #fff; --text: #17142f; --muted: #5f5a7d; --line: #e4e0f3;
  --accent: var(--violet); --accent-ink: #fff; --ok: #15803d; --bad: #c0262d; --warn-bg: #fff6e0;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 20, 47, .04), 0 8px 24px rgba(60, 40, 140, .06);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Arabic", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--violet); }
a:hover { color: var(--violet-ink); }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 2px; }
h1, h2, h3 { letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: 1.6rem; margin-block-start: 0; font-weight: 700; }

/* ---- header ---- */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px max(16px, calc((100% - 1180px) / 2)); min-height: 68px;
  background: var(--navy-950); color: #fff; border-block-end: 1px solid rgba(255, 255, 255, .07); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; font-weight: 600; }
.brand img { height: 46px; width: auto; display: block; }
.brand span { padding-inline-start: 14px; border-inline-start: 1px solid rgba(255, 255, 255, .2); font-size: .95rem; letter-spacing: .02em; color: #d8d3f5; }
.topbar nav { display: flex; align-items: center; gap: 18px; font-size: .92rem; font-weight: 600; }
.topbar a, .topbar .link { color: #e9e6ff; text-decoration: none; }
.topbar a:hover, .topbar .link:hover { color: #fff; }
.who { color: #a9a3cf; font-weight: 500; }
.area-admin .topbar, .area-admin .topbar a, .area-admin .topbar .link { color: #fff; }

/* ---- navigation strip under the header ---- */
.subnav { background: var(--navy-900); border-block-end: 1px solid rgba(255, 255, 255, .06); padding: 8px max(16px, calc((100% - 1180px) / 2)); }
.subnav { position: relative; z-index: 30; }
.subnav-inner { display: flex; flex-direction: column; }
.subnav ul { list-style: none; margin: 0; padding: 0; }
/* Desktop: a short bar of categories; each opens a dropdown. */
.nav-items { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.nav-single > a, .nav-group-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px; border: 0; background: none;
  color: #c9c3ee; font: inherit; font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.nav-single > a:hover, .nav-group-btn:hover, .nav-group.open > .nav-group-btn { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-single > a.active, .nav-group-btn.active { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(124, 58, 237, .35); }
.nav-group-btn svg { transition: transform .15s; opacity: .8; }
.nav-group.open > .nav-group-btn svg { transform: rotate(180deg); }
.nav-group { position: relative; }
.nav-menu { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-start: 0; min-width: 230px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(20, 12, 70, .22); }
/* Closed by default, so the very first paint already shows the dropdown layout (no flash while app.js loads).
   Browsers without JavaScript get assets/nojs.css, which lists the links instead. */
.nav-menu { display: none; }
.nav-group.open > .nav-menu { display: block; }
.nav-menu::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: -10px; height: 10px; } /* hover bridge */
.nav-menu a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.nav-menu a:hover { background: var(--violet-soft); color: var(--violet-ink); }
.nav-menu a.active { background: var(--violet-soft); color: var(--violet-ink); font-weight: 700; }
.nav-menu a.active::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); margin-inline-end: 8px; vertical-align: middle; }
.nav-toggle { display: none; align-items: center; gap: 10px; width: 100%; padding: 9px 4px; border: 0; background: none; color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-align: start; }
.nav-toggle .nav-current { margin-inline-start: auto; padding: 4px 12px; border-radius: 999px; background: var(--grad); font-size: .82rem; }
/* Phone: a "Menu" button opens the full list, with category headings. */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-items { display: none; }
  .subnav.open .nav-items { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 2px; padding-block: 6px 6px; }
  .nav-single > a { width: 100%; border-radius: 10px; padding: 11px 14px; font-size: .95rem; }
  .nav-group-btn { display: none; }
  .nav-menu { display: block; position: static; min-width: 0; padding: 4px 0 6px; background: none; border: 0; box-shadow: none; }
  .nav-menu::before { display: none; }
  .nav-group { padding-block-start: 8px; border-block-start: 1px solid rgba(255, 255, 255, .07); }
  .nav-group::before { content: attr(data-label); display: block; padding: 2px 14px 6px; color: #8e88b8; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
  .nav-menu a { color: #c9c3ee; padding: 10px 14px; font-size: .95rem; }
  .nav-menu a:hover, .nav-menu a.active { background: rgba(255, 255, 255, .08); color: #fff; }
  .nav-single > a.active { box-shadow: none; }
}

/* ---- page ---- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 16px 40px; flex: 1; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-block-end: 18px; box-shadow: var(--shadow); }
.narrow { max-width: 440px; margin-inline: auto; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 720px; margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.pre { white-space: pre-wrap; font: inherit; margin: 6px 0 0; }
code { background: var(--violet-soft); color: var(--violet-ink); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

/* ---- forms ---- */
label { display: block; margin-block-end: 14px; font-weight: 600; font-size: .92rem; }
input, select, textarea { display: block; width: 100%; margin-block-start: 6px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #cfc8ec; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(168, 85, 247, .16); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .span-2, .form-grid h2 { grid-column: 1 / -1; }
.form-grid h2 { font-size: 1.05rem; margin: 22px 0 10px; padding-block-end: 8px; border-block-end: 1px solid var(--line); }
.form-grid .field textarea { min-height: 80px; }
.form-grid > .span-2 > .btn { margin-block-start: 4px; }
.field { margin-block-end: 14px; }
.field label { margin-block-end: 0; }
.help { margin: 5px 0 0; font-size: .84rem; color: var(--muted); }
.field-error { margin: 5px 0 0; font-size: .84rem; color: var(--bad); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad); }
.req { color: var(--bad); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-block-end: 6px; }
label.check.small { margin-block-end: 2px; font-size: .85rem; }
label.check input { width: auto; margin: 4px 0 0; }
input[type=checkbox], input[type=radio] { display: inline-block; width: auto; margin: 0; flex: none; accent-color: var(--violet); }
input[type=file] { padding: 9px; background: #faf9ff; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: .92rem;
  cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .15s, border-color .15s, background .15s; }
.btn:hover { border-color: #c9bff0; color: var(--text); box-shadow: 0 4px 14px rgba(60, 40, 140, .08); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(124, 58, 237, .32); }
.btn.primary:hover { color: #fff; box-shadow: 0 8px 24px rgba(124, 58, 237, .42); transform: translateY(-1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn + .btn { margin-inline-start: 8px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--violet); cursor: pointer; }
.link.danger { color: var(--bad); }
form.inline { display: inline; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-block: 8px 12px; }
.inline-form input, .inline-form select { width: auto; margin: 0; }
.inline-form .btn { padding: 9px 16px; }
.stack { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.stack input { margin: 0; }

/* ---- alerts ---- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-block-end: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.alert-error { border-color: #f3c3c5; background: #fff5f5; color: var(--bad); }
.alert-success { border-color: #bfe6cc; background: #f2fbf5; color: var(--ok); }
.alert-info { background: var(--warn-bg); border-color: #f1df9e; }
.alert ul { margin: 6px 0 0; padding-inline-start: 20px; }
.notice { background: var(--violet-soft); border: 1px solid #ddd0ff; border-radius: var(--radius-sm); padding: 12px 16px; }
.secret { font-family: ui-monospace, Consolas, monospace; font-size: 1.1rem; letter-spacing: .05em; background: var(--violet-soft); padding: 12px; border-radius: var(--radius-sm); word-break: break-all; }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: start; padding: 11px 10px; border-block-end: 1px solid var(--line); vertical-align: top; overflow-wrap: normal; }
.table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: #8a84ad; font-weight: 700; }
.table tbody tr:hover td { background: #faf8ff; }
.table input, .table select, .table textarea { margin-block-start: 0; padding: 7px 10px; }
.table td form { margin: 0; }
.table .btn { padding: 6px 12px; font-size: .84rem; }
.table input[size] { width: auto; display: inline-block; }
.num { text-align: end; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.json { font-family: ui-monospace, Consolas, monospace; font-size: .75rem; max-width: 280px; word-break: break-all; }
.row-bad td { background: #fff4f4; }
.ok { color: var(--ok); font-weight: 700; }
.bad { color: var(--bad); font-weight: 700; }

/* ---- badges ---- */
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .02em;
  background: #ece9f6; color: #4a4568; white-space: nowrap; }
.badge.status-approved, .badge.doc-approved, .badge.st-active,
.badge.opp-approved, .badge.opp-won, .badge.opp-in_progress, .badge.opp-quotation_issued, .badge.qr-approved, .badge.qr-quoted, .badge.qr-accepted,
.badge.tk-resolved, .badge.tk-closed, .badge.ok { background: #dcf5e5; color: var(--ok); }
.badge.status-rejected, .badge.doc-rejected, .badge.doc-expired, .badge.status-suspended, .badge.st-suspended,
.badge.opp-rejected, .badge.opp-lost, .badge.opp-expired, .badge.qr-rejected, .badge.qr-declined, .badge.qr-expired,
.badge.tk-escalated, .badge.pr-urgent, .badge.pr-high { background: #fde6e6; color: var(--bad); }
.badge.status-info_required, .badge.doc-pending_upload, .badge.doc-renewal_required, .badge.status-on_hold,
.badge.opp-info_required, .badge.qr-info_required, .badge.tk-waiting_partner { background: #fff1cc; color: #8a5a00; }
.badge.status-submitted, .badge.status-under_review, .badge.status-compliance_review, .badge.doc-submitted, .badge.doc-under_review,
.badge.opp-submitted, .badge.opp-under_review, .badge.qr-submitted, .badge.qr-under_review,
.badge.tk-new, .badge.tk-assigned, .badge.tk-in_progress { background: var(--violet-soft); color: var(--violet-ink); }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.eyebrow { display: inline-block; padding: 6px 16px; border: 1px solid rgba(168, 85, 247, .45); border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #b79bff; }

/* ---- layout helpers ---- */
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.row-between > div { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-between > div:first-child { display: block; }
.row-between h1 { margin-block-end: 4px; }
.card h2 { font-size: 1.12rem; margin-block: 0 14px; }
.card h3 { font-size: 1rem; }
.card > :last-child { margin-block-end: 0; }
details > summary { list-style-position: inside; }
main.container { overflow-wrap: anywhere; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-dl, .dl { display: grid; grid-template-columns: 220px 1fr; gap: 8px 18px; margin: 0; }
.grid-dl dt, .dl dt { color: var(--muted); }
.grid-dl dd, .dl dd { margin: 0; }
.link-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.link-grid a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; background: var(--surface); font-weight: 600; transition: border-color .15s, box-shadow .15s; }
.link-grid a:hover { border-color: #c9bff0; box-shadow: var(--shadow); }
.tabs a { margin-inline-end: 10px; }
.tabs a.active { font-weight: 700; color: var(--violet-ink); }

/* ---- KPI tiles ---- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-block-end: 18px; }
.kpi { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: border-color .15s, transform .12s, box-shadow .15s; }
a.kpi[href]:hover { border-color: #c9bff0; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(60, 40, 140, .1); color: var(--text); }
.kpi-value { font-size: 1.85rem; font-weight: 700; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.kpi-value.small-value { font-size: 1.08rem; line-height: 1.3; background: none; color: var(--text); }
.kpi-label { font-size: .84rem; color: var(--muted); }

/* ---- documents, timeline ---- */
.doc { border-block-start: 1px solid var(--line); padding-block: 16px; }
.doc h3 { font-size: 1rem; margin: 0 0 4px; }
.doc details { margin-block-start: 8px; }
.doc summary { cursor: pointer; color: var(--violet); font-weight: 600; margin-block-end: 10px; }
.submit-bar { border-block-start: 1px solid var(--line); padding-block-start: 16px; text-align: end; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0; border-block-end: 1px dashed var(--line); }

/* ---- catalogue ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-block-start: 14px; }
.product { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); text-decoration: none; color: var(--text); min-width: 0; box-shadow: var(--shadow); transition: border-color .15s, transform .12s, box-shadow .15s; }
.product:hover { border-color: #c9bff0; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(60, 40, 140, .1); color: var(--text); }
.product img { width: 100%; height: 140px; object-fit: contain; background: #f7f5fd; border-radius: var(--radius-sm); margin-block-end: 8px; }
.product .p-name { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product .p-price { margin-block-start: auto; padding-block-start: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.product .p-price strong { color: var(--violet); font-size: 1.06rem; }
.product-head { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; margin-block-end: 16px; }
.product-head img { width: 200px; height: 200px; object-fit: contain; background: #f7f5fd; border-radius: var(--radius); }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin-block-start: 18px; }

/* ---- product picker ---- */
.picker { position: relative; }
.picker-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-ink); font-size: .85rem; font-weight: 600; }
.chip-x { border: 0; background: transparent; color: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 6px; }
.picker-results { position: absolute; inset-inline: 0; z-index: 20; list-style: none; margin: 4px 0 0; padding: 6px 0; max-height: 280px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgba(30, 20, 80, .16); }
.picker-results li { padding: 9px 14px; cursor: pointer; }
.picker-results li.active, .picker-results li:hover { background: var(--violet-soft); }
.picker-results li.picked { color: var(--muted); }

/* ---- support tickets ---- */
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; max-width: 85%; }
.msg p { margin: 0 0 4px; }
.msg-partner { align-self: flex-start; background: var(--surface); }
.msg-staff { align-self: flex-end; background: var(--violet-soft); border-color: #ddd0ff; }
.msg-internal { align-self: flex-end; background: #fff8e6; border-color: #f1d98a; }

/* ---- progress bars ---- */
.bar-cell { width: 35%; }
progress { width: 100%; max-width: 220px; height: 10px; border: 0; border-radius: 6px; background: #ebe7f7; vertical-align: middle; appearance: none; }
progress::-webkit-progress-bar { background: #ebe7f7; border-radius: 6px; }
progress::-webkit-progress-value { background: var(--grad); border-radius: 6px; }
progress::-moz-progress-bar { background: var(--grad); border-radius: 6px; }
progress.done::-webkit-progress-value { background: var(--ok); }
progress.done::-moz-progress-bar { background: var(--ok); }

/* ---- public pages (home, log-in, registration): dark, as the website hero ---- */
.area-public { background: var(--navy-950); color: #e9e6ff;
  background-image: radial-gradient(900px 520px at 85% 10%, rgba(124, 58, 237, .32), transparent 60%),
                    radial-gradient(700px 480px at 100% 70%, rgba(37, 99, 235, .22), transparent 60%),
                    radial-gradient(600px 400px at 0% 100%, rgba(168, 85, 247, .14), transparent 60%);
  background-attachment: fixed; }
.area-public .container { padding-block-start: 40px; }
.area-public .card { color: var(--text); border-color: transparent; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.area-public .hero h1, .area-public .hero.compact h1 { color: #fff; }
.area-public .lead { color: #b9b3dd; }
.area-public main > .alert { max-width: 720px; margin-inline: auto; }
.hero { text-align: center; padding: 48px 16px; }
.hero.compact { padding: 16px 16px 20px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; padding: 56px 0 40px; }
.home-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -.025em; color: #fff; margin: 22px 0 18px; text-wrap: balance; }
.home-hero h1 .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-hero .lead { margin: 0 0 30px; max-width: 560px; color: #b9b3dd; }
.home-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.home-hero .actions .btn { padding: 13px 28px; font-size: .98rem; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn.ghost:hover { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .4); }
.home-visual { display: flex; justify-content: center; }
.home-visual img { width: min(100%, 340px); height: auto; opacity: .9; filter: drop-shadow(0 0 28px rgba(168, 85, 247, .55)) drop-shadow(0 0 70px rgba(37, 99, 235, .35)); }
.home-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 10px 0 30px; border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius); overflow: hidden; background: rgba(12, 10, 38, .6); }
.home-features > div { padding: 26px; border-inline-end: 1px solid rgba(255, 255, 255, .08); }
.home-features > div:last-child { border-inline-end: 0; }
.home-features .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; margin-block-end: 16px; box-shadow: 0 6px 18px rgba(124, 58, 237, .4); }
.home-features .ico img { width: 24px; height: auto; }
.home-features h3 { color: #fff; font-size: 1.02rem; margin: 0 0 8px; }
.home-features p { color: #a9a3cf; font-size: .9rem; margin: 0; }
.home-hint { color: #a9a3cf; font-size: .9rem; }
.home-hint a { color: #c4b5fd; }
.login-logo { display: flex; justify-content: center; margin: 8px 0 22px; }
.login-logo img { height: 80px; width: auto; }

/* ---- footer ---- */
.site-footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px max(16px, calc((100% - 1180px) / 2));
  background: var(--navy-950); color: #8e88b8; font-size: .78rem; letter-spacing: .06em; border-block-start: 1px solid rgba(255, 255, 255, .06); }
.site-footer strong { color: #c9c3ee; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; padding-top: 28px; }
  .home-visual { order: -1; }
  .home-visual img { width: 160px; }
  .home-features { grid-template-columns: 1fr; }
  .home-features > div { border-inline-end: 0; border-block-end: 1px solid rgba(255, 255, 255, .08); }
  .three-col { grid-template-columns: 1fr; }
  .grid-dl, .dl { grid-template-columns: 1fr; }
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .card { padding: 18px; }
  .container { padding: 18px 12px 28px; }
  .brand img { height: 38px; }
  .brand span { display: none; }
  .topbar nav { gap: 12px; }
  .row-between { flex-direction: column; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .inline-form input, .inline-form select { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product img { height: 100px; }
  .product-head { grid-template-columns: 1fr; }
  .msg { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .btn.primary:hover, a.kpi[href]:hover, .product:hover { transform: none; } }

/* Print (TRD §13.3): reports print without navigation, forms or buttons. */
@media print {
  .topbar, .subnav, .site-footer, .btn, button, form, .flash, .no-print, nav.tabs { display: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .card, .kpi { box-shadow: none !important; border: 1px solid #ccc !important; break-inside: avoid; margin: 0 0 8pt !important; }
  .kpi-value { color: #000 !important; background: none !important; }
  .table-wrap { overflow: visible !important; }
  a { color: #000 !important; text-decoration: none !important; }
  progress { display: none !important; }
  .kpis { display: flex !important; flex-wrap: wrap; gap: 6pt; }
}

/* Honeypot field on public forms: invisible to people, still in the DOM for bots. */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
