/* Fonts are self-hosted (the security policy blocks external fonts). Tajawal: SIL OFL, free for commercial use. */
@font-face { font-family: 'Tajawal'; font-weight: 400; font-display: swap; src: url(/fonts/ar400.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E; }
@font-face { font-family: 'Tajawal'; font-weight: 700; font-display: swap; src: url(/fonts/ar700.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E; }
@font-face { font-family: 'Tajawal'; font-weight: 800; font-display: swap; src: url(/fonts/ar800.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E; }
@font-face { font-family: 'Tajawal'; font-weight: 400; font-display: swap; src: url(/fonts/lat400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: 'Tajawal'; font-weight: 700 800; font-display: swap; src: url(/fonts/lat700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

:root {
  --primary: #0F1F3D; --accent: #FF7A1A; --accent-text: #B24A00; --ink: #0F1F3D; --soft: #FFF3E6; --mist: #F3F5F9;
  --muted: #55627a; --line: #e6dccf; --bg: #ffffff; --ok: #1a7f4b; --bad: #b3261e; --warn: #9a6700;
  --radius: 22px; --shadow: 0 8px 28px rgba(15, 31, 61, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Tajawal', system-ui, 'Segoe UI', Tahoma, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 1rem; }
a { color: var(--primary); text-decoration-color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.3; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 18px; }

/* ---------- buttons ---------- */
.btn { display: inline-block; border: 1.5px solid var(--primary); background: var(--primary); color: #fff; padding: 10px 24px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--primary); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.btn.light { background: #fff; border-color: #fff; color: var(--primary); }
.btn.big { padding: 14px 30px; font-size: 1.1rem; }
.btn.small { padding: 5px 16px; font-size: .92rem; border-radius: 999px; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--primary); cursor: pointer; font: inherit; padding: 0; font-weight: 700; }

/* ---------- public header ---------- */
header.top { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px); }
header.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.25rem; }
.brand img { width: 42px; height: 42px; }
.spacer { flex: 1; }
nav.links { display: flex; gap: 22px; }
nav.links a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem; }
nav.links a:hover { color: var(--accent-text); }
header.top .wrap > * { white-space: nowrap; }
header.top .wrap { flex-wrap: nowrap; }
/* medium screens: tighter menu so everything stays on one line; small screens: the menu hides and the buttons may wrap */
@media (max-width: 1180px) { nav.links { gap: 14px; } nav.links a { font-size: .92rem; } header.top .wrap { gap: 10px; } }
/* Menu button for narrow screens: a plain details/summary, so it needs no script. */
details.menu { display: none; background: none; border: 0; border-radius: 0; padding: 0; margin: 0; }
details.menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 10px; border: 0; background: none; display: grid; place-items: center; padding: 0; }
details.menu summary::after, details[open].menu summary::after { content: none; }
details.menu summary::-webkit-details-marker { display: none; }
details.menu summary span, details.menu summary span::before, details.menu summary span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
details.menu summary span::before { position: absolute; top: -6px; }
details.menu summary span::after { position: absolute; top: 6px; }
.menupanel { position: absolute; top: 100%; inset-inline: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 14px; display: flex; flex-direction: column; box-shadow: 0 10px 20px rgba(15, 31, 61, .08); }
.menupanel a { padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line); }
.menupanel a.btn { color: #fff; border-bottom: 0; }
.menupanel a.btn.ghost { color: var(--ink); border: 2px solid var(--ink); }
.menupanel .mx { display: none; }
@media (max-width: 1240px) { nav.links { display: none; } details.menu { display: block; } }
/* phones: login, sign-up and language move into the menu, so the top bar is only the logo and the menu button */
@media (max-width: 560px) {
  header.top .wrap { gap: 8px; }
  header.top .hx:is(.ghost, .link) { display: none; }
  header.top .spacer { order: 1; }
  header.top .hx.btn:not(.ghost) { order: 2; }
  header.top .wrap > :not(.brand):not(.spacer):not(.menu) { order: 2; }
  details.menu { order: 3; }
  .menupanel a.mx.btn:not(.ghost) { display: none; }
  .menupanel .mx { display: flex; justify-content: center; margin-top: 10px; }
  .menupanel button.mx { background: none; border: 0; font: inherit; font-weight: 700; color: var(--ink); padding: 12px 4px; cursor: pointer; }
}

/* ---------- landing ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(255, 122, 26, .20), transparent 60%), linear-gradient(160deg, var(--soft), #fff 70%); padding: 56px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; gap: 32px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 0 0 14px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero p.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 26px; max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.hero img.art { width: 100%; max-width: 480px; justify-self: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero img.art { max-width: 340px; } }
.badge { display: inline-block; background: #fff; color: #b24a00; border: 1px solid #ffd2ab; border-radius: 99px; padding: 3px 14px; font-size: .88rem; font-weight: 700; margin-bottom: 14px; }

.stats { background: var(--primary); color: #fff; }
.stats .wrap { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); padding-block: 22px; text-align: center; }
.stats b { display: block; font-size: 1.15rem; }
.stats span { opacity: .88; font-size: .95rem; }

section.block { padding: 64px 0; }
section.block.alt { background: var(--soft); }
.head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.head h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; }
.head p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); }
.feature { box-shadow: var(--shadow); border: 0; }
.ico { width: 52px; height: 52px; border-radius: 18px; background: var(--soft); display: grid; place-items: center; margin-bottom: 12px; color: var(--accent); }
.ico svg { width: 26px; height: 26px; }
.alt .ico { background: #fff; }
.soon { display: inline-block; background: var(--soft); color: #b24a00; border-radius: 99px; padding: 0 10px; font-size: .78rem; font-weight: 700; margin-inline-start: 6px; vertical-align: middle; }

.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--primary); font-weight: 800; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); }

.compare { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.compare .card ul { margin: 10px 0 0; padding-inline-start: 20px; color: var(--muted); }
.compare .card li { margin-bottom: 6px; }
.compare .good { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.compare .good h3 { color: #b24a00; }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }

.who { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 8px 18px; font-weight: 700; }

details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 20px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--accent-text); }
/* a visible focus ring for keyboard users on every control */
:is(a, button, summary, [tabindex]):focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; border-radius: 6px; }
details[open] summary::after { content: '−'; }
details p { margin: 10px 0 0; color: var(--muted); }
.faq { max-width: 760px; margin-inline: auto; }

.cta { background: linear-gradient(135deg, var(--primary), #1b3566); color: #fff; text-align: center; padding: 56px 0; }
.cta h2 { margin: 0 0 8px; font-size: 2rem; }
.cta p { margin: 0 0 22px; opacity: .9; }
footer { background: #0a1630; color: #c3cbe0; padding: 32px 0; font-size: .95rem; }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer a { color: #fff; }

/* ---------- auth ---------- */
.authwrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 68px); }
.authside { background: linear-gradient(160deg, var(--primary), #1b3566); color: #fff; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.authside h1 { margin: 0 0 18px; font-size: 1.8rem; }
.authside ul { list-style: none; padding: 0; margin: 0; }
.authside li { margin-bottom: 14px; padding-inline-start: 30px; position: relative; }
.authside li::before { content: '✓'; position: absolute; inset-inline-start: 0; background: var(--accent); color: var(--primary); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; top: 3px; }
.authmain { padding: 40px 24px; display: flex; align-items: center; justify-content: center; }
.authmain .panel { width: 100%; max-width: 440px; }
@media (max-width: 800px) { .authwrap { grid-template-columns: 1fr; } .authside { display: none; } }

/* ---------- forms ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tab { background: none; border: 0; padding: 10px 18px; font: inherit; cursor: pointer; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 700; }
.tab.active { color: var(--primary); border-bottom-color: var(--accent); }
label { display: block; font-weight: 700; margin: 14px 0 5px; font-size: .95rem; }
input, select, textarea { width: 100%; padding: 11px 16px; border: 1.5px solid var(--line); border-radius: 14px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input.ltr, .ltr { direction: ltr; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.msg { padding: 11px 14px; border-radius: 10px; margin: 12px 0; }
.msg.err { background: #fdecea; color: var(--bad); }
.msg.ok { background: #e6f4ec; color: var(--ok); }
.msg.info { background: var(--soft); color: var(--ink); }
small.hint { color: var(--muted); font-weight: 400; }

/* ---------- portal shell ---------- */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
aside.side { background: var(--primary); color: #d7def0; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
aside.side .brand { color: #fff; padding: 6px 10px 16px; }
aside.side button.nav { display: flex; align-items: center; gap: 12px; background: none; border: 0; color: inherit; font: inherit; font-weight: 700; padding: 11px 12px; border-radius: 999px; cursor: pointer; text-align: start; width: 100%; }
aside.side button.nav:hover { background: rgba(255, 255, 255, .08); }
aside.side button.nav.active { background: var(--accent); color: var(--primary); }
aside.side button.nav svg { width: 20px; height: 20px; flex: none; }
aside.side .grow { flex: 1; }
aside.side nav { display: contents; }
.main { min-width: 0; background: var(--mist); }
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: sticky; top: 0; z-index: 4; }
.topbar h1 { margin: 0; font-size: 1.25rem; }
.chipbal { background: var(--soft); border-radius: 99px; padding: 5px 16px; font-weight: 800; color: var(--primary); border: 1px solid #ffd2ab; }
main.app { padding: 24px; width: 100%; max-width: 1180px; margin-inline: auto; }
.pagehelp { background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 12px 16px; color: var(--muted); margin-bottom: 18px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  aside.side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 8px; gap: 2px; }
  aside.side .brand { padding: 4px 8px; flex-basis: 100%; }
  aside.side .grow { display: none; }
  aside.side button.nav { width: auto; padding: 8px 12px; font-size: .92rem; }
  main.app { padding: 16px; }
}

.stepper { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.stp { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--soft); color: var(--muted); font-weight: 700; font-size: .92rem; }
.stp.done { background: #e6f4ec; color: var(--ok); }
.stp.now { background: var(--accent); color: var(--primary); }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.kpi span { color: var(--muted); font-size: .92rem; }
.kpi b { display: block; font-size: 1.7rem; font-weight: 800; }

.status { display: inline-block; padding: 2px 12px; border-radius: 99px; font-weight: 700; font-size: .85rem; background: var(--soft); }
.status.ACTIVE, .status.APPROVED, .status.CREATED, .status.DELIVERED { background: #e6f4ec; color: var(--ok); }
.status.REJECTED, .status.SUSPENDED, .status.FAILED, .status.CANCELLED { background: #fdecea; color: var(--bad); }
.status.PENDING_REVIEW, .status.PENDING, .status.CHARGED { background: #fff4d6; color: var(--warn); }
.status.MATCHED, .status.REFUNDED { background: #e6f4ec; color: var(--ok); }
.status.OWED { background: #fdecea; color: var(--bad); }
.status.WAIVED { background: #e9edf1; color: var(--muted); }
textarea { min-height: 120px; font-family: ui-monospace, Consolas, monospace; direction: ltr; }
.banner { background: #fdecea; color: var(--bad); border: 1px solid #f3c0bc; border-radius: 12px; padding: 12px 16px; font-weight: 700; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: start; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: middle; }
th { background: var(--soft); font-weight: 700; white-space: nowrap; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.big { font-size: 2.1rem; font-weight: 800; }
.mono { font-family: ui-monospace, Consolas, monospace; direction: ltr; unicode-bidi: plaintext; word-break: break-all; }
.doc { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.doc:last-of-type { border-bottom: 0; }
.doc .name { flex: 1; min-width: 160px; font-weight: 700; }
.tick { color: var(--ok); font-weight: 700; }
.todo { color: var(--muted); }
.stack > * + * { margin-top: 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hidden { display: none !important; }
.panel { max-width: 460px; margin: 40px auto; }
.methods { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.method { display: flex; align-items: center; gap: 12px; text-align: start; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 14px; font: inherit; color: inherit; cursor: pointer; }
.method svg { width: 28px; height: 28px; flex: none; color: var(--primary); }
.method .mtext { flex: 1; display: grid; gap: 2px; }
.method .mtext small { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.method .mbadge { background: var(--soft); color: var(--primary); border-radius: 99px; padding: 2px 10px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.method.on { border-color: var(--primary); background: var(--soft); }
.method.off { opacity: .55; cursor: not-allowed; }
html[dir="rtl"] .ltr { text-align: end; }
.tips { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tips .card { padding: 16px; }
.tips h3 { font-size: 1rem; }

/* ---------- public price calculator ---------- */
.calc-hero { padding: 40px 0 24px; }
.calc-wrap { display: block !important; max-width: 860px; }
.calc-wrap .head { margin-bottom: 20px; }
.calc-wrap h1 { margin: 0 0 8px; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.calc-wrap .head p { margin: 0; color: var(--muted); font-size: 1.1rem; }
.calc-card { box-shadow: var(--shadow); border: 0; }
.calc-card details { margin: 14px 0; }
.offers { display: grid; gap: 14px; margin-top: 16px; }
.offer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; box-shadow: var(--shadow); border: 0; }
.offer h3 { margin: 0 0 6px; font-size: 1.15rem; }
.offer-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.offer-how { margin: 0; color: var(--muted); font-size: .95rem; }
.offer-price { text-align: end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.offer-price b { font-size: 1.6rem; font-weight: 800; }
.offer-price .badge { margin: 0; }
.chipbtn { cursor: pointer; font: inherit; font-weight: 700; color: var(--primary); }
.chipbtn.on { background: var(--accent); border-color: var(--accent); }
.nobtn { background: transparent; border-color: transparent; color: var(--muted); }
p.note { color: var(--muted); margin-top: 18px; font-size: .95rem; }

/* ---------- required fields and the chargeable weight line ---------- */
input.bad, select.bad { border-color: var(--bad); background: #fdecea; outline: 2px solid var(--bad); outline-offset: 1px; }
.wline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.wline .chip { padding: 4px 14px; }
.wline .charge { background: var(--accent); border-color: var(--accent); font-weight: 800; }

/* number boxes: [-] unit value [+] */
.numfield label { display: block; font-weight: 700; margin: 14px 0 5px; font-size: .95rem; }
.numfield .req { color: var(--bad); }
.numbox { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; direction: ltr; }
.numbox:focus-within { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.numbox:has(input.bad) { border-color: var(--bad); background: #fdecea; outline: 2px solid var(--bad); outline-offset: 1px; }
.numbox input, .numbox input.bad { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; text-align: center; padding: 10px 4px; border-radius: 0; font-weight: 700; }
.numbox .unit { align-self: center; color: var(--muted); font-size: .9rem; padding-inline: 8px 0; }
.nbtn { border: 0; background: var(--soft); color: var(--primary); width: 42px; font-size: 1.3rem; font-weight: 800; cursor: pointer; }
.nbtn:hover { background: var(--accent); }
h4.sec { margin: 18px 0 2px; color: var(--muted); font-size: .95rem; font-weight: 700; }
.numbox input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.numbox input::-webkit-outer-spin-button, .numbox input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* several boxes in one shipment */
.boxrow { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 10px; margin-bottom: 12px; background: #fffdfa; }
.boxhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wline.total { border-top: 1px dashed var(--line); padding-top: 10px; }

/* quick top-up amounts */
.amounts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.pill { border: 1.5px solid var(--line); background: #fff; color: var(--primary); border-radius: 999px; padding: 8px 20px; font: inherit; font-weight: 700; cursor: pointer; }
.pill:hover { border-color: var(--accent); }
.pill.on { background: var(--accent); border-color: var(--accent); }

/* top-up breakdown: amount, VAT, total */
.breakdown { display: grid; gap: 4px; background: var(--soft); border-radius: 14px; padding: 12px 16px; margin: 8px 0 12px; }
.breakdown:empty { display: none; }
.breakdown > div { display: flex; justify-content: space-between; gap: 12px; }
.breakdown .total { border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 2px; font-size: 1.05rem; }

/* ---------- staff screen (/admin): calm, large touch targets, one main button per card ---------- */
body.admin { background: var(--mist); }
body.admin main.wrap { padding-block: 18px 90px; }
.admin .btn { min-height: 44px; }
.admin .btn.small { min-height: 38px; padding: 6px 16px; }
.admin .btn.big { min-height: 50px; }
.admin :is(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.admin input, .admin select { min-height: 46px; }
.admin textarea { min-height: 130px; }
.danger-text { color: var(--bad) !important; border-color: var(--bad) !important; }
.btn.ghost.danger-text:hover { background: #fdecea; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.ltr-inline { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* tabs: one scrollable row on phones */
.admintabs { gap: 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 6px; margin-bottom: 18px; }
.admintabs .tab { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border-radius: 999px; border-bottom: 0; padding: 10px 16px; min-height: 44px; color: var(--muted); }
.admintabs .tab svg { width: 19px; height: 19px; flex: none; }
.admintabs .tab:hover { background: var(--soft); color: var(--primary); }
.admintabs .tab.active { background: var(--primary); color: #fff; }
.admintabs .count { background: var(--accent); color: var(--primary); border-radius: 99px; min-width: 24px; height: 24px; padding: 0 7px; display: inline-grid; place-items: center; font-size: .8rem; font-weight: 800; }

.pagehead h2 { margin: 0 0 6px; font-size: 1.5rem; outline: none; }
.pagehead .pagehelp { margin: 0; background: #fff; border-style: solid; color: var(--ink); }
.admin section.card > h3 { margin: 0; font-size: 1.15rem; }
.admin .msg { display: flex; gap: 10px; align-items: flex-start; }
.admin .msg > svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.admin .msg.err, .admin .msg.ok, .admin .msg.info { display: block; }
.msg.warn { background: #fff4d6; color: #6b4a00; border: 1px solid #f5d98b; }
.admin .msg.big-msg { font-size: 1.1rem; font-weight: 700; padding: 14px 18px; border-radius: 16px; display: flex; }
.empty { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px dashed var(--line); border-radius: 16px; padding: 18px; color: var(--muted); font-weight: 700; }
.empty svg { width: 24px; height: 24px; color: var(--ok); flex: none; }
.backlink { min-height: 44px; }

/* Today cards */
.tgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.tcard h3 { margin: 0; font-size: 1.05rem; }
.tcard p { margin: 0; color: var(--muted); }
.tcard .btn { margin-top: auto; align-self: flex-start; }
.tcard-top { display: flex; align-items: center; justify-content: space-between; }
.tcard .ico { margin: 0; width: 46px; height: 46px; border-radius: 16px; }
.tcount { font-size: 2rem; font-weight: 800; line-height: 1; }
.tcard.urgent { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.tcard.urgent .tcount { color: #b24a00; }
.tcard.info { border-color: #f5d98b; }
.tcard.clear { background: #fbfcfd; }
.tcard.clear .tcount { color: var(--muted); }
.tcard.clear .ico { color: var(--ok); background: #e6f4ec; }
.tcard p.tcard-extra { font-weight: 700; color: var(--ink); }
.tick { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
.tick svg { width: 20px; height: 20px; }
.kpi small { display: block; color: var(--muted); margin-top: 4px; }
.kpis.small .kpi { padding: 12px 16px; }
.kpis.small .kpi b { font-size: 1.3rem; }

/* filters and search */
.toolbar input[type=search] { max-width: 520px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { min-height: 42px; padding: 6px 16px; display: inline-flex; align-items: center; gap: 8px; }
.chipn { background: var(--mist); border-radius: 99px; padding: 0 8px; font-size: .85rem; }
.chip.on .chipn { background: rgba(255, 255, 255, .55); }

/* tables: stacked cards on phones */
.admin tfoot td { background: var(--soft); border-bottom: 0; }
@media (max-width: 720px) {
  table.stacked thead { display: none; }
  table.stacked, table.stacked tbody, table.stacked tfoot, table.stacked tr, table.stacked td { display: block; width: 100%; }
  table.stacked tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.stacked td { border: 0; padding: 6px 14px; display: flex; gap: 12px; justify-content: space-between; align-items: center; text-align: end; }
  table.stacked td[data-label]::before { content: attr(data-label); font-weight: 700; color: var(--muted); text-align: start; flex: none; max-width: 45%; }
  table.stacked td:not([data-label]) { justify-content: flex-start; }
  .admin .tablewrap { overflow-x: visible; }
}

/* merchant review */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 14px; font-weight: 700; }
.checklist svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.checklist .ok { background: #e6f4ec; color: var(--ok); }
.checklist .bad { background: #fdecea; color: var(--bad); }
.checklist .neutral { background: var(--mist); color: var(--ink); font-weight: 400; }
dl.facts { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: 6px 16px; margin: 0; }
dl.facts dt { color: var(--muted); font-weight: 700; }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { dl.facts { grid-template-columns: 1fr; gap: 0; } dl.facts dd { margin-bottom: 8px; } }
.editbox { margin: 0; }
.admin .dangerzone { border-color: #f3c0bc; }
ol.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ol.timeline li { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 12px; padding: 8px 12px; border-inline-start: 3px solid var(--accent); background: #fffdfa; border-radius: 8px; }
ol.timeline time { color: var(--muted); font-size: .92rem; }
@media (max-width: 560px) { ol.timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* transfers and bookings as cards */
.itemgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.admin .itemcard { background: #fffdfa; }
.itemhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.itemhead h4 { margin: 0; font-size: 1.1rem; }
.lookfor { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; background: var(--soft); border-radius: 14px; padding: 10px 14px; }
.lookfor b { font-size: 1.5rem; }

/* rate card editor */
.admin .editor { border: 2px solid var(--accent); }
table.grid td { padding: 6px 8px; }
.gridin { min-width: 90px; text-align: center; }
.checkrow { display: flex; align-items: center; gap: 10px; }
.checkrow label { margin: 0; }
.admin input.check { width: 24px; height: 24px; min-height: 0; accent-color: var(--primary); }
.preview { background: var(--soft); border-radius: 16px; padding: 14px 16px; }
.preview h4 { margin: 0 0 4px; }
.preview .kpi { background: #fff; }
ul.plainlist { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }

/* settings at a glance */
.settings { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.setting { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.setting h4 { margin: 0; color: var(--muted); font-size: .95rem; }
.setting .setval { font-size: 1.25rem; }
.setting p { margin: 0; }
.setting .where { display: flex; gap: 6px; color: var(--muted); font-size: .9rem; margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--line); }
.setting .where svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.setting.warn { border: 2px solid #f5d98b; background: #fffbef; }

/* confirmation box and messages */
dialog.confirm { border: 0; border-radius: 22px; padding: 22px; width: min(520px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(15, 31, 61, .3); color: var(--ink); }
dialog.confirm::backdrop { background: rgba(15, 31, 61, .45); }
dialog.confirm h3 { margin: 0; font-size: 1.2rem; }
dialog.confirm p { margin: 0; }
dialog.confirm.danger { border-top: 6px solid var(--bad); }
.actions.end { justify-content: flex-end; }
.toast { position: fixed; inset-inline: 16px; bottom: 16px; display: flex; justify-content: center; z-index: 50; pointer-events: none; }
.toastmsg { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 640px; padding: 10px 12px 10px 18px; border-radius: 16px; box-shadow: var(--shadow); font-weight: 700; background: #fff; border: 2px solid var(--ok); color: var(--ok); }
.toastmsg.err { border-color: var(--bad); color: var(--bad); }
.toastmsg svg { width: 22px; height: 22px; flex: none; }
.toastx { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: inherit; min-width: 40px; min-height: 40px; }

/* staff status words */
.status.PENDING_DOCS, .status.PAY_PENDING, .status.ALREADY, .status.OFF { background: #e9edf1; color: var(--muted); }
.status.INCOMPLETE, .status.SAMPLE { background: #fff4d6; color: var(--warn); }
.status.MISSING, .status.PAY_FAILED, .status.ERROR { background: #fdecea; color: var(--bad); }
.status.PAY_PAID, .status.REAL { background: #e6f4ec; color: var(--ok); }
@media (max-width: 560px) {
  body.admin main.wrap { padding-inline: 16px; }
  .pagehead h2 { font-size: 1.3rem; }
  .itemgrid, .tgrid, .settings { grid-template-columns: 1fr; }
  .admin .actions .btn { flex: 1 1 auto; }
}

/* ---- blog (pages built by src/blog.ts) ---- */
.blogpage { background: var(--soft, #FFF3E6); }
.blog-wrap { max-width: 760px; margin: 0 auto; padding: 32px 16px 56px; }
.blog-wrap h1 { font-size: 1.9rem; line-height: 1.4; margin: 0 0 8px; }
.blog-lead { color: #5b6477; margin: 0 0 24px; }
.blog-list { display: grid; gap: 16px; }
.blog-card, .blog-article { background: #fff; border-radius: 20px; padding: 22px; box-shadow: 0 1px 4px rgba(15, 31, 61, .08); }
.blog-card h2 { font-size: 1.25rem; margin: 0 0 6px; }
.blog-card h2 a { color: inherit; text-decoration: none; }
.blog-meta { color: #7a8396; font-size: .9rem; margin: 0 0 10px; }
.blog-article h1 { font-size: 1.7rem; }
.blog-article h2 { font-size: 1.2rem; margin: 26px 0 6px; }
.blog-article p { line-height: 1.95; margin: 0 0 12px; }
.blog-cta { margin-top: 30px; padding: 18px; border-radius: 16px; background: #FFF3E6; text-align: center; }
.blog-cta h2 { margin: 0 0 12px; }

/* receiver phone with the fixed +966 country code */
.phonebox { display: flex; align-items: stretch; direction: ltr; }
.phonebox .phonecode { display: flex; align-items: center; padding: 0 12px; background: #f1f3f8; border: 1px solid var(--line, #d9dde7); border-inline-end: 0; border-radius: 12px 0 0 12px; font-weight: 500; }
.phonebox input { border-radius: 0 12px 12px 0; flex: 1; min-width: 0; }

.qrbox { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); width: fit-content; }

/* Pages written by scripts/build-static-site.ts (the same pages as the Odoo website) */
html[lang="en"] .ar { display: none; }
html:not([lang="en"]) .en { display: none; }
.mfoot { background: var(--primary); color: #fff; padding: 28px 0 14px; font-size: .93rem; }
.mfoot .wrap { display: block; } /* the plain `footer .wrap` rule above makes a row: here the columns need the full width */
.mfoot a, .mfoot span { color: #dfe6f3; }
.mfoot a { text-decoration: none; }
.mfoot a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); }
.mfoot .ftop { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 56px; margin-bottom: 18px; }
.mfoot .fcols { display: flex; flex-wrap: wrap; gap: 20px 56px; }
.mfoot .fcols div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mfoot .fcols b { color: #fff; margin-bottom: 2px; }
.mfoot .fid { display: flex; flex-direction: column; gap: 5px; max-width: 340px; }
.mfoot .fid b { color: #fff; }
.mfoot .fbrand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 4px; }
.mfoot .fbrand span { color: #fff; }
.mfoot .fbrand img { width: 36px; height: 36px; border-radius: 9px; }
.mfoot .fbottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 12px; font-size: .85rem; }
.mfoot .socials { display: inline-flex; gap: 10px; }
.mfoot .soc { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; color: #fff; }
.mfoot a.soc:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) { .mfoot .ftop, .mfoot .fcols { gap: 18px 36px; } }
.pagehero { background: var(--soft); padding: 44px 0 30px; text-align: center; }
.pagehero h1 { margin: 0 0 8px; font-size: 2.1rem; }
.pagehero p { margin: 0 auto; max-width: 720px; color: var(--muted); }
.legal { max-width: 820px; margin-inline: auto; line-height: 1.9; }
.legal h2 { font-size: 1.25rem; margin: 26px 0 6px; }
.legal p, .legal li { color: #33415c; }
.legal .draft { background: #fff3e0; border: 1px solid #ffd7a8; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-weight: 700; }
.price-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 26px; }
.price-hero .card { text-align: center; }
.price-hero .num { font-size: 2.4rem; font-weight: 800; color: var(--primary); direction: ltr; display: block; }
.price-hero .lbl { color: var(--muted); }
.ptable td.n, .ptable th.n { text-align: end; direction: ltr; white-space: nowrap; }
.callout { background: var(--soft); border-radius: 14px; padding: 16px 20px; margin: 18px 0; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-bottom: 26px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .card h3 { margin-top: 0; }
.codeblock { text-align: left; overflow-x: auto; background: var(--soft); padding: 14px; border-radius: 12px; font-size: .88rem; line-height: 1.6; }

.guide ol { padding-inline-start: 20px; display: grid; gap: 10px; margin: 0; }
.guide li { line-height: 1.7; }

/* Sign-up: a wide panel with two columns, so the page is not very tall */
@media (min-width: 801px) { .authwrap.signup { grid-template-columns: minmax(250px, .5fr) 1.7fr; } }
@media (max-width: 800px) { .authmain { padding: 18px 12px; } .authmain .panel { margin: 0 auto; } }
.authmain .panel.wide { max-width: 860px; }
.authmain .panel.wide .row { grid-template-columns: repeat(2, 1fr); }
.authmain .panel.wide .stack { gap: 12px; }
@media (max-width: 700px) { .authmain .panel.wide .row { grid-template-columns: 1fr; } }

/* ---------- Fluid type: one scale that suits a phone, a laptop and a large screen ---------- */
html { font-size: clamp(15px, .35vw + 13.5px, 17px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
input, select, textarea { font-size: max(16px, 1rem); }
h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
.hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
.cta h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.authside h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); }
.pagehero h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.3rem); }
.pagehead h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.5rem); }
.price-hero .num, .tcount { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); }
.kpi b { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.7rem); }
.big { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
.btn.big { font-size: clamp(1rem, .95rem + .3vw, 1.1rem); }

/* sign-in and sign-up forms: even spacing, full-width main button */
.authmain form { display: flex; flex-direction: column; gap: 6px; }
.authmain form label { margin-top: 10px; }
.authmain form > .row { margin-top: 0; }
.authmain form > .btn { margin-top: 18px; width: 100%; padding: 13px 24px; font-size: 1.05rem; }
.authmain #lMsg:empty, .authmain #sMsg:empty { display: none; }

/* password recovery */
.authmain .forgot, .authmain .back { align-self: flex-start; padding: 4px 0; font-size: .95rem; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.authmain form > h3 { margin: 0 0 4px; }

@media (max-width: 560px) { .stats .wrap { grid-template-columns: 1fr 1fr; } }
.dims-box h3 { margin-top: 16px; }

.footlinks { display: flex; flex-wrap: wrap; gap: 8px 18px; flex-basis: 100%; }
.footlinks a { color: #c3cbe0; text-decoration: none; font-weight: 700; }
.footlinks a:hover { color: #fff; }

/* ---------- welcome pop-up (first visit to the merchant portal) ---------- */
dialog.welcome { border: 0; border-radius: 22px; padding: 0 28px 28px; width: min(480px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(15, 31, 61, .3); color: var(--ink); text-align: center; overflow: hidden; }
dialog.welcome::backdrop { background: rgba(15, 31, 61, .5); }
dialog.welcome .confetti { height: 96px; margin-inline: -28px; background:
  radial-gradient(circle at 12% 30%, var(--accent) 0 4px, transparent 5px), radial-gradient(circle at 28% 70%, #2f6fed 0 3px, transparent 4px),
  radial-gradient(circle at 44% 25%, #e83e8c 0 3px, transparent 4px), radial-gradient(circle at 60% 65%, var(--primary) 0 4px, transparent 5px),
  radial-gradient(circle at 76% 28%, #f2b705 0 4px, transparent 5px), radial-gradient(circle at 90% 62%, #1a7f4b 0 3px, transparent 4px); }
dialog.welcome .avatar { width: 88px; height: 88px; border-radius: 50%; background: var(--soft); color: var(--primary); font-size: 2.2rem; font-weight: 800; display: grid; place-items: center; margin: -24px auto 16px; }
dialog.welcome h3 { margin: 0; font-size: 1.4rem; }
dialog.welcome .bar { border: 0; height: 4px; width: 56px; background: var(--accent); margin: 16px auto; border-radius: 2px; }
dialog.welcome p { margin: 0 0 20px; color: var(--muted); }
dialog.welcome .actions { display: grid; gap: 12px; justify-items: center; }
dialog.welcome .linkbtn { background: none; border: 0; color: var(--primary); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------- guided tour bubbles ---------- */
.tour { position: fixed; z-index: 70; width: min(320px, calc(100vw - 24px)); background: #fff; color: var(--ink); border-radius: 18px; padding: 16px 18px; box-shadow: 0 16px 48px rgba(15, 31, 61, .35); border-top: 5px solid var(--accent); }
.tour small { color: var(--muted); font-weight: 700; }
.tour h4 { margin: 4px 0 6px; font-size: 1.05rem; }
.tour p { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }
.tour .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tour .linkbtn { background: none; border: 0; color: var(--primary); text-decoration: underline; cursor: pointer; font: inherit; margin-inline-start: auto; }
.tour-target { outline: 3px solid var(--accent); outline-offset: 2px; }

/* the tick on the terms and privacy notice at signup */
label.check { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; margin: 14px 0; font-weight: 500; }
label.check input { width: auto; margin-top: 4px; }
label.check a { color: inherit; text-decoration: underline; }

/* ---------- page loader: ring with a percentage (see loaderShow in common.js) ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(255, 243, 230, .82); backdrop-filter: blur(2px); }
.loader-ring { --p: 0; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); }
.loader-hole { width: 76px; height: 76px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }
.loader-num { font-weight: 800; color: var(--primary); font-size: 1.05rem; font-variant-numeric: tabular-nums; }

/* password strength bar (see passwordMeter in common.js) */
.pwmeter { display: grid; gap: 6px; margin-top: 8px; }
.pwmeter .bars { display: flex; gap: 4px; }
.pwmeter .bars span { flex: 1; height: 6px; border-radius: 99px; background: #e3e0da; }
.pwmeter.weak .bars span:nth-child(1) { background: #d92d20; }
.pwmeter.medium .bars span:nth-child(-n+2) { background: #f79009; }
.pwmeter.strong .bars span { background: #12b76a; }
.pwmeter .lvl { font-weight: 700; }
.pwmeter.weak .lvl { color: #b42318; }
.pwmeter.medium .lvl { color: #b54708; }
.pwmeter.strong .lvl { color: #027a48; }
.pwmeter ul { margin: 0; padding-inline-start: 20px; font-size: .92em; }
.pwmeter p:empty, .pwmeter ul:empty { display: none; }

/* English visitors: the page waits (hidden) until the English words are in place, so Arabic never flashes first. See public/lang.js. */
html.i18n-wait body { visibility: hidden; }

/* contact form: a field only robots fill (hidden from people and screen readers) */
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; } /* never off-screen by a big offset: that makes the page scroll sideways in Arabic */
#contactForm textarea { width: 100%; box-sizing: border-box; }
.inqtext { white-space: pre-wrap; }
.soctitle { margin: 22px 0 10px; font-size: 1rem; }
.cardsocials { display: flex; gap: 10px; }
.cardsocials .soc { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--primary); }
.cardsocials a.soc:hover { border-color: var(--accent); color: var(--accent); }

/* Contact page: form on one side, "Get in touch" boxes on the other */
.crumbs { margin: 0 0 18px; color: var(--muted, #5b6577); font-size: .95rem; }
.crumbs a { color: var(--primary); }
.contact2 { grid-template-columns: 1.5fr 1fr; align-items: start; }
@media (max-width: 720px) { .contact2 { grid-template-columns: 1fr; } }
.gettouch { margin: 0 0 12px; font-size: 1.4rem; }
.infocard { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px; }
.infocard svg { color: var(--accent); }
.infocard a.ltr { direction: ltr; unicode-bidi: plaintext; }

/* the profile icon next to the balance (merchant portal) */
.profwrap { position: relative; }
.profbtn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent); background: var(--primary); color: #fff; font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.profbtn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.profmenu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(15, 31, 61, .16); padding: 8px; z-index: 20; display: flex; flex-direction: column; gap: 2px; }
.profmenu.hidden { display: none; }
.profhead { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; align-items: flex-start; }
.profitem { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-radius: 10px; padding: 10px 12px; font: inherit; font-weight: 700; color: var(--primary); cursor: pointer; text-align: start; }
.profitem:hover { background: var(--soft); }
.profitem svg { width: 20px; height: 20px; flex: none; }

/* Staff screen: the menu is a side bar on a computer, grouped by the work it belongs to; on a phone it stays one scrollable row */
.tabgroup { display: none; }
@media (min-width: 901px) {
  body.admin main.wrap { max-width: 1320px; }
  #console:not(.hidden) { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
  .admintabs { flex-direction: column; flex-wrap: nowrap; overflow: visible; position: sticky; top: 16px; margin-bottom: 0; padding: 10px; border-radius: 20px; gap: 2px; max-height: calc(100vh - 32px); overflow-y: auto; }
  .admintabs .tab { border-radius: 14px; width: 100%; justify-content: flex-start; text-align: start; }
  .admintabs .count { margin-inline-start: auto; }
  .tabgroup { display: block; font-size: .78rem; font-weight: 800; color: var(--muted); padding: 14px 14px 4px; }
}
