/* ishtari — wholesale: the request page and the trader's welcome with his invoices (the invoice itself: invoice.css).
   Look of the preview: a dark intro block, red accents, yellow «minimum» tags. */
.ws-page { max-width: 1180px; margin: 0 auto; padding: 24px 28px 64px; }
@media (max-width: 640px) { .ws-page { padding: 16px 16px 48px; } }
.ws-lead { margin: 0 0 18px; color: var(--muted); max-width: 62ch; }
.ws-muted { color: var(--muted); font-size: 14.5px; }
.ws-card { background: var(--card); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--ring); }
.ws-notice { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: var(--red-t); color: var(--red); font-weight: 600; }
.ws-actions + .ws-notice, .ws-notice.ws-actions { background: var(--sun-t); color: #6B4E00; font-weight: 500; }

/* ---------- Request page ---------- */
.ws-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 28px; padding: 30px 30px 34px; isolation: isolate; }
.ws-hero::after { content: ""; position: absolute; z-index: -1; inset-inline-end: -30px; top: 20px; width: 220px; height: 120px; opacity: .1;
  background: linear-gradient(#fff 0 0) 0 0 / 100% 14px no-repeat, linear-gradient(#fff 0 0) 30px 40px / 75% 14px no-repeat, linear-gradient(#fff 0 0) 0 80px / 88% 14px no-repeat; }
.ws-hero .mark { width: 54px; color: var(--red); }
.ws-hero h1 { margin-top: 14px; font-size: clamp(26px, 4vw, 38px); font-weight: 800; line-height: 1.25; }
.ws-hero h1 em { font-style: normal; color: var(--sun); }
.ws-hero p { margin-top: 8px; opacity: .82; max-width: 60ch; }
.ws-steps { list-style: none; margin: -18px 18px 0; padding: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: relative; background: #fff; border-radius: 18px; box-shadow: var(--ring), 0 14px 28px -18px rgba(0, 0, 0, .35); text-align: center; font-size: 13px; }
.ws-steps b { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 4px; border-radius: 50%; background: var(--red-t); color: var(--red); font-family: 'Rubik', sans-serif; }
.ws-steps li.is-on b { background: var(--red); color: #fff; }
.ws-request { display: grid; grid-template-columns: minmax(0, 560px); justify-content: start; gap: 18px; }
.ws-form { display: grid; gap: 14px; margin-top: 18px; }
.ws-form .btn { margin-top: 4px; }
.field-hint { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.ws-privacy { display: flex; gap: 6px; align-items: flex-start; margin: 0; color: var(--muted); font-size: 13px; }
.ws-hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; inset-inline-start: -9999px; }
.ws-done { display: grid; justify-items: center; gap: 8px; text-align: center; max-width: 560px; padding: 32px 20px; }
.ws-done .icon { color: #fff; background: var(--wa); border-radius: 50%; padding: 12px; width: 64px; height: 64px; }
.ws-done h2 { font-size: 22px; font-weight: 800; }
.ws-done p { color: var(--muted); }

/* ---------- Approved trader: welcome, then his invoices ---------- */
.ws-home { display: grid; gap: 22px; max-width: 760px; }
.ws-welcome { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 28px; padding: 28px 28px 30px; isolation: isolate; }
.ws-welcome .mark { width: 54px; color: var(--red); }
.ws-welcome h1 { margin: 14px 0 6px; font-size: clamp(24px, 3.6vw, 34px); font-weight: 800; line-height: 1.25; }
.ws-welcome p { margin: 0; opacity: .85; max-width: 58ch; }
.ws-welcome .ws-discount { display: inline-block; margin-top: 14px; opacity: 1; background: var(--sun-t); color: #6A4D00; border-radius: 999px; padding: 4px 14px; font-weight: 600; font-size: 14px; }
.ws-welcome .btn { display: flex; width: max-content; max-width: 100%; margin-top: 18px; }
@media (max-width: 640px) { .ws-welcome { padding: 22px 20px 24px; border-radius: 22px; } .ws-welcome .btn { width: 100%; justify-content: center; } }

/* Phones: the request page. */
@media screen and (max-width: 600px) {
  .ws-steps { margin: -14px 8px 0; grid-template-columns: repeat(4, 1fr); font-size: 11.5px; padding: 10px 6px; }
  .ws-hero { padding: 22px 20px 30px; border-radius: 22px; }
}

/* «فواتيري»: the trader's orders, each opening its invoice. */
.ws-invoices h2 { font-size: 19px; font-weight: 800; margin-bottom: 12px; }
.ws-inv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ws-inv-list a { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); color: inherit; text-decoration: none; transition: background .2s; }
.ws-inv-list a:hover { background: var(--red-t); }
.ws-inv-no { font-family: 'Rubik', sans-serif; font-weight: 700; }
.ws-inv-date { color: var(--muted); font-size: 13.5px; }
.ws-inv-total { font-family: 'Rubik', sans-serif; font-weight: 800; color: var(--red); }
.ws-inv-status { justify-self: start; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; background: var(--sand); color: var(--ink-2); }
.ws-inv-status.is-new { background: var(--red-t); color: var(--red); }
.ws-inv-status.is-confirmed, .ws-inv-status.is-delivered { background: #E3F6EA; color: #17733A; }
.ws-inv-status.is-sent { background: var(--sun-t); color: #7A5A00; }
@media (max-width: 600px) {
  .ws-inv-list a { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .ws-inv-list a .icon { display: none; }
}

/* A device waiting for approval, or a paused account. */
.ws-state { display: grid; justify-items: center; gap: 10px; text-align: center; max-width: 560px; padding: 34px 22px; }
.ws-state-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--red-t); color: var(--red); }
.ws-state.is-frozen .ws-state-icon { background: #E6EEF8; color: #28507F; }
.ws-state h1 { font-size: 24px; font-weight: 800; }
.ws-state p { margin: 0; color: var(--muted); max-width: 46ch; }
.ws-state p.ws-state-code { color: inherit; font-weight: 600; }
.ws-state-code b { font-family: 'Rubik', sans-serif; font-size: 20px; letter-spacing: 3px; padding: 2px 10px; border-radius: 10px; background: var(--red-t); }
.ws-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
