/* Simacity design system */
:root {
  --ink: #0a202b;
  --ink-2: #143440;
  --ink-3: #244a56;
  --paper: #f2f6f5;
  --paper-2: #e8efee;
  --white: #ffffff;
  --red: #e4433a;
  --red-dark: #c7332b;
  --teal: #11998e;
  --teal-soft: #d7eee9;
  --blue: #3f7fa5;
  --amber: #e9ad38;
  --violet: #7667b1;
  --green: #6a9958;
  --line: #cbd8d8;
  --line-dark: #9fb1b4;
  --muted: #62777d;
  --muted-dark: #8fa4a9;
  --soft: #e6edec;
  --danger-soft: #f8d9d6;
  --shadow: 0 24px 70px rgba(10, 32, 43, 0.11);
  --max: 1440px;
  --read: 760px;
  --radius: 2px;
  --font-ui: "Aptos", "Segoe UI", "Noto Sans SC", "Microsoft YaHei", "Yu Gothic UI", "Malgun Gothic", sans-serif;
  --font-display: "Bahnschrift", "Aptos Display", "Segoe UI", "Noto Sans SC", "Microsoft YaHei", "Yu Gothic UI", "Malgun Gothic", sans-serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-ui); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--red); color: white; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 16px; top: -100px; z-index: 10000; padding: 12px 18px; color: white; background: var(--ink); border: 2px solid var(--teal); transition: top .2s ease; }
.skip-link:focus { top: 16px; }
.container { width: min(calc(100% - 64px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 64px), 1040px); margin-inline: auto; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.icon-sm { width: 16px; height: 16px; flex: 0 0 auto; }
.icon-lg { width: 28px; height: 28px; flex: 0 0 auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border: 1px solid var(--ink); border-radius: var(--radius); background: transparent; color: var(--ink); font-weight: 650; line-height: 1; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: white; border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-2); }
.btn-signal { background: var(--red); color: white; border-color: var(--red); }
.btn-signal:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ghost { border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--ink); background: white; }
.btn-light { border-color: rgba(255,255,255,.45); color: white; }
.btn-light:hover { background: rgba(255,255,255,.1); }
.btn-sm { min-height: 36px; padding: 0 13px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--red); }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: transparent; }
.icon-btn:hover { background: var(--soft); }

/* Header */
.announcement { min-height: 32px; display: flex; align-items: center; background: var(--ink); color: #d6e2e1; font-size: 12px; letter-spacing: .02em; }
.announcement .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.announcement-status { display: inline-flex; align-items: center; gap: 8px; }
.signal-dot { width: 6px; height: 6px; background: #48d5b7; box-shadow: 0 0 0 3px rgba(72,213,183,.16); border-radius: 50%; }
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(18px); }
.header-main { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; overflow: visible; background: transparent; border: 0; }
.brand-icon { width: 100%; height: 100%; object-fit: contain; padding: 0; }
.brand-word { line-height: 1; font-family: var(--font-display); font-weight: 750; letter-spacing: -.03em; font-size: 22px; }
.brand-sub { display: block; margin-top: 5px; color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: .11em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 28px; }
.site-nav a { position: relative; padding: 28px 0 25px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 3px; background: var(--red); transition: right .2s ease; }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-search { position: relative; width: clamp(150px, 16vw, 232px); }
.header-search input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 0 36px 0 14px; font-size: 13px; }
.header-search input::placeholder { color: #7b8d92; }
.header-search button { position: absolute; top: 1px; right: 1px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); }
.header-search button:hover { color: var(--ink); }
.lang-wrap { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: white; font-size: 13px; font-weight: 650; }
.lang-btn .code { font-family: var(--font-mono); color: var(--red); font-size: 11px; }
.lang-menu { position: absolute; top: calc(100% + 7px); right: 0; z-index: 110; width: min(520px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 6px; background: white; border: 1px solid var(--line-dark); box-shadow: 0 18px 44px rgba(10,32,43,.14); }
.lang-menu button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; border: 0; background: transparent; text-align: start; font-size: 13px; }
.lang-menu button:hover, .lang-menu button.active { background: var(--paper); color: var(--red); }
.lang-menu .lang-code { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.mobile-toggle { display: none; }
.mobile-nav { display: none; }/* Home hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(rgba(10,32,43,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(10,32,43,.035) 1px, transparent 1px), var(--paper); background-size: 36px 36px; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--red) 0 14%, transparent 14% 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(450px, .92fr); align-items: center; gap: 80px; min-height: 680px; padding-block: 72px 78px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 650; color: var(--ink-3); }
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--red); }
.hero h1 { max-width: 760px; margin-top: 27px; font-family: var(--font-display); font-size: clamp(52px, 6.4vw, 96px); line-height: .98; letter-spacing: -.045em; font-weight: 700; text-wrap: balance; }
.hero-body { max-width: 650px; margin-top: 27px; color: #4f686f; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 33px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px 30px; margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); }
.proof-item strong { display: block; font-family: var(--font-display); font-size: 24px; line-height: 1.1; letter-spacing: -.03em; }
.proof-item span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.signal-console { position: relative; z-index: 1; background: var(--ink); color: white; border: 1px solid #294653; box-shadow: 18px 18px 0 rgba(10,32,43,.08); clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.signal-console::before { content: ""; position: absolute; right: 0; top: 0; width: 28px; height: 28px; background: var(--red); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.console-head { display: flex; align-items: center; justify-content: space-between; padding: 23px 25px 19px; border-bottom: 1px solid rgba(255,255,255,.11); }
.console-title { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 14px; }
.console-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 9px; border: 1px solid rgba(72,213,183,.3); color: #8ce7d3; font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.scope { position: relative; height: 258px; padding: 18px 25px 0; overflow: hidden; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 40px 40px; }
.scope::after { content: "CH1  ·  1.8 GHz"; position: absolute; right: 24px; top: 15px; color: #6f8991; font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; }
.scope-axis { position: absolute; left: 25px; right: 25px; top: 50%; height: 1px; background: rgba(255,255,255,.11); }
.scope-wave { position: absolute; left: 0; right: 0; top: 32px; height: 180px; width: 100%; }
.scope-wave path { stroke-linecap: square; stroke-linejoin: miter; }
.scope-wave .trace-base { fill: none; stroke: rgba(228,67,58,.15); stroke-width: 1.2; }
.scope-wave .trace-main { fill: none; stroke: var(--red); stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-dasharray: 12 4; animation: trace-flow 9s linear infinite; filter: drop-shadow(0 0 6px rgba(228,67,58,.32)); }
.scope-wave .trace-ghost { fill: none; stroke: rgba(255,255,255,.26); stroke-width: 1; stroke-dasharray: 2 6; }
.scope-wave circle { fill: #8ce7d3; }
@keyframes trace-flow { to { stroke-dashoffset: -240; } }
.console-control { position: absolute; z-index: 2; left: 25px; right: 25px; bottom: 15px; }
.control-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.control-label { font-size: 11px; color: #92a6ac; }
.control-value { font-family: var(--font-mono); color: white; font-size: 17px; }
.freq-range { width: 100%; height: 2px; appearance: none; background: #405b64; accent-color: var(--red); }
.freq-range::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; border: 3px solid var(--ink); border-radius: 50%; background: var(--red); box-shadow: 0 0 0 1px var(--red); }
.freq-range::-moz-range-thumb { width: 12px; height: 12px; border: 3px solid var(--ink); border-radius: 50%; background: var(--red); }
.console-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.11); }
.console-metric { padding: 17px 20px; border-right: 1px solid rgba(255,255,255,.11); }
.console-metric:last-child { border-right: 0; }
.console-metric span { display: block; color: #8fa4aa; font-size: 10px; }
.console-metric strong { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 15px; font-weight: 600; }
.console-result { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 20px; background: #0f2c38; border-top: 1px solid rgba(255,255,255,.1); }
.console-result small { display: block; color: #849ca2; font-size: 9px; }
.console-result strong { display: block; margin-top: 3px; font-size: 13px; }
.match-gauge { display: flex; align-items: center; gap: 9px; color: #8ce7d3; font-family: var(--font-mono); font-size: 13px; }
.match-gauge::before { content: ""; width: 42px; height: 3px; background: linear-gradient(90deg, #48d5b7 0 94%, #294650 94%); }

/* Sections */
.section { padding-block: 94px; }
.section-white { background: var(--white); }
.section-dark { background: var(--ink); color: white; }
.section-teal { background: #dcebe8; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 42px; }
.section-head-copy { max-width: 760px; }
.section-kicker { display: block; margin-bottom: 13px; color: var(--red); font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.section-title { font-family: var(--font-display); font-size: clamp(34px, 4vw, 56px); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.section-body { max-width: 680px; margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.section-dark .section-body { color: #a7b8bd; }
.section-dark .section-kicker { color: #ff7d75; }

.category-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.category-card { position: relative; min-height: 230px; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: white; border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.category-card:nth-child(1), .category-card:nth-child(6) { grid-column: span 6; }
.category-card:nth-child(2), .category-card:nth-child(3), .category-card:nth-child(4), .category-card:nth-child(5) { grid-column: span 3; }
.category-card:hover { transform: translateY(-3px); border-color: var(--ink-3); box-shadow: 0 15px 36px rgba(10,32,43,.08); }
.category-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--accent, var(--red)); }
.category-card::after { content: ""; position: absolute; right: -42px; bottom: -58px; width: 160px; height: 160px; border: 1px solid var(--line); transform: rotate(35deg); opacity: .55; }
.category-top { display: flex; justify-content: space-between; align-items: flex-start; }
.category-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--accent, var(--red)); background: color-mix(in srgb, var(--accent, var(--red)) 10%, white); border: 1px solid color-mix(in srgb, var(--accent, var(--red)) 30%, white); }
.category-icon svg { width: 25px; height: 25px; }
.category-count { color: var(--muted); font-family: var(--font-mono); font-size: 10px; }
.category-card h3 { position: relative; z-index: 1; margin-top: 23px; font-family: var(--font-display); font-size: 24px; letter-spacing: -.025em; }
.category-card p { position: relative; z-index: 1; max-width: 580px; margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.category-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-top: 22px; font-size: 12px; font-weight: 650; }
.category-bottom .arrow { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s; }
.category-card:hover .category-bottom .arrow { background: var(--ink); color: white; border-color: var(--ink); }
.workflow-band { padding-block: 88px; }
.workflow-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.workflow-copy { position: sticky; top: 122px; }
.workflow-steps { border-top: 1px solid rgba(255,255,255,.16); }
.workflow-step { display: grid; grid-template-columns: 70px 1fr; gap: 24px; padding: 29px 0 31px; border-bottom: 1px solid rgba(255,255,255,.16); }
.step-number { color: var(--red); font-family: var(--font-mono); font-size: 12px; padding-top: 4px; }
.workflow-step h3 { font-family: var(--font-display); font-size: 25px; letter-spacing: -.02em; }
.workflow-step p { max-width: 580px; margin-top: 8px; color: #9eb1b7; font-size: 14px; line-height: 1.65; }
.workflow-action { margin-top: 30px; }.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.product-card { position: relative; display: flex; flex-direction: column; min-height: 390px; padding: 22px; background: white; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-3px); border-color: var(--line-dark); box-shadow: 0 16px 38px rgba(10,32,43,.07); }
.product-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.product-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.product-tag::before { content: ""; width: 5px; height: 5px; background: currentColor; }
.product-stock { color: var(--muted); font-family: var(--font-mono); font-size: 9px; }
.product-name { margin-top: 30px; font-family: var(--font-display); font-size: 28px; letter-spacing: -.03em; }
.product-desc { min-height: 65px; margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.product-specs { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-spec { padding: 13px 8px 13px 0; }
.product-spec + .product-spec { padding-left: 10px; border-left: 1px solid var(--line); }
.product-spec span { display: block; color: var(--muted); font-size: 9px; }
.product-spec strong { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 11px; white-space: nowrap; }
.product-foot { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: auto; padding-top: 21px; }
.product-price small { display: block; color: var(--muted); font-size: 9px; }
.product-price strong { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; }
.product-actions { display: flex; gap: 7px; }
.product-compare { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); background: white; color: var(--muted); }
.product-compare.active, .product-compare:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.custom-section { position: relative; overflow: hidden; }
.custom-section::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 42px 42px; pointer-events: none; }
.custom-grid { position: relative; display: grid; grid-template-columns: 1fr .92fr; gap: 80px; align-items: center; }
.custom-copy h2 { max-width: 650px; }
.custom-features { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.feature-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.18); color: #c4d1d4; font-size: 11px; }
.feature-pill::before { content: ""; width: 5px; height: 5px; background: var(--red); }
.custom-preview { position: relative; padding: 1px; background: linear-gradient(135deg, rgba(228,67,58,.8), rgba(17,153,142,.35) 48%, rgba(255,255,255,.12)); }
.custom-preview-inner { padding: 29px; background: #102d39; }
.preview-head { display: flex; justify-content: space-between; align-items: center; color: #93a8ad; font-size: 10px; }
.preview-wave { margin-block: 30px 23px; }
.preview-wave path { fill: none; stroke: var(--red); stroke-width: 2; vector-effect: non-scaling-stroke; }
.preview-wave path:nth-child(2) { stroke: rgba(17,153,142,.55); stroke-width: 1; transform: translateY(18px); }
.preview-part { display: flex; justify-content: space-between; gap: 20px; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.11); }
.preview-part span { color: #8fa4aa; font-size: 9px; }
.preview-part strong { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 18px; }
.preview-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 20px; background: rgba(255,255,255,.11); }
.preview-spec { padding: 15px; background: #102d39; }
.preview-spec span { display: block; color: #8fa4aa; font-size: 9px; }
.preview-spec strong { display: block; margin-top: 5px; font-family: var(--font-mono); font-size: 12px; }
.platform-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.platform-copy .section-body { color: #50686f; }
.platform-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 32px; background: rgba(10,32,43,.15); border: 1px solid rgba(10,32,43,.15); }
.platform-metric { padding: 20px; background: #dcebe8; }
.platform-metric strong { display: block; font-family: var(--font-display); font-size: 30px; line-height: 1; letter-spacing: -.03em; }
.platform-metric span { display: block; margin-top: 7px; color: #526b71; font-size: 10px; }
.dashboard-mock { position: relative; padding: 18px; background: white; border: 1px solid rgba(10,32,43,.24); box-shadow: 18px 18px 0 rgba(10,32,43,.09); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.mock-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mock-logo { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; }
.mock-logo i { width: 20px; height: 20px; background: var(--ink); }
.mock-status { display: flex; align-items: center; gap: 7px; color: var(--teal); font-family: var(--font-mono); font-size: 8px; text-transform: uppercase; }
.mock-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 10px; margin-top: 14px; }
.mock-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mock-kpi { padding: 14px; background: var(--paper); border: 1px solid var(--line); }
.mock-kpi span { display: block; color: var(--muted); font-size: 8px; }
.mock-kpi strong { display: block; margin-top: 5px; font-family: var(--font-display); font-size: 21px; }
.mock-chart { display: flex; align-items: end; gap: 4px; height: 98px; padding: 14px; background: var(--ink); }
.mock-chart i { flex: 1; background: var(--teal); opacity: .8; }
.mock-chart i:nth-child(2n) { background: var(--red); opacity: .78; }
.mock-side { padding: 13px; background: var(--paper); border: 1px solid var(--line); }
.mock-side h4 { font-size: 9px; }
.mock-row { display: flex; align-items: center; gap: 7px; margin-top: 12px; }
.mock-row i { width: 7px; height: 7px; background: var(--teal); }
.mock-row span { flex: 1; height: 5px; background: var(--line); }
.mock-row b { width: 28px; height: 5px; background: var(--ink-3); opacity: .4; }
.mock-list { margin-top: 10px; border: 1px solid var(--line); }
.mock-list-row { display: grid; grid-template-columns: 1.2fr .7fr .5fr; gap: 10px; padding: 10px 11px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 8px; }
.mock-list-row:last-child { border-bottom: 0; }
.mock-list-row.head { background: var(--paper); color: var(--muted); }
.site-footer { padding-block: 62px 28px; background: var(--ink); color: white; }
.footer-top { display: grid; grid-template-columns: 1.2fr repeat(3, .55fr); gap: 48px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand-word { font-size: 26px; }
.footer-brand p { max-width: 330px; margin-top: 18px; color: #94a8ae; font-size: 12px; line-height: 1.65; }
.footer-col h4 { margin-bottom: 15px; color: #c9d5d7; font-size: 11px; }
.footer-col a { display: block; margin-top: 10px; color: #91a6ac; font-size: 12px; }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-top: 25px; color: #748b92; font-size: 10px; }
.footer-bottom-links { display: flex; gap: 20px; }

/* Catalog */
.page-hero { padding: 72px 0 51px; background: white; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; color: var(--muted); font-size: 11px; }
.breadcrumbs a:hover { color: var(--red); }
.page-hero-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.page-title { font-family: var(--font-display); font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.04em; }
.page-subtitle { max-width: 690px; margin-top: 17px; color: var(--muted); font-size: 16px; }
.catalog-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 34px; padding-block: 40px 98px; }
.filter-panel { align-self: start; position: sticky; top: 105px; }
.filter-panel-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.filter-panel-head h2 { font-size: 14px; }
.filter-panel-head button { border: 0; background: transparent; color: var(--red); font-size: 10px; }
.filter-group { padding: 20px 0; border-bottom: 1px solid var(--line); }
.filter-group h3 { margin-bottom: 12px; color: var(--muted); font-size: 10px; font-weight: 650; }
.filter-option { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--ink-2); font-size: 12px; cursor: pointer; }
.filter-option input { width: 15px; height: 15px; margin: 0; accent-color: var(--red); }
.filter-option span { flex: 1; }
.filter-option small { color: var(--muted); font-family: var(--font-mono); font-size: 9px; }
.availability-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; }
.toggle { position: relative; width: 39px; height: 22px; flex: 0 0 auto; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-track { position: absolute; inset: 0; background: #b5c4c5; border-radius: 999px; transition: background .18s; cursor: pointer; }
.toggle-track::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: transform .18s; }
.toggle input:checked + .toggle-track { background: var(--teal); }
.toggle input:checked + .toggle-track::after { transform: translateX(17px); }
.toggle input:focus-visible + .toggle-track { outline: 3px solid var(--teal); outline-offset: 2px; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 20px; }
.catalog-search { position: relative; width: min(100%, 440px); }
.catalog-search input { width: 100%; height: 45px; padding: 0 42px 0 15px; border: 1px solid var(--line); background: white; }
.catalog-search button { position: absolute; right: 1px; top: 1px; width: 43px; height: 43px; border: 0; background: transparent; color: var(--muted); }
.catalog-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; }
.catalog-meta select { height: 40px; border: 1px solid var(--line); background: white; padding: 0 34px 0 12px; font-size: 11px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.catalog-grid .product-card { min-height: 410px; }
.empty-state { grid-column: 1 / -1; min-height: 320px; display: grid; place-items: center; padding: 40px; text-align: center; border: 1px dashed var(--line-dark); background: rgba(255,255,255,.45); }
.empty-state h3 { font-family: var(--font-display); font-size: 26px; }
.empty-state p { max-width: 480px; margin: 10px auto 22px; color: var(--muted); font-size: 13px; }/* Selector */
.selector-shell { padding-block: 44px 100px; }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: white; }
.step-item { display: flex; align-items: center; gap: 13px; padding: 17px 20px; border-right: 1px solid var(--line); color: var(--muted); }
.step-item:last-child { border-right: 0; }
.step-marker { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line-dark); font-family: var(--font-mono); font-size: 10px; }
.step-item.active { color: var(--ink); background: #f9fbfa; }
.step-item.active .step-marker { background: var(--red); border-color: var(--red); color: white; }
.step-item.done { color: var(--teal); }
.step-item.done .step-marker { border-color: var(--teal); color: var(--teal); }
.step-name { font-size: 12px; font-weight: 650; }
.selector-panel { margin-top: 18px; padding: 48px; background: white; border: 1px solid var(--line); }
.selector-panel-head { max-width: 720px; }
.selector-panel-head h2 { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 46px); line-height: 1.06; letter-spacing: -.03em; }
.selector-panel-head p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.application-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 36px; }
.application-card { position: relative; min-height: 220px; padding: 21px; text-align: left; background: var(--paper); border: 1px solid var(--line); transition: border-color .18s, background .18s, transform .18s; }
.application-card:hover { transform: translateY(-2px); border-color: var(--ink-3); }
.application-card.active { background: var(--ink); color: white; border-color: var(--ink); }
.application-card .app-icon { width: 43px; height: 43px; display: grid; place-items: center; color: var(--teal); border: 1px solid var(--line-dark); }
.application-card.active .app-icon { border-color: rgba(255,255,255,.25); color: #7ce1cc; }
.application-card h3 { margin-top: 25px; font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; }
.application-card p { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.application-card.active p { color: #a7b9be; }
.application-check { position: absolute; right: 14px; top: 14px; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--line); }
.application-card.active .application-check { background: var(--red); border-color: var(--red); color: white; }
.selector-actions { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.selector-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 34px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field-label { color: var(--ink-2); font-size: 11px; font-weight: 650; }
.field input, .field select, .field textarea { width: 100%; min-height: 47px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 0; background: white; font-size: 14px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: 0; box-shadow: 0 0 0 3px rgba(17,153,142,.12); }
.field small { color: var(--muted); font-size: 10px; }
.field.full { grid-column: 1 / -1; }
.result-list { display: grid; gap: 10px; margin-top: 32px; }
.result-card { display: grid; grid-template-columns: 76px minmax(0, 1fr) 150px; align-items: center; gap: 24px; padding: 22px; border: 1px solid var(--line); background: #fbfcfc; }
.result-card.recommended { border-left: 4px solid var(--red); }
.match-ring { position: relative; --score: 90; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--teal) calc(var(--score) * 1%), var(--soft) 0); }
.match-ring::before { content: ""; width: 50px; height: 50px; border-radius: 50%; background: white; }
.match-ring span { position: absolute; font-family: var(--font-mono); font-size: 13px; font-weight: 650; }
.result-main h3 { font-family: var(--font-display); font-size: 26px; letter-spacing: -.025em; }
.result-main p { max-width: 620px; margin-top: 5px; color: var(--muted); font-size: 12px; }
.result-specs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.mini-tag { padding: 4px 7px; background: var(--soft); color: var(--ink-3); font-family: var(--font-mono); font-size: 9px; }
.result-actions { display: flex; flex-direction: column; gap: 8px; }
.result-note { margin-top: 7px; color: var(--teal); font-size: 10px; font-weight: 650; }

/* Customizer */
.customizer-shell { padding-block: 44px 100px; }
.customizer-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) 410px; gap: 24px; align-items: start; }
.custom-form-panel { padding: 38px; background: white; border: 1px solid var(--line); }
.form-section + .form-section { margin-top: 34px; padding-top: 31px; border-top: 1px solid var(--line); }
.form-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 22px; }
.form-section-head h2 { font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; }
.form-section-head span { color: var(--muted); font-family: var(--font-mono); font-size: 9px; }
.custom-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.custom-form-grid .full { grid-column: 1 / -1; }
.summary-panel { position: sticky; top: 105px; overflow: hidden; background: var(--ink); color: white; border: 1px solid var(--ink); clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); }
.summary-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
.summary-head h2 { font-size: 14px; }
.summary-head span { color: #94a9af; font-family: var(--font-mono); font-size: 9px; }
.summary-visual { padding: 25px 24px 0; }
.summary-visual svg { width: 100%; height: 92px; }
.summary-visual path { fill: none; stroke: var(--red); stroke-width: 2; vector-effect: non-scaling-stroke; }
.summary-visual .summary-trace-2 { stroke: rgba(17,153,142,.55); stroke-width: 1; transform: translateY(18px); }
.summary-body { padding: 17px 24px 24px; }
.summary-label { color: #8fa4aa; font-size: 9px; }
.summary-part { margin-top: 6px; font-family: var(--font-mono); font-size: 16px; line-height: 1.35; word-break: break-all; }
.summary-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 20px; background: rgba(255,255,255,.1); }
.summary-spec { padding: 13px; background: var(--ink); }
.summary-spec span { display: block; color: #8fa4aa; font-size: 8px; }
.summary-spec strong { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 10px; }
.summary-price { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 21px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.summary-price span { display: block; color: #8fa4aa; font-size: 8px; }
.summary-price strong { display: block; margin-top: 5px; font-family: var(--font-display); font-size: 21px; }
.summary-note { margin-top: 15px; color: #82989e; font-size: 9px; line-height: 1.6; }
.summary-actions { display: grid; gap: 9px; margin-top: 21px; }
.summary-actions .btn-light { border-color: rgba(255,255,255,.28); }
.summary-features { display: flex; gap: 8px; margin-top: 21px; }
.summary-feature { flex: 1; padding: 9px 6px; text-align: center; border: 1px solid rgba(255,255,255,.13); color: #a9bcc1; font-size: 8px; }

/* Modal / compare / toast */
.modal-backdrop { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 28px; background: rgba(5,18,25,.68); backdrop-filter: blur(8px); animation: fade-in .18s ease; }
.modal { width: min(760px, 100%); max-height: calc(100vh - 56px); overflow: auto; background: white; border: 1px solid var(--line); box-shadow: 0 30px 100px rgba(0,0,0,.25); animation: modal-in .22s ease; }
.modal.wide { width: min(1050px, 100%); }
.modal.small { width: min(540px, 100%); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 24px 27px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.modal-head h2 { font-family: var(--font-display); font-size: 29px; letter-spacing: -.025em; }
.modal-head p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.modal-close { flex: 0 0 auto; }
.modal-body { padding: 28px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 20px 28px; border-top: 1px solid var(--line); }
.detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 38px; }
.detail-hero { padding: 24px; background: var(--paper); border: 1px solid var(--line); }
.detail-hero h3 { font-family: var(--font-display); font-size: 35px; letter-spacing: -.03em; }
.detail-hero p { margin-top: 10px; color: var(--muted); font-size: 13px; }
.detail-specs { margin-top: 22px; }
.detail-row { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.detail-row span { color: var(--muted); }
.detail-row strong { font-family: var(--font-mono); font-size: 10px; text-align: right; }
.detail-price { margin-top: 22px; }
.detail-price span { display: block; color: var(--muted); font-size: 9px; }
.detail-price strong { display: block; margin-top: 3px; font-family: var(--font-display); font-size: 32px; }
.detail-actions { display: grid; gap: 9px; margin-top: 22px; }
.compare-table-wrap { overflow-x: auto; }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; }
.compare-table th { background: var(--paper); color: var(--muted); font-weight: 600; }
.compare-table td strong { font-family: var(--font-mono); font-size: 10px; }
.success-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 5px auto 20px; background: var(--teal-soft); color: var(--teal); border-radius: 50%; }
.success-copy { text-align: center; }
.success-copy h2 { font-family: var(--font-display); font-size: 31px; letter-spacing: -.025em; }
.success-copy p { max-width: 450px; margin: 10px auto 0; color: var(--muted); font-size: 13px; }
.success-id { display: inline-flex; margin-top: 20px; padding: 9px 14px; background: var(--paper); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; }
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: grid; gap: 9px; pointer-events: none; }
.toast { min-width: 280px; max-width: 420px; display: flex; align-items: center; gap: 11px; padding: 13px 15px; background: var(--ink); color: white; border-left: 4px solid var(--teal); box-shadow: var(--shadow); font-size: 12px; animation: toast-in .24s ease; pointer-events: auto; }
.toast.error { border-left-color: var(--red); }
.compare-tray { position: fixed; left: 50%; bottom: 18px; z-index: 300; width: min(720px, calc(100% - 32px)); transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--ink); color: white; box-shadow: 0 20px 60px rgba(5,18,25,.28); border: 1px solid #284752; }
.compare-tray-label { min-width: max-content; font-size: 10px; color: #9db0b5; }
.compare-chips { display: flex; flex: 1; gap: 7px; overflow-x: auto; }
.compare-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.18); font-family: var(--font-mono); font-size: 9px; white-space: nowrap; }
.compare-chip button { padding: 0; border: 0; background: transparent; color: #9db0b5; }
.compare-tray .btn { min-height: 40px; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.99); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }/* Merchant workspace */
.admin-page { min-height: 100vh; background: #eef3f2; }
.admin-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; z-index: 40; height: 100vh; display: flex; flex-direction: column; padding: 22px 16px 18px; background: var(--ink); color: white; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-brand .brand-mark { width: 36px; height: 36px; border: 0; }
.admin-brand .brand-word { font-size: 19px; }
.admin-brand .brand-sub { color: #718a91; font-size: 7px; }
.admin-workspace-tag { margin: 17px 7px 20px; padding: 10px 11px; border: 1px solid rgba(255,255,255,.12); color: #a5b8bd; font-size: 10px; }
.admin-workspace-tag strong { display: block; margin-top: 2px; color: white; font-size: 12px; }
.admin-nav-group { margin-top: 18px; }
.admin-nav-title { margin: 0 9px 7px; color: #607b83; font-family: var(--font-mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.admin-nav button, .admin-nav a { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 11px; padding: 0 11px; margin-top: 3px; border: 0; background: transparent; color: #9eb2b8; font-size: 12px; text-align: left; transition: background .15s, color .15s; }
.admin-nav button:hover, .admin-nav a:hover { color: white; background: rgba(255,255,255,.06); }
.admin-nav button.active { color: white; background: #173944; box-shadow: inset 3px 0 var(--red); }
.admin-nav .nav-badge { margin-left: auto; padding: 2px 6px; background: var(--red); color: white; font-family: var(--font-mono); font-size: 8px; }
.admin-side-bottom { margin-top: auto; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.1); }
.admin-user { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 9px; }
.admin-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; background: var(--teal); color: white; font-size: 11px; font-weight: 700; }
.admin-user strong { display: block; font-size: 11px; }
.admin-user span { display: block; margin-top: 2px; color: #6f888f; font-size: 8px; }
.admin-main { min-width: 0; }
.admin-topbar { position: sticky; top: 0; z-index: 30; min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0 30px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.admin-top-left { display: flex; align-items: center; gap: 14px; }
.admin-sidebar-toggle { display: none; }
.admin-search { position: relative; width: min(380px, 32vw); }
.admin-search input { width: 100%; height: 38px; padding: 0 38px 0 13px; border: 1px solid var(--line); background: var(--paper); font-size: 11px; }
.admin-search button { position: absolute; right: 1px; top: 1px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); }
.admin-top-actions { display: flex; align-items: center; gap: 8px; }
.admin-top-actions .icon-btn { width: 38px; height: 38px; }
.admin-content { max-width: 1500px; margin-inline: auto; padding: 31px 30px 60px; }
.admin-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 26px; }
.admin-page-head h1 { font-family: var(--font-display); font-size: 34px; line-height: 1; letter-spacing: -.03em; }
.admin-page-head p { margin-top: 9px; color: var(--muted); font-size: 12px; }
.admin-date { color: var(--muted); font-family: var(--font-mono); font-size: 9px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.admin-kpi { position: relative; min-height: 147px; padding: 19px; background: white; border: 1px solid var(--line); overflow: hidden; }
.admin-kpi.dark { background: var(--ink); color: white; border-color: var(--ink); }
.admin-kpi-label { color: var(--muted); font-size: 10px; }
.admin-kpi.dark .admin-kpi-label { color: #8fa4aa; }
.admin-kpi-value { margin-top: 13px; font-family: var(--font-display); font-size: 31px; line-height: 1; letter-spacing: -.035em; }
.admin-kpi-meta { display: flex; align-items: center; gap: 7px; margin-top: 13px; color: var(--muted); font-size: 9px; }
.admin-kpi.dark .admin-kpi-meta { color: #8fa4aa; }
.delta-up { color: var(--teal); font-family: var(--font-mono); font-size: 9px; }
.delta-warn { color: var(--red); font-family: var(--font-mono); font-size: 9px; }
.kpi-mini-chart { position: absolute; right: 14px; bottom: 14px; width: 74px; height: 34px; opacity: .85; }
.kpi-mini-chart path { fill: none; stroke: var(--teal); stroke-width: 2; vector-effect: non-scaling-stroke; }
.admin-kpi.dark .kpi-mini-chart path { stroke: #49d6ba; }
.admin-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr); gap: 11px; margin-top: 11px; }
.admin-panel { min-width: 0; background: white; border: 1px solid var(--line); }
.admin-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 20px 21px 16px; border-bottom: 1px solid var(--line); }
.admin-panel-head h2 { font-family: var(--font-display); font-size: 17px; letter-spacing: -.015em; }
.admin-panel-head p { margin-top: 4px; color: var(--muted); font-size: 9px; }
.admin-panel-body { padding: 20px 21px; }
.chart-wrap { position: relative; height: 250px; padding-top: 8px; }
.revenue-chart { width: 100%; height: 100%; overflow: visible; }
.revenue-chart .grid-line { stroke: #e3eae9; stroke-width: 1; }
.revenue-chart .axis-label { fill: #8b9ca0; font-family: var(--font-mono); font-size: 8px; }
.revenue-chart .rev-area { fill: url(#revenueFill); }
.revenue-chart .rev-line { fill: none; stroke: var(--red); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.revenue-chart .order-line { fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.chart-legend { display: flex; gap: 17px; color: var(--muted); font-size: 9px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; background: var(--red); }
.legend-dot.teal { background: var(--teal); }
.pipeline-list { display: grid; gap: 15px; }
.pipeline-row-head { display: flex; justify-content: space-between; align-items: center; font-size: 10px; }
.pipeline-row-head strong { font-family: var(--font-mono); font-size: 10px; }
.pipeline-bar { height: 7px; margin-top: 7px; background: var(--soft); }
.pipeline-bar i { display: block; height: 100%; background: var(--teal); }
.pipeline-row:nth-child(2) .pipeline-bar i { background: var(--blue); }
.pipeline-row:nth-child(3) .pipeline-bar i { background: var(--amber); }
.pipeline-row:nth-child(4) .pipeline-bar i { background: var(--red); }
.pipeline-foot { display: flex; justify-content: space-between; margin-top: 23px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 9px; color: var(--muted); }
.admin-bottom-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr); gap: 11px; margin-top: 11px; }
.table-wrap { max-width: 100%; overflow-x: auto; }
.data-table th { padding: 11px 18px; background: #f8faf9; color: var(--muted); font-size: 8px; font-weight: 650; text-align: left; white-space: nowrap; }
.data-table td { padding: 13px 18px; border-top: 1px solid var(--line); font-size: 10px; vertical-align: middle; }
.data-table td strong { font-family: var(--font-mono); font-size: 10px; }
.data-table tr:hover td { background: #fbfcfc; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; background: var(--soft); color: var(--ink-3); font-size: 8px; white-space: nowrap; }
.status-pill::before { content: ""; width: 5px; height: 5px; background: currentColor; }
.status-pill.inReview { background: #fff1d5; color: #966300; }
.status-pill.quoted { background: #dcecf8; color: #2e668c; }
.status-pill.production { background: #d9eee9; color: #0b786f; }
.status-pill.completed { background: #e2edda; color: #4d773e; }
.status-pill.active, .status-pill.published { background: #d9eee9; color: #0b786f; }
.status-pill.draft { background: #eee9f7; color: #65528e; }
.status-pill.archived { background: #e7eceb; color: #5f7176; }
.status-pill.new { background: #f8d9d6; color: #a12b25; }
.table-link { padding: 0; border: 0; background: transparent; color: var(--red); font-size: 9px; font-weight: 650; }
.table-link:hover { text-decoration: underline; }
.activity-list { display: grid; }
.activity-item { display: grid; grid-template-columns: 31px 1fr auto; gap: 11px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { width: 29px; height: 29px; display: grid; place-items: center; background: var(--paper); color: var(--teal); font-size: 10px; }
.activity-item strong { display: block; font-size: 10px; font-weight: 600; }
.activity-item p { margin-top: 3px; color: var(--muted); font-size: 8px; }
.activity-item time { color: var(--muted); font-family: var(--font-mono); font-size: 7px; }
.category-bar-list { display: grid; gap: 13px; }
.category-bar-head { display: flex; justify-content: space-between; align-items: center; font-size: 9px; }
.category-bar-head strong { font-family: var(--font-mono); font-size: 9px; }
.category-bar { height: 5px; margin-top: 6px; background: var(--soft); }
.category-bar i { display: block; height: 100%; background: var(--red); }
.category-bar-list .category-bar-row:nth-child(2) .category-bar i { background: var(--teal); }
.category-bar-list .category-bar-row:nth-child(3) .category-bar i { background: var(--blue); }
.category-bar-list .category-bar-row:nth-child(4) .category-bar i { background: var(--amber); }
.category-bar-list .category-bar-row:nth-child(5) .category-bar i { background: var(--violet); }
.category-bar-list .category-bar-row:nth-child(6) .category-bar i { background: var(--green); }
.admin-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 15px; }
.admin-toolbar-left { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.admin-search-inline { position: relative; width: 280px; }
.admin-search-inline input { width: 100%; height: 38px; border: 1px solid var(--line); background: white; padding: 0 35px 0 12px; font-size: 10px; }
.admin-search-inline button { position: absolute; right: 1px; top: 1px; width: 35px; height: 36px; border: 0; background: transparent; color: var(--muted); }
.admin-filter-select { height: 38px; border: 1px solid var(--line); background: white; padding: 0 31px 0 11px; font-size: 10px; }
.admin-table-panel { overflow: hidden; }
.admin-table-panel .data-table td { padding-block: 15px; }
.product-cell { display: flex; align-items: center; gap: 10px; min-width: 155px; }
.product-cell-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; background: var(--paper); color: var(--teal); }
.product-cell strong { display: block; font-family: var(--font-mono); font-size: 10px; }
.product-cell span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.stock-low { color: var(--red); font-family: var(--font-mono); font-size: 9px; }
.table-actions { display: flex; gap: 6px; }
.table-action { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line); background: white; color: var(--muted); }
.table-action:hover { color: var(--red); border-color: var(--red); }
.status-select { min-height: 31px; border: 1px solid var(--line); background: white; padding: 0 24px 0 8px; font-size: 9px; }
.request-config { max-width: 360px; color: var(--muted); font-size: 9px; }
.request-value { font-family: var(--font-mono); font-size: 9px; }
.category-admin-list { display: grid; gap: 9px; }
.category-admin-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 220px 110px 90px; gap: 16px; align-items: center; padding: 15px 18px; background: white; border: 1px solid var(--line); }
.category-admin-icon { width: 38px; height: 38px; display: grid; place-items: center; background: var(--paper); color: var(--teal); }
.category-admin-name strong { display: block; font-size: 11px; }
.category-admin-name span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.category-admin-bar { display: flex; align-items: center; gap: 10px; }
.category-admin-bar i { height: 5px; background: var(--teal); }
.category-admin-bar span { color: var(--muted); font-family: var(--font-mono); font-size: 8px; }
.customer-avatar { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; background: var(--ink); color: white; font-family: var(--font-mono); font-size: 9px; }
.customer-cell { display: flex; align-items: center; gap: 9px; }
.customer-cell strong { display: block; font-size: 10px; }
.customer-cell span { display: block; margin-top: 2px; color: var(--muted); font-family: var(--font-mono); font-size: 7px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.settings-card { padding: 23px; background: white; border: 1px solid var(--line); }
.settings-card h2 { font-family: var(--font-display); font-size: 18px; }
.settings-card > p { margin-top: 5px; color: var(--muted); font-size: 9px; }
.settings-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 21px; }
.settings-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.settings-row:last-child { border-bottom: 0; }
.settings-row strong { display: block; font-size: 10px; }
.settings-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.language-coverage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 18px; }
.language-coverage span { padding: 8px 10px; background: var(--paper); color: var(--ink-3); font-size: 9px; }
.language-coverage span::before { content: "✓"; margin-right: 7px; color: var(--teal); }
.settings-save { display: flex; justify-content: flex-end; margin-top: 15px; }
.admin-empty { padding: 40px; text-align: center; color: var(--muted); font-size: 11px; }
.admin-overlay { display: none; }/* Responsive */
@media (max-width: 1280px) {
  .header-main { gap: 24px; }
  .site-nav { gap: 20px; }
  .hero-grid { gap: 45px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-admin-row { grid-template-columns: 40px minmax(0, 1fr) 170px 95px; }
  .category-admin-row > :last-child { display: none; }
}
@media (max-width: 1120px) {
  .header-search { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 68px 76px; }
  .hero-copy { max-width: 880px; }
  .hero h1 { max-width: 900px; }
  .signal-console { width: min(720px, 100%); }
  .workflow-grid, .custom-grid, .platform-grid { gap: 44px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .application-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-dashboard-grid, .admin-bottom-grid { grid-template-columns: 1fr; }
  .category-admin-row { grid-template-columns: 40px minmax(0, 1fr) 140px 90px; }
}
@media (max-width: 920px) {
  .site-nav { display: none; }
  .mobile-toggle { display: inline-grid; }
  .header-main { grid-template-columns: auto 1fr auto; }
  .header-actions { justify-content: flex-end; }
  .mobile-nav { display: block; position: fixed; top: 108px; left: 0; right: 0; bottom: 0; z-index: 95; padding: 24px 24px 40px; background: var(--paper); transform: translateX(100%); transition: transform .24s ease; overflow-y: auto; }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 27px; letter-spacing: -.025em; }
  .mobile-nav .mobile-nav-meta { margin-top: 28px; color: var(--muted); font-size: 11px; }
  .mobile-nav .mobile-lang-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 13px; max-height: 340px; overflow-y: auto; padding-right: 2px; }
  .mobile-nav .mobile-lang-list button { padding: 11px; border: 1px solid var(--line); background: white; text-align: left; font-size: 12px; }
  .mobile-nav .mobile-lang-list button.active { border-color: var(--red); color: var(--red); }
  .workflow-grid, .custom-grid, .platform-grid { grid-template-columns: 1fr; }
  .workflow-copy { position: static; }
  .workflow-steps { margin-top: 20px; }
  .custom-preview { max-width: 720px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .filter-panel-head { margin-top: 0; }
  .filter-panel .filter-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
  .filter-panel .availability-toggle { grid-column: 1 / -1; }
  .customizer-layout { grid-template-columns: 1fr; }
  .summary-panel { position: static; }
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-col:last-child { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 248px; transform: translateX(-100%); transition: transform .22s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-sidebar-toggle { display: inline-grid; }
  .admin-overlay { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(5,18,25,.45); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .admin-overlay.show { opacity: 1; pointer-events: auto; }
  .admin-topbar { padding-inline: 20px; }
  .admin-content { padding-inline: 20px; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container, .narrow { width: calc(100% - 32px); }
  .announcement { display: none; }
  .header-main { min-height: 68px; gap: 10px; }
  .brand-word { font-size: 19px; }
  .brand-sub { font-size: 7px; }
  .brand-mark { width: 34px; height: 34px; }
  .lang-btn { width: 42px; padding: 0; justify-content: center; }
  .lang-btn .lang-name { display: none; }
  .lang-btn .chevron { display: none; }
  .header-actions .btn { display: none; }
  .mobile-nav { top: 100px; }
  .hero-grid { padding-block: 46px 54px; }
  .hero h1 { font-size: clamp(43px, 13vw, 66px); }
  .hero-body { font-size: 15px; }
  .hero-actions .btn { width: 100%; }
  .hero-proof { gap: 17px 24px; }
  .proof-item { min-width: 90px; }
  .scope { height: 230px; padding-inline: 17px; }
  .scope-axis { left: 17px; right: 17px; }
  .console-control { left: 17px; right: 17px; bottom: 14px; }
  .console-metrics { grid-template-columns: 1fr 1fr; }
  .console-metric { padding: 14px 17px; }
  .console-metric:last-child { display: none; }
  .console-result { align-items: flex-start; }
  .section { padding-block: 66px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 29px; }
  .section-title { font-size: 36px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card:nth-child(n) { grid-column: auto; }
  .category-card { min-height: 210px; }
  .workflow-step { grid-template-columns: 42px 1fr; gap: 13px; }
  .workflow-step h3 { font-size: 21px; }
  .product-grid, .catalog-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 360px; }
  .custom-preview-inner { padding: 22px; }
  .preview-specs { grid-template-columns: 1fr 1fr; }
  .preview-spec:last-child { display: none; }
  .platform-metrics { grid-template-columns: 1fr 1fr; }
  .dashboard-mock { padding: 13px; }
  .mock-grid { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .page-hero { padding-block: 46px 38px; }
  .page-hero-grid { align-items: flex-start; flex-direction: column; }
  .page-title { font-size: 44px; }
  .page-subtitle { font-size: 14px; }
  .filter-panel .filter-groups { grid-template-columns: 1fr; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; }
  .catalog-search { width: 100%; }
  .catalog-meta { justify-content: space-between; }
  .stepper { grid-template-columns: 1fr; }
  .step-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .step-item:last-child { border-bottom: 0; }
  .selector-panel { padding: 25px 18px; }
  .application-grid { grid-template-columns: 1fr; }
  .application-card { min-height: 170px; }
  .selector-form-grid, .custom-form-grid { grid-template-columns: 1fr; }
  .field.full, .custom-form-grid .full { grid-column: auto; }
  .selector-actions { flex-direction: column-reverse; align-items: stretch; }
  .selector-actions .btn { width: 100%; }
  .result-card { grid-template-columns: 58px 1fr; gap: 15px; }
  .result-actions { grid-column: 1 / -1; flex-direction: row; }
  .result-actions .btn { flex: 1; }
  .match-ring { width: 54px; height: 54px; }
  .match-ring::before { width: 42px; height: 42px; }
  .custom-form-panel { padding: 25px 18px; }
  .detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .modal-backdrop { padding: 10px; }
  .modal { max-height: calc(100vh - 20px); }
  .modal-body { padding: 20px; }
  .modal-head { padding: 20px; }
  .compare-tray { flex-wrap: wrap; }
  .compare-tray-label { display: none; }
  .compare-tray .btn { width: 100%; }
  .compare-chips { width: 100%; }
  .admin-topbar { min-height: 62px; }
  .admin-search { display: none; }
  .admin-content { padding: 22px 15px 45px; }
  .admin-page-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .admin-page-head h1 { font-size: 29px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-kpi { min-height: 133px; padding: 15px; }
  .admin-kpi-value { font-size: 26px; }
  .kpi-mini-chart { display: none; }
  .admin-panel-head { padding: 17px; }
  .admin-panel-body { padding: 17px; }
  .chart-wrap { height: 210px; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .admin-search-inline { width: 100%; }
  .admin-toolbar .btn { width: 100%; }
  .category-admin-row { grid-template-columns: 38px minmax(0, 1fr) 80px; gap: 10px; padding: 13px; }
  .category-admin-row > :nth-child(3) { display: none; }
  .settings-form { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .hero h1 { font-size: 42px; }
  .section-title { font-size: 32px; }
  .product-specs { grid-template-columns: 1fr 1fr; }
  .product-spec:last-child { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-col:last-child { display: block; }
  .kpi-grid { grid-template-columns: 1fr; }
  .admin-kpi { min-height: 118px; }
  .settings-form { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 720px) { .brand-sub { display: none; } }

/* RTL and expanded language support */
html[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Nastaliq Urdu", sans-serif; }
html[dir="rtl"] .hero,
html[dir="rtl"] .page-hero,
html[dir="rtl"] .section-head,
html[dir="rtl"] .admin-page-head { text-align: right; }
html[dir="rtl"] .eyebrow::before { order: 2; }
html[dir="rtl"] .breadcrumbs { flex-direction: row; }
html[dir="rtl"] .mono,
html[dir="rtl"] .lang-code,
html[dir="rtl"] .product-name,
html[dir="rtl"] .part,
html[dir="rtl"] .summary-part,
html[dir="rtl"] .request-value,
html[dir="rtl"] .data-table strong { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .lang-menu button,
html[dir="rtl"] .mobile-lang-list button,
html[dir="rtl"] .filter-option,
html[dir="rtl"] .detail-row,
html[dir="rtl"] .settings-row { text-align: right; }
html[dir="rtl"] .summary-note,
html[dir="rtl"] .field input,
html[dir="rtl"] .field select,
html[dir="rtl"] .field textarea { text-align: right; }
/* News & insights */
.news-page { padding-block: 38px 100px; }
.news-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.news-toolbar .catalog-search { width: min(500px, 100%); }
.news-filter { height: 45px; min-width: 190px; padding: 0 36px 0 13px; border: 1px solid var(--line); background: white; font-size: 12px; }
.news-count { color: var(--muted); font-size: 11px; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr); gap: 14px; align-items: start; }
.news-list { display: grid; gap: 12px; }
.news-card { position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 25px; overflow: hidden; background: white; border: 1px solid var(--line); }
.news-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--news-accent, var(--red)); }
.news-card-featured { min-height: 100%; padding: 32px; background: var(--ink); color: white; border-color: var(--ink); }
.news-card-featured::after { content: ""; position: absolute; right: -74px; bottom: -90px; width: 250px; height: 250px; border: 1px solid rgba(255,255,255,.12); transform: rotate(38deg); }
.news-card-meta { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 18px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; }
.news-card-featured .news-card-meta { color: #9db2b8; }
.news-category { display: inline-flex; align-items: center; gap: 7px; color: var(--news-accent, var(--red)); font-size: 10px; font-weight: 700; }
.news-category::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.news-card h2 { position: relative; z-index: 1; margin-top: 24px; font-family: var(--font-display); font-size: 27px; line-height: 1.12; letter-spacing: -.025em; }
.news-card-featured h2 { max-width: 620px; margin-top: 38px; font-size: clamp(34px, 4vw, 54px); }
.news-card p { position: relative; z-index: 1; max-width: 620px; margin-top: 13px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.news-card-featured p { color: #b1c1c5; font-size: 14px; }
.news-card-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: auto; padding-top: 24px; color: var(--muted); font-size: 10px; }
.news-card-featured .news-card-foot { color: #9db2b8; border-top: 1px solid rgba(255,255,255,.13); }
.news-card-featured .text-link { color: white; }
.news-home-section { background: white; }
.news-home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.news-home-grid .news-card { min-height: 305px; }
.news-home-grid .news-card-featured { background: white; color: var(--ink); border-color: var(--line); }
.news-home-grid .news-card-featured::after { border-color: var(--line); }
.news-home-grid .news-card-featured .news-card-meta,
.news-home-grid .news-card-featured p,
.news-home-grid .news-card-featured .news-card-foot { color: var(--muted); }
.news-home-grid .news-card-featured .news-card-foot { border-top-color: var(--line); }
.news-home-grid .news-card-featured .text-link { color: var(--ink); }
.news-lead { padding: 4px 0 20px; color: var(--ink-2); font-size: 18px; line-height: 1.65; }
.news-body { padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.85; white-space: normal; }
.news-admin-title { max-width: 390px; }
.news-admin-title strong { display: block; font-size: 11px; }
.news-admin-title span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.news-featured-label { display: inline-flex; margin-left: 7px; padding: 2px 5px; background: var(--teal-soft); color: var(--teal); font-size: 7px; }
html[dir="rtl"] .news-featured-label { margin-left: 0; margin-right: 7px; }
@media (max-width: 900px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-home-grid { grid-template-columns: 1fr; }
  .news-card-featured { min-height: 330px; }
}
@media (max-width: 720px) {
  .news-toolbar { align-items: stretch; flex-direction: column; }
  .news-filter { width: 100%; }
  .news-card, .news-card-featured { min-height: 260px; padding: 22px; }
  .news-card-featured h2 { font-size: 35px; }
  .news-count { display: none; }
}
/* Orders and customer operations */
.status-pill.pending { background: #fff1d5; color: #966300; }
.status-pill.confirmed { background: #dcecf8; color: #2e668c; }
.status-pill.processing { background: #d9eee9; color: #0b786f; }
.status-pill.shipped { background: #eee9f7; color: #65528e; }
.status-pill.delivered { background: #e2edda; color: #4d773e; }
.status-pill.cancelled { background: #f8d9d6; color: #a12b25; }
.status-pill.prospect { background: #dcecf8; color: #2e668c; }
.status-pill.inactive { background: #e7eceb; color: #5f7176; }
/* Invoice and packing list documents */
.document-modal { width: min(1080px, 100%); }
.document-body { padding: 24px; background: #e9efee; }
.business-document { width: 100%; max-width: 920px; margin: 0 auto; padding: 46px 52px; color: #142831; background: #fff; border: 1px solid #d4dddd; box-shadow: 0 18px 48px rgba(10,32,43,.1); }
.business-doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 36px; }
.business-brand-wrap { display: grid; gap: 13px; }
.business-brand { display: flex; align-items: center; gap: 12px; }
.business-brand img { width: 52px; height: 52px; object-fit: contain; }
.business-brand strong { display: block; font-family: var(--font-display); font-size: 22px; letter-spacing: -.03em; }
.business-brand small { display: block; margin-top: 2px; color: #6a7d82; font-size: 9px; letter-spacing: .04em; }
.business-company-meta { display: grid; gap: 2px; color: #667b80; font-size: 9px; line-height: 1.45; }
.business-doc-title { text-align: right; }
.business-doc-title span { display: block; color: #e4433a; font-family: var(--font-display); font-size: 29px; line-height: 1; letter-spacing: -.03em; }
.business-doc-title strong { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 13px; }
.business-doc-title small { display: inline-flex; margin-top: 9px; padding: 4px 8px; background: #e3f2ee; color: #0b786f; font-family: var(--font-mono); font-size: 8px; text-transform: uppercase; }
.business-rule { height: 3px; margin: 29px 0 24px; background: linear-gradient(90deg, #e4433a 0 18%, #142831 18% 100%); }
.business-meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid #dce4e4; border-bottom: 1px solid #dce4e4; }
.business-meta-grid span, .business-label { display: block; color: #718388; font-size: 8px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.business-meta-grid strong { display: block; margin-top: 5px; font-family: var(--font-mono); font-size: 10px; }
.business-parties { display: grid; grid-template-columns: repeat(2, 1fr); gap: 45px; padding: 25px 0 22px; }
.business-parties strong { display: block; margin-top: 7px; font-size: 12px; }
.business-parties p { margin-top: 3px; color: #667b80; font-size: 9px; line-height: 1.5; }
.business-table { width: 100%; border-collapse: collapse; }
.business-table thead th { padding: 10px 9px; background: #142831; color: #fff; font-size: 8px; font-weight: 600; text-align: left; }
.business-table tbody td { padding: 11px 9px; border-bottom: 1px solid #dce4e4; font-size: 9px; vertical-align: top; }
.business-table tbody td:first-child, .business-table tbody td:nth-child(3), .business-table tbody td:nth-child(4), .business-table tbody td:nth-child(5) { font-family: var(--font-mono); }
.business-table th:nth-child(3), .business-table th:nth-child(4), .business-table th:nth-child(5), .business-table td:nth-child(3), .business-table td:nth-child(4), .business-table td:nth-child(5) { text-align: right; }
.business-totals { display: grid; grid-template-columns: 1fr 280px; gap: 36px; margin-top: 22px; }
.business-notes { color: #667b80; font-size: 9px; line-height: 1.55; }
.business-notes p { margin-top: 3px; }
.business-total-box { border-top: 2px solid #142831; }
.business-total-box > div { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; border-bottom: 1px solid #dce4e4; font-size: 9px; }
.business-total-box strong { font-family: var(--font-mono); }
.business-grand-total { margin-top: 3px; padding: 11px 0 !important; border-top: 1px solid #142831; border-bottom: 0 !important; }
.business-grand-total span { color: #142831; font-size: 10px; font-weight: 700; }
.business-grand-total strong { color: #e4433a; font-family: var(--font-display); font-size: 19px; }
.business-doc-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 35px; padding-top: 14px; border-top: 1px solid #dce4e4; color: #687b80; font-size: 8px; }
.business-barcode { padding: 5px 8px; color: #142831; background: repeating-linear-gradient(90deg, #142831 0 1px, transparent 1px 3px); font-family: var(--font-mono); font-size: 7px; }
.business-signatures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 70px; margin-top: 35px; }
.business-signatures span { display: block; color: #718388; font-size: 8px; text-transform: uppercase; }
.business-signatures i { display: block; height: 32px; margin-top: 3px; border-bottom: 1px solid #9ba9ac; }
html[dir="rtl"] .business-document { direction: rtl; text-align: right; }
html[dir="rtl"] .business-doc-title { text-align: left; }
html[dir="rtl"] .business-table th { text-align: right; }
html[dir="rtl"] .business-table th:nth-child(3), html[dir="rtl"] .business-table th:nth-child(4), html[dir="rtl"] .business-table th:nth-child(5), html[dir="rtl"] .business-table td:nth-child(3), html[dir="rtl"] .business-table td:nth-child(4), html[dir="rtl"] .business-table td:nth-child(5) { text-align: left; }
@media (max-width: 720px) {
  .document-body { padding: 8px; }
  .business-document { padding: 24px 19px; }
  .business-doc-head, .business-meta-grid, .business-parties, .business-totals { grid-template-columns: 1fr; display: grid; }
  .business-doc-title { text-align: left; }
  .business-total-box { margin-top: 12px; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  body.printing-document { background: #fff !important; }
  body.printing-document #app, body.printing-document #toast-root, body.printing-document .skip-link,
  body.printing-document .modal-head, body.printing-document .modal-foot, body.printing-document .toast-root { display: none !important; }
  body.printing-document .modal-backdrop { position: static; display: block; padding: 0; background: #fff; backdrop-filter: none; }
  body.printing-document .modal { width: 100%; max-width: none; max-height: none; overflow: visible; border: 0; box-shadow: none; }
  body.printing-document .modal-body { padding: 0; }
  body.printing-document .document-body { padding: 0; background: #fff; }
  body.printing-document .business-document { max-width: none; padding: 0; border: 0; box-shadow: none; }
  body.printing-document .business-doc-foot { margin-top: 24px; }
}