/* Souq Electric — "Circuit board" design system.
   PCB green surfaces, copper accents, silkscreen labels, LED status lights.
   Logical properties everywhere so the same CSS works LTR (English) and RTL (Arabic). */

@font-face { font-family: "Noto Sans Arabic Local"; src: url("../fonts/NotoSansArabic-Regular.22e156b807f3.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans Arabic Local"; src: url("../fonts/NotoSansArabic-Bold.227e57411293.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --board: #0f3d33;
  --board-2: #155a4a;
  --board-3: #1d7461;
  --ink: #0b1714;
  --copper: #d9822b;
  --copper-2: #b8691c;
  --copper-soft: #fbeedf;
  --solder: #cfd8d4;
  --paper: #f5f3ec;
  --surface: #ffffff;
  --text: #13211d;
  --muted: #5b6a65;
  --line: #e3dfd3;
  --line-strong: #cdc7b6;
  --led-green: #22a565;
  --led-amber: #e59a1c;
  --led-red: #d9434a;
  --led-blue: #2f7de1;
  --led-grey: #8a9792;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(11, 23, 20, .06), 0 6px 20px rgba(11, 23, 20, .06);
  --font: "IBM Plex Sans Arabic", "Noto Sans Arabic Local", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --trace: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='2'%3E%3Cpath d='M0 40h60l20 20h80l20-20h60M0 120h30l20 20h60M240 120h-50l-20 20h-30M40 240v-60l20-20v-40M200 0v50l-20 20h-40M120 240v-50'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.09'%3E%3Ccircle cx='60' cy='40' r='4'/%3E%3Ccircle cx='180' cy='40' r='4'/%3E%3Ccircle cx='110' cy='140' r='4'/%3E%3Ccircle cx='140' cy='140' r='4'/%3E%3Ccircle cx='60' cy='120' r='4'/%3E%3Ccircle cx='140' cy='70' r='4'/%3E%3Ccircle cx='120' cy='190' r='4'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--paper); line-height: 1.55; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: var(--board-2); text-decoration: none; }
a:hover { color: var(--copper-2); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.mono, code { font-family: var(--mono); }
[dir="rtl"] .flip { transform: scaleX(-1); }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.icon { flex: none; vertical-align: middle; }
img.cat-icon { object-fit: contain; border-radius: 4px; background: transparent; }

/* ---- silkscreen label: the signature element ---- */
.silk { display: inline-flex; align-items: center; gap: .5em; font-family: var(--mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--copper-2); margin-bottom: .75rem; }
.silk::before { content: ""; inline-size: 14px; block-size: 14px; border: 2px solid currentColor; border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--paper); background: currentColor; }
.on-board .silk { color: var(--copper); }
.on-board .silk::before { box-shadow: inset 0 0 0 3px var(--board); }

/* ---- header ---- */
.topbar { background: var(--ink); color: var(--solder); font-size: .8rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; padding-block: .35rem; }
.topbar a { color: var(--solder); }
.header { background: var(--board); color: #fff; position: sticky; top: 0; z-index: 30; border-bottom: 3px solid var(--copper); }
.header .container { display: flex; align-items: center; gap: 1.25rem; min-height: 64px; position: relative; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; font-size: 1.1rem; }
.brand:hover { color: #fff; }
.brand-mark { inline-size: 34px; block-size: 34px; border-radius: 7px; background: var(--copper); display: grid; place-items: center; color: var(--board);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.brand small { display: block; font-weight: 400; font-size: .7rem; color: var(--solder); letter-spacing: .02em; }
.nav { display: flex; gap: .25rem; margin-inline-start: auto; align-items: center; flex-wrap: wrap; }
.nav a, .nav button.linkish { color: #e9f1ee; padding: .5rem .7rem; border-radius: var(--radius); font-size: .92rem; display: inline-flex; gap: .4rem; align-items: center; }
.nav a:hover, .nav a.active, .nav button.linkish:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav .pill { background: var(--copper); color: var(--ink); border-radius: 999px; font-size: .7rem; font-weight: 700; padding: 0 .45rem; min-inline-size: 1.3rem; text-align: center; }
.nav-toggle { display: none; margin-inline-start: auto; background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: var(--radius); padding: .4rem .6rem; }
.lang-form button { font-family: var(--font); }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--board); flex-direction: column; align-items: stretch; padding: .5rem 16px 1rem; border-bottom: 3px solid var(--copper); }
  .nav.open { display: flex; }
}

/* ---- buttons & inputs ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 600; border-radius: var(--radius);
  padding: .62rem 1.05rem; border: 1px solid transparent; cursor: pointer; text-align: center; line-height: 1.2; transition: background .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-copper { background: var(--copper); color: var(--ink); }
.btn-copper:hover { background: #e8913a; color: var(--ink); }
.btn-board { background: var(--board); color: #fff; }
.btn-board:hover { background: var(--board-2); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--board-2); color: var(--board-2); }
.btn-danger { background: transparent; border-color: #efc2c4; color: var(--led-red); }
.btn-danger:hover { background: #fdf1f1; color: var(--led-red); }
.btn-sm { padding: .35rem .65rem; font-size: .85rem; }
.btn-block { inline-size: 100%; }
.on-board .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.on-board .btn-ghost:hover { border-color: var(--copper); color: var(--copper); }
button.linkish { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: inherit; }

.input, select.input, textarea.input { inline-size: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: .58rem .7rem; min-block-size: 42px; }
.input:focus { outline: 2px solid color-mix(in srgb, var(--copper) 55%, transparent); outline-offset: 1px; border-color: var(--copper); }
textarea.input { min-block-size: 0; resize: vertical; }
input[type="file"].input { padding: .45rem; }

/* ---- file drop zone (CSV, images, documents — every choose-file control) ---- */
.file-drop, .image-drop { position: relative; display: grid; gap: .65rem; inline-size: 100%; }
.file-drop-pad, .image-drop-pad {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 1rem; align-items: center;
  padding: 1rem 1.1rem; border: 2px dashed color-mix(in srgb, var(--copper) 45%, var(--line-strong));
  border-radius: var(--radius-lg); background:
    radial-gradient(120% 100% at 0% 0%, rgba(217, 130, 43, .12), transparent 55%),
    linear-gradient(180deg, #fffdf8, #f7f4ec);
  cursor: pointer; transition: border-color .15s, background .15s, transform .15s;
}
.file-drop-pad:hover, .file-drop-pad.is-drag, .image-drop-pad:hover, .image-drop-pad.is-drag {
  border-color: var(--copper); background: var(--copper-soft); transform: translateY(-1px);
}
.file-drop-pad:focus-visible, .file-drop.is-focused .file-drop-pad {
  outline: 2px solid color-mix(in srgb, var(--copper) 55%, transparent); outline-offset: 2px;
}
.file-drop-preview, .image-drop-preview {
  inline-size: 72px; block-size: 72px; border-radius: 14px; display: grid; place-items: center;
  background: var(--board); color: var(--copper); overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--board) 70%, #000); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.file-drop-preview img, .image-drop-preview img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.file-drop-glyph, .image-drop-glyph { display: grid; place-items: center; color: var(--copper); }
.file-drop-copy, .image-drop-copy { min-inline-size: 0; display: grid; gap: .15rem; }
.file-drop-copy b, .image-drop-copy b { font-size: .95rem; color: var(--text); }
.file-drop-copy small, .image-drop-copy small { color: var(--muted); font-size: .8rem; }
.file-drop-copy .file-names, .image-drop-copy .file-names {
  font-family: var(--mono); font-size: .74rem; color: var(--copper-2); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-drop-cta, .image-drop-cta { flex: none; }
/* Hide the native file control completely — open it from the custom pad/button instead. */
.file-drop > input[type="file"],
.image-drop > input[type="file"],
.file-drop-input, .image-drop-input {
  position: absolute !important; inset-inline-start: 0; inset-block-start: 0;
  inline-size: 1px !important; block-size: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important;
  border: 0 !important; opacity: 0 !important; pointer-events: none;
}
.file-drop-clear, .image-drop-clear { margin: 0; font-size: .88rem; }
@media (max-width: 640px) {
  .file-drop-pad, .image-drop-pad { grid-template-columns: 64px 1fr; }
  .file-drop-cta, .image-drop-cta { grid-column: 1 / -1; justify-self: start; }
}
[lang="ar"] .file-drop-copy .file-names, [lang="ar"] .image-drop-copy .file-names { font-family: var(--font); }
.grid-2 > .field:has(.file-drop), .grid-3 > .field:has(.file-drop) { grid-column: 1 / -1; }
.field { margin-bottom: 1rem; }
.field label, .label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.field .help { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.field .errorlist, .errorlist { list-style: none; padding: 0; margin: .3rem 0 0; color: var(--led-red); font-size: .83rem; }
.form-errors { background: #fdf1f1; border: 1px solid #f3c9cb; color: #8c2328; padding: .7rem .9rem; border-radius: var(--radius); margin-bottom: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.grid-2 > .field:has(.image-drop), .grid-3 > .field:has(.image-drop) { grid-column: 1 / -1; }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.check { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: .3rem; accent-color: var(--copper-2); }

/* radio "chip" groups (company type, priority, payment) */
.chips ul, ul.chips { list-style: none; padding: 0; margin: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.chips label { display: inline-flex; gap: .5rem; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; padding: .45rem .9rem;
  cursor: pointer; background: var(--surface); font-weight: 500; }
.chips input { accent-color: var(--copper-2); }
.chips label:has(input:checked) { border-color: var(--copper); background: var(--copper-soft); }

/* ---- cards: with copper "pads" in the corners ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.25rem; position: relative; }
.card.pads::before, .card.pads::after { content: ""; position: absolute; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--copper);
  box-shadow: 0 0 0 3px var(--copper-soft); inset-block-start: 12px; }
.card.pads::before { inset-inline-start: 12px; }
.card.pads::after { inset-inline-end: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* ---- LED status badges ---- */
.led { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; padding: .18rem .6rem .18rem .5rem; border-radius: 999px;
  background: #f1f4f3; color: #33433e; white-space: nowrap; }
.led::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--led-grey); box-shadow: 0 0 0 3px rgba(138,151,146,.18); }
.led-green::before { background: var(--led-green); box-shadow: 0 0 0 3px rgba(34,165,101,.2), 0 0 8px rgba(34,165,101,.6); }
.led-amber::before { background: var(--led-amber); box-shadow: 0 0 0 3px rgba(229,154,28,.2), 0 0 8px rgba(229,154,28,.6); }
.led-red::before { background: var(--led-red); box-shadow: 0 0 0 3px rgba(217,67,74,.2), 0 0 8px rgba(217,67,74,.5); }
.led-blue::before { background: var(--led-blue); box-shadow: 0 0 0 3px rgba(47,125,225,.2), 0 0 8px rgba(47,125,225,.5); }
/* map statuses to colours */
.led.s-approved::before, .led.s-active::before, .led.s-completed::before, .led.s-paid::before, .led.s-released::before,
.led.s-responded::before, .led.s-accepted::before, .led.s-quoted::before, .led.s-delivered::before { background: var(--led-green); box-shadow: 0 0 0 3px rgba(34,165,101,.2), 0 0 8px rgba(34,165,101,.6); }
.led.s-pending::before, .led.s-changes::before, .led.s-open::before, .led.s-invited::before, .led.s-placed::before,
.led.s-processing::before, .led.s-new::before, .led.s-submitted::before { background: var(--led-amber); box-shadow: 0 0 0 3px rgba(229,154,28,.2), 0 0 8px rgba(229,154,28,.6); }
.led.s-shipped::before, .led.s-ordered::before { background: var(--led-blue); box-shadow: 0 0 0 3px rgba(47,125,225,.2), 0 0 8px rgba(47,125,225,.5); }
.led.s-rejected::before, .led.s-suspended::before, .led.s-cancelled::before, .led.s-refunded::before, .led.s-declined::before,
.led.s-not_selected::before { background: var(--led-red); box-shadow: 0 0 0 3px rgba(217,67,74,.2), 0 0 8px rgba(217,67,74,.5); }

.tag { display: inline-block; font-family: var(--mono); font-size: .72rem; padding: .1rem .45rem; border-radius: 4px; background: var(--copper-soft); color: var(--copper-2); font-weight: 600; letter-spacing: .03em; }
.tag-board { background: #e3f1ec; color: var(--board-2); }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
table.table { inline-size: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: start; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600;
  background: #faf9f5; padding: .65rem .85rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fcfbf8; }
.table .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .input { min-block-size: 36px; padding: .35rem .5rem; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .icon { margin: 0 auto .5rem; color: var(--line-strong); }

/* ---- flash messages ---- */
.messages { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.messages li { padding: .7rem 1rem; border-radius: var(--radius); border: 1px solid; font-size: .93rem; display: flex; gap: .5rem; align-items: center; }
.messages .success { background: #edf8f2; border-color: #bfe5d0; color: #145c3a; }
.messages .error { background: #fdf1f1; border-color: #f3c9cb; color: #8c2328; }
.messages .warning { background: #fff7e8; border-color: #f2d9a6; color: #7a5208; }
.messages .info { background: #eef5fd; border-color: #c6dcf6; color: #1d4f8f; }

/* ---- hero ---- */
.hero { background: var(--board) var(--trace); color: #fff; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; block-size: 3px; background: repeating-linear-gradient(90deg, var(--copper) 0 18px, transparent 18px 26px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero-grid > * { min-inline-size: 0; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; max-inline-size: 16ch; }
.hero h1 em { font-style: normal; color: var(--copper); }
.hero p.lead { font-size: 1.12rem; color: #d7e6e0; max-inline-size: 52ch; }
.hero .stats { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.hero .stats b { display: block; font-family: var(--mono); font-size: 1.6rem; color: var(--copper); }
.hero .stats span { font-size: .85rem; color: var(--solder); }

/* the "chip" quote preview on the hero */
.quote-chip { background: #0b2b24; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 1.25rem; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.quote-chip::before, .quote-chip::after { content: ""; position: absolute; inset-block: 22px; inline-size: 8px;
  background: repeating-linear-gradient(180deg, var(--solder) 0 6px, transparent 6px 16px); opacity: .55; }
.quote-chip::before { inset-inline-start: -9px; }
.quote-chip::after { inset-inline-end: -9px; }
.quote-chip .tabs { display: flex; gap: .35rem; margin-bottom: 1rem; flex-wrap: wrap; }
.quote-chip .tabs span { font-size: .78rem; padding: .3rem .65rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: #cfe0da; }
.quote-chip .tabs span.on { background: var(--copper); border-color: var(--copper); color: var(--ink); font-weight: 700; }
.quote-chip .line { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed rgba(255,255,255,.12); font-size: .9rem; }
.quote-chip .line small { display: block; color: #9fbab1; }
.quote-chip .total { display: flex; justify-content: space-between; margin-top: .9rem; font-weight: 700; }
.quote-chip .total b { color: var(--copper); font-family: var(--mono); font-size: 1.25rem; }

/* ---- sections ---- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section.on-board { background: var(--board) var(--trace); color: #fff; }
.section.on-board h2 { color: #fff; }
.section-head { max-inline-size: 640px; margin-bottom: 2rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; inset-inline: 6%; top: 27px; block-size: 2px; background: linear-gradient(90deg, var(--copper), var(--board-3)); opacity: .5; }
.step { position: relative; text-align: center; padding: 0 .5rem; }
.step .via { inline-size: 54px; block-size: 54px; margin: 0 auto 1rem; border-radius: 50%; background: var(--surface); border: 3px solid var(--copper);
  display: grid; place-items: center; color: var(--board-2); position: relative; z-index: 1; }
.step h3 { font-size: 1rem; }
.step p { font-size: .9rem; color: var(--muted); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } }

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 860px) { .roles { grid-template-columns: 1fr; } }
.role-card { border-top: 4px solid var(--copper); }
.role-card .role-icon { inline-size: 44px; block-size: 44px; border-radius: 10px; background: var(--copper-soft); color: var(--copper-2); display: grid; place-items: center; margin-bottom: .8rem; }
.role-card ul { padding-inline-start: 1.1rem; margin: .5rem 0 1rem; color: var(--muted); font-size: .93rem; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.cat { display: flex; flex-direction: column; gap: .6rem; padding: 1rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color .15s, transform .15s; }
.cat:hover { border-color: var(--copper); transform: translateY(-2px); color: var(--text); }
.cat .ico { inline-size: 40px; block-size: 40px; border-radius: 8px; background: var(--board); color: var(--copper); display: grid; place-items: center; }
.cat small { color: var(--muted); }

.brand-strip { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; font-family: var(--mono); color: var(--muted); font-weight: 600; letter-spacing: .04em; }

/* ---- product grid ---- */
.layout-catalog { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .layout-catalog { grid-template-columns: 1fr; } }
.filter-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; }
.filter-list a { display: flex; justify-content: space-between; padding: .45rem .6rem; border-radius: var(--radius); color: var(--text); font-size: .93rem; }
.filter-list a:hover { background: #f1efe7; }
.filter-list a.on { background: var(--board); color: #fff; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.product { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product .thumb { aspect-ratio: 4 / 3; background: var(--board) var(--trace); display: grid; place-items: center; color: var(--copper); }
.product .thumb img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.product .body { padding: 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product h3 { font-size: .98rem; margin: 0; }
.product h3 a { color: var(--text); }
.product .meta { display: flex; justify-content: space-between; align-items: end; gap: .5rem; margin-top: auto; padding-top: .6rem; }
.price { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--board); }
.price small { font-family: var(--font); font-weight: 400; color: var(--muted); font-size: .75rem; display: block; }

/* ---- dashboard shell ---- */
.shell { display: grid; grid-template-columns: 250px 1fr; min-block-size: calc(100vh - 67px); }
@media (max-width: 960px) { .shell { grid-template-columns: 1fr; } .side { position: static !important; block-size: auto !important; } }
.side { background: var(--ink); color: var(--solder); padding: 1.25rem .85rem; position: sticky; top: 67px; block-size: calc(100vh - 67px); overflow-y: auto; }
.side .who { padding: .5rem .6rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: .75rem; }
.side .who b { color: #fff; display: block; }
.side h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin: 1rem .6rem .4rem; }
.side a { display: flex; gap: .65rem; align-items: center; padding: .52rem .6rem; border-radius: var(--radius); color: #c9d6d1; font-size: .92rem; }
.side a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side a.on { background: var(--board-2); color: #fff; box-shadow: inset 3px 0 0 var(--copper); }
[dir="rtl"] .side a.on { box-shadow: inset -3px 0 0 var(--copper); }
.main { padding: clamp(1rem, 3vw, 2rem); min-inline-size: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.kpi { padding: 1rem 1.1rem; }
.kpi span { font-size: .8rem; color: var(--muted); display: block; }
.kpi b { font-family: var(--mono); font-size: 1.45rem; color: var(--board); display: block; margin-top: .25rem; }
.kpi.copper { background: var(--board); border-color: var(--board); }
.kpi.copper span { color: var(--solder); }
.kpi.copper b { color: var(--copper); }

.bars { display: flex; gap: .6rem; align-items: flex-end; block-size: 160px; padding-top: .5rem; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .35rem; block-size: 100%; }
.bars .bar i { display: block; inline-size: 100%; max-inline-size: 46px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--copper), var(--copper-2)); min-block-size: 3px; }
.bars .bar small { font-size: .72rem; color: var(--muted); font-family: var(--mono); }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }

/* ---- order tracker: a trace with vias ---- */
.tracker { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; margin: 1rem 0 .5rem; }
.tracker::before { content: ""; position: absolute; top: 13px; inset-inline: 10%; block-size: 3px; background: var(--line-strong); }
.tracker .done-line { position: absolute; top: 13px; inset-inline-start: 10%; block-size: 3px; background: var(--copper); }
.tracker .node { text-align: center; position: relative; font-size: .8rem; color: var(--muted); }
.tracker .node i { display: block; inline-size: 28px; block-size: 28px; margin: 0 auto .4rem; border-radius: 50%; background: var(--surface); border: 3px solid var(--line-strong); position: relative; z-index: 1; }
.tracker .node.done i { border-color: var(--copper); background: var(--copper); box-shadow: 0 0 0 4px var(--copper-soft); }
.tracker .node.now i { border-color: var(--copper); background: var(--surface); box-shadow: 0 0 0 4px var(--copper-soft); }
.tracker .node.done, .tracker .node.now { color: var(--text); font-weight: 600; }

/* ---- scenario tabs (combined quote) ---- */
.scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1rem; }
@media (max-width: 700px) { .scenarios { grid-template-columns: 1fr; } }
.scenario { border: 2px solid var(--line); border-radius: var(--radius-lg); padding: .9rem 1rem; background: var(--surface); color: var(--text); cursor: pointer; text-align: start; font: inherit; }
.scenario b { display: block; font-family: var(--mono); font-size: 1.2rem; color: var(--board); }
.scenario small { color: var(--muted); }
.scenario.on { border-color: var(--copper); background: var(--copper-soft); }
.panel-hidden { display: none; }

.summary { display: grid; gap: .4rem; font-size: .95rem; }
.summary div { display: flex; justify-content: space-between; gap: 1rem; }
.summary .grand { border-top: 2px solid var(--text); padding-top: .6rem; margin-top: .3rem; font-weight: 700; font-size: 1.1rem; }
.summary .grand span:last-child { font-family: var(--mono); color: var(--board); }

/* ---- auth pages ---- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-block-size: calc(100vh - 67px); }
.auth-side { background: var(--board) var(--trace); color: #fff; padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; }
.auth-side h2 { color: #fff; }
.auth-side p { color: #d0e2dc; }
.auth-main { padding: clamp(2rem, 5vw, 4rem); display: flex; align-items: center; justify-content: center; }
.auth-main .card { inline-size: min(560px, 100%); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---- pricing ---- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.plan.popular { border: 2px solid var(--copper); }
.plan .amount { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--board); }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .45rem; font-size: .93rem; }
.plan li { display: flex; gap: .5rem; }
.plan li .icon { color: var(--led-green); margin-top: .2rem; }

details.faq { border-bottom: 1px solid var(--line); padding: .9rem 0; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::after { content: "+"; font-family: var(--mono); color: var(--copper-2); font-size: 1.2rem; }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: .6rem 0 0; color: var(--muted); }

/* ---- footer ---- */
.footer { background: var(--ink); color: var(--solder); padding: 3rem 0 1.5rem; font-size: .9rem; }
.footer a { color: var(--solder); }
.footer a:hover { color: var(--copper); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: #fff; font-size: .95rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2rem; padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #8a9a95; }

.wa-float { position: fixed; inset-inline-end: 18px; bottom: 18px; inline-size: 52px; block-size: 52px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 40; }
.wa-float:hover { color: #fff; transform: scale(1.05); }

.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 1.5rem; }
.pagination a, .pagination span { padding: .4rem .75rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); font-size: .9rem; }
.pagination .on { background: var(--board); color: #fff; border-color: var(--board); }




.inline-form { display: inline; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.doc-list a { display: inline-flex; gap: .4rem; align-items: center; }
.notice { background: var(--copper-soft); border: 1px solid #f1d3b1; border-radius: var(--radius); padding: .75rem 1rem; font-size: .92rem; }

/* Arabic letters must join, so no letter-spacing or monospace on Arabic labels */
[lang="ar"] .silk, [lang="ar"] .side h4, [lang="ar"] .table th, [lang="ar"] .tag { letter-spacing: 0; text-transform: none; font-family: var(--font); }
[lang="ar"] .silk.mono, [lang="ar"] .tag.mono { font-family: var(--mono); }
