/* Hikaya's web building blocks for the vendor website and Admin (Design chat, 5 Oct 2026).
   Needs packages/brand/tokens.css loaded first: every colour, size and motion here comes from it, so light mode,
   dark mode and Arabic all work by themselves. Works with any website framework: plain class names, no scripts
   (theme.js is optional, for a light/dark/automatic switch). See showcase.html for every block in use. */

/* ---------- page basics ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent; /* no grey flash on tap: every control has its own pressed look */
}
/* Feeling native on a phone (the vendor website's finding, 6 Oct 2026): taps answer at once (no double-tap wait), and
   holding a control doesn't select its words. */
:where(button, a, [role='button'], [role='tab'], label) {
  touch-action: manipulation;
}
:where(.hk-btn, .hk-sidebar__link, .hk-tabs > button, .hk-link, .hk-chip) {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
body {
  margin: 0;
  background: var(--hk-background);
  color: var(--hk-text);
  font-family: var(--hk-font);
  font-size: var(--hk-size-body);
  line-height: var(--hk-leading-body);
  -webkit-font-smoothing: antialiased;
}
/* Text marked with a language (lang="ar" inside an English page, lang="en" inside an Arabic one) uses that
   language's font, never the device's own. :where() keeps it weightless, so the logo name keeps its own fonts. */
:where([lang]) {
  font-family: var(--hk-font);
}
:where(h1, h2, h3, h4, p) {
  margin: 0;
}
:where(a) {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--hk-focus);
  outline-offset: 2px;
}
.hk-num {
  font-variant-numeric: tabular-nums;
}
.hk-muted {
  color: var(--hk-text-muted);
}
.hk-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- text ---------- */
.hk-display {
  font-size: var(--hk-size-display);
  line-height: var(--hk-leading-display);
  font-weight: var(--hk-weight-display);
  letter-spacing: var(--hk-tracking-display);
}
.hk-heading {
  font-size: var(--hk-size-heading);
  line-height: var(--hk-leading-heading);
  font-weight: var(--hk-weight-heading);
  letter-spacing: var(--hk-tracking-heading);
}
.hk-title {
  font-size: var(--hk-size-title);
  line-height: var(--hk-leading-title);
  font-weight: var(--hk-weight-title);
}
.hk-small {
  font-size: var(--hk-size-small);
  line-height: var(--hk-leading-small);
}
.hk-caption {
  font-size: var(--hk-size-caption);
  line-height: var(--hk-leading-caption);
  font-weight: var(--hk-weight-caption);
  color: var(--hk-text-muted);
}
.hk-eyebrow {
  font-size: var(--hk-size-small);
  font-weight: 700;
  color: var(--hk-accent-text);
}

/* ---------- buttons ---------- */
.hk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hk-space-2);
  min-height: 44px;
  padding: 0 var(--hk-space-5);
  border: 0;
  border-radius: var(--hk-radius-md);
  background: var(--hk-surface);
  color: var(--hk-text);
  font: inherit;
  font-size: var(--hk-size-body);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    transform var(--hk-duration-press) var(--hk-ease-out),
    background-color var(--hk-duration-quick) ease;
}
.hk-btn:active {
  transform: scale(var(--hk-press-scale));
}
.hk-btn:disabled,
.hk-btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.hk-btn--primary {
  background: var(--hk-primary);
  color: var(--hk-on-primary);
}
.hk-btn--accent {
  background: var(--hk-accent);
  color: var(--hk-on-accent);
}
.hk-btn--outline {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--hk-line-strong);
}
.hk-btn--ghost {
  background: transparent;
}
.hk-btn--danger {
  background: transparent;
  color: var(--hk-danger);
  box-shadow: inset 0 0 0 1px currentColor;
}
.hk-btn--sm {
  min-height: 36px;
  padding: 0 var(--hk-space-4);
  font-size: var(--hk-size-small);
  border-radius: var(--hk-radius-sm);
}
.hk-btn--lg {
  min-height: 52px;
  padding: 0 var(--hk-space-6);
  font-size: var(--hk-size-subtitle);
}
.hk-btn--block {
  width: 100%;
}
.hk-btn--icon {
  width: 44px;
  padding: 0;
  border-radius: var(--hk-radius-pill);
}
@media (hover: hover) and (pointer: fine) {
  .hk-btn--outline:hover,
  .hk-btn--ghost:hover {
    background: var(--hk-surface);
  }
}

/* ---------- forms ---------- */
.hk-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hk-label {
  font-size: var(--hk-size-small);
  font-weight: 700;
}
.hk-hint {
  font-size: var(--hk-size-small);
  color: var(--hk-text-muted);
}
.hk-error {
  font-size: var(--hk-size-small);
  font-weight: 700;
  color: var(--hk-danger);
}
.hk-input,
.hk-select,
.hk-textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--hk-radius-sm);
  background: var(--hk-surface);
  color: var(--hk-text);
  box-shadow: inset 0 0 0 1px var(--hk-line);
  font: inherit;
  font-size: var(--hk-size-body);
  transition: box-shadow var(--hk-duration-quick) ease;
}
.hk-textarea {
  min-height: 112px;
  resize: vertical;
  line-height: var(--hk-leading-body);
}
/* iPhones zoom into any field under 16 px and don't zoom back: fields are 16 px on touch screens. (Placed before the
   code boxes below, so their bigger size still wins.) */
@media (pointer: coarse) {
  .hk-input,
  .hk-select,
  .hk-textarea {
    font-size: 16px;
  }
}
.hk-input::placeholder,
.hk-textarea::placeholder {
  color: var(--hk-text-muted);
}
.hk-input:focus,
.hk-select:focus,
.hk-textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--hk-focus);
}
.hk-field[data-invalid='true'] :is(.hk-input, .hk-select, .hk-textarea) {
  box-shadow: inset 0 0 0 2px var(--hk-danger);
}
.hk-check {
  display: inline-flex;
  align-items: center;
  gap: var(--hk-space-2);
  min-height: 44px;
  cursor: pointer;
}
.hk-check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--hk-primary);
}

/* ---------- password with Show / Hide (a ghost button inside the box, at the reading side's end) ---------- */
.hk-password {
  position: relative;
}
.hk-password .hk-input {
  padding-inline-end: 84px;
}
.hk-password__toggle {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 4px;
  margin-block: auto;
  min-height: 36px;
  height: 36px;
}

/* ---------- one-time codes: the 6-digit box, and backup codes (add --backup) ---------- */
.hk-code {
  font-size: 22px;
  font-weight: var(--hk-weight-title);
  letter-spacing: 0.3em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  direction: ltr; /* digits are typed left to right in both languages */
}
.hk-code--backup {
  letter-spacing: 0.15em;
}
.hk-code::placeholder {
  letter-spacing: normal;
  font-weight: var(--hk-weight-body);
}

/* ---------- words in both languages: a field per language, side by side (one under the other on a phone) ----------
   <fieldset class="hk-words"><legend class="hk-label">…</legend><div class="hk-words__boxes">
   <label class="hk-words__box" lang="en" dir="ltr">English <input class="hk-input"></label>
   <label class="hk-words__box" lang="ar" dir="rtl">العربية <input class="hk-input"></label></div></fieldset> */
.hk-words {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.hk-words > legend {
  padding: 0;
  margin-bottom: 6px;
}
.hk-words__boxes {
  display: grid;
  gap: var(--hk-space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.hk-words__box {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-1);
  font-size: var(--hk-size-small);
  color: var(--hk-text-muted);
}
/* Arabic always reads from the right of its own box, even in an English page. */
.hk-words__box[lang='ar'],
:is(.hk-words__box, .hk-pair) [lang='ar'] {
  direction: rtl;
  text-align: start;
}

/* ---------- cards ---------- */
.hk-card {
  border-radius: var(--hk-radius-frame);
  background: var(--hk-surface);
  padding: var(--hk-space-5);
}
.hk-card--raised {
  background: var(--hk-surface-raised);
  box-shadow: var(--hk-shadow-card);
}
.hk-card--outline {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--hk-line);
}
.hk-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hk-space-3);
  margin-bottom: var(--hk-space-4);
}

/* ---------- big numbers (the Midnight style: heavy and tight) ---------- */
.hk-stat {
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-1);
  min-width: 0;
}
.hk-stat__label {
  font-size: var(--hk-size-small);
  font-weight: 700;
  color: var(--hk-accent-text);
}
.hk-stat__value {
  font-size: var(--hk-size-stat);
  line-height: var(--hk-leading-stat);
  font-weight: var(--hk-weight-stat);
  letter-spacing: var(--hk-tracking-stat);
  font-variant-numeric: tabular-nums;
}
.hk-stat__unit {
  font-size: var(--hk-size-subtitle);
  font-weight: 800;
  letter-spacing: 0;
}
.hk-stat__sub {
  font-size: var(--hk-size-small);
  color: var(--hk-text-muted);
}

/* ---------- progress: segments (a plan's parts) or a plain bar ---------- */
.hk-segments {
  display: flex;
  gap: 4px;
}
.hk-segments > span {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--hk-track);
}
.hk-segments > span[data-done] {
  background: var(--hk-accent);
}
.hk-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--hk-track);
  overflow: hidden;
}
.hk-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--hk-accent);
}

/* ---------- status labels ---------- */
.hk-chip {
  --hk-chip: var(--hk-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: var(--hk-radius-pill);
  background: color-mix(in srgb, var(--hk-chip) 14%, var(--hk-surface));
  color: var(--hk-chip);
  font-size: var(--hk-size-caption);
  font-weight: 700;
  white-space: nowrap;
}
.hk-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: currentColor;
}
.hk-chip--success {
  --hk-chip: var(--hk-success);
}
.hk-chip--warning {
  --hk-chip: var(--hk-warning);
}
.hk-chip--danger {
  --hk-chip: var(--hk-danger);
}
.hk-chip--info {
  --hk-chip: var(--hk-info);
}
.hk-chip--accent {
  --hk-chip: var(--hk-accent-text);
}

/* ---------- tables ---------- */
.hk-table-wrap {
  position: relative; /* keeps anything placed inside the table within the scrolling box on a phone */
  overflow-x: auto;
  border-radius: var(--hk-radius-lg);
  box-shadow: inset 0 0 0 1px var(--hk-line);
}
.hk-table {
  width: 100%;
  min-width: 640px; /* on a phone the table scrolls sideways instead of squeezing its columns */
  border-collapse: collapse;
  font-size: var(--hk-size-body);
}
.hk-table th {
  padding: 12px 16px;
  text-align: start;
  font-size: var(--hk-size-caption);
  font-weight: 700;
  color: var(--hk-text-muted);
  background: var(--hk-surface);
  white-space: nowrap;
}
.hk-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--hk-line);
  vertical-align: middle;
}
.hk-table tbody tr {
  transition: background-color var(--hk-duration-quick) ease;
}
@media (hover: hover) and (pointer: fine) {
  .hk-table tbody tr:hover {
    background: color-mix(in srgb, var(--hk-surface) 60%, transparent);
  }
}

/* ---------- segmented tabs ---------- */
.hk-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--hk-radius-pill);
  background: var(--hk-surface);
}
.hk-tabs > button {
  min-height: 36px;
  padding: 0 var(--hk-space-4);
  border: 0;
  border-radius: var(--hk-radius-pill);
  background: transparent;
  color: var(--hk-text-muted);
  font: inherit;
  font-size: var(--hk-size-small);
  font-weight: 700;
  cursor: pointer;
}
.hk-tabs > button[aria-selected='true'] {
  background: var(--hk-surface-raised);
  color: var(--hk-text);
  box-shadow: var(--hk-shadow-card);
}

/* ---------- Liquid Glass (top bar, floating bars) ---------- */
.hk-glass {
  background: var(--hk-glass-bg);
  -webkit-backdrop-filter: var(--hk-glass-filter);
  backdrop-filter: var(--hk-glass-filter);
  box-shadow: var(--hk-glass-highlight), var(--hk-glass-edge), var(--hk-shadow-float);
}

/* ---------- the website frame: side menu + content (the menu goes on top on a phone) ---------- */
.hk-shell {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
  min-height: 100dvh; /* follows the visible height as a phone's browser bar shows and hides */
}
.hk-sidebar {
  flex: 1 1 248px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-1);
  padding: var(--hk-space-5) var(--hk-space-4);
  background: var(--hk-surface);
}
.hk-sidebar__brand {
  display: flex;
  align-items: center;
  gap: var(--hk-space-3);
  padding: var(--hk-space-1) var(--hk-space-2) var(--hk-space-5);
}
.hk-sidebar__link {
  display: flex;
  align-items: center;
  gap: var(--hk-space-3);
  min-height: 44px;
  padding: 0 var(--hk-space-3);
  border-radius: var(--hk-radius-sm);
  color: var(--hk-text-muted);
  font-weight: 700;
  text-decoration: none;
}
.hk-sidebar__link[aria-current='page'] {
  background: var(--hk-surface-raised);
  color: var(--hk-text);
  box-shadow: var(--hk-shadow-card);
}
.hk-sidebar__link .hk-count {
  margin-inline-start: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: var(--hk-accent);
  color: var(--hk-on-accent);
  font-size: 12px;
  line-height: 22px;
  text-align: center;
}
@media (hover: hover) and (pointer: fine) {
  .hk-sidebar__link:hover {
    color: var(--hk-text);
  }
}
.hk-main {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.hk-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hk-space-3);
  min-height: 64px;
  padding: var(--hk-space-3) var(--hk-space-6);
}
.hk-content {
  width: 100%;
  max-width: 1200px;
  padding: var(--hk-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--hk-space-6);
}
.hk-grid {
  display: grid;
  gap: var(--hk-space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
@media (max-width: 760px) {
  .hk-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    padding: var(--hk-space-3);
  }
  .hk-sidebar__brand {
    flex-basis: 100%;
    padding-bottom: var(--hk-space-2);
  }
  .hk-topbar,
  .hk-content {
    padding-inline: var(--hk-space-4);
  }
}

/* ---------- pop-up window (use a <dialog class="hk-dialog">, opened with showModal()) ----------
   Parts: hk-dialog__head (title and a close button), hk-dialog__lead (one line under the title), hk-dialog__actions
   (the buttons, at the reading side's end). --wide for a window with a form or a table. */
.hk-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: var(--hk-space-6);
  border: 0;
  border-radius: var(--hk-radius-frame);
  background: var(--hk-surface-raised);
  color: var(--hk-text);
  box-shadow: var(--hk-shadow-float);
}
.hk-dialog::backdrop {
  background: var(--hk-overlay);
}
.hk-dialog[open] {
  animation: hk-pop var(--hk-duration-standard) var(--hk-ease-out);
}
.hk-dialog--wide {
  width: min(720px, calc(100vw - 32px));
}
.hk-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hk-space-3);
  margin-bottom: var(--hk-space-4);
}
.hk-dialog__head .hk-btn--icon {
  font-size: 24px;
}
.hk-dialog__lead {
  margin: 0 0 var(--hk-space-4);
}
.hk-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--hk-space-2);
  margin-top: var(--hk-space-5);
}

/* ---------- small message at the bottom ---------- */
.hk-toast {
  position: fixed;
  inset-inline: 0;
  bottom: var(--hk-space-6);
  margin: 0 auto;
  width: fit-content;
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: center;
  gap: var(--hk-space-3);
  padding: var(--hk-space-3) var(--hk-space-5);
  border-radius: var(--hk-radius-pill);
  color: var(--hk-text);
  font-weight: 700;
  animation: hk-rise var(--hk-duration-standard) var(--hk-ease-out);
}

/* ---------- several messages at the bottom: a shelf that stacks them (newest last) ----------
   <div class="hk-toasts" popover="manual" aria-live="polite"> with hk-toast hk-glass items inside. As a popover
   (call showPopover() again for each new message) it sits in the browser's top layer, so messages show above an
   open window instead of dimmed behind it (Admin's finding). Raise it above a floating bar with
   style="--hk-toasts-bottom: 88px". */
.hk-toasts {
  position: fixed;
  inset-inline: 0;
  bottom: var(--hk-toasts-bottom, var(--hk-space-6));
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hk-space-2);
  pointer-events: none;
}
.hk-toasts[popover] {
  /* none of the browser's own popover frame */
  inset: auto 0 var(--hk-toasts-bottom, var(--hk-space-6));
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  overflow: visible;
}
.hk-toasts[popover]:not(:popover-open) {
  display: none;
}
.hk-toasts > .hk-toast {
  position: static;
  margin: 0;
}
.hk-toast--danger {
  color: var(--hk-danger);
}

/* ---------- empty state ---------- */
.hk-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hk-space-2);
  padding: var(--hk-space-10) var(--hk-space-6);
  text-align: center;
  color: var(--hk-text-muted);
}
.hk-empty strong {
  color: var(--hk-text);
  font-size: var(--hk-size-title);
}

/* ---------- the same words in both languages, to read (Admin's review) ---------- */
.hk-pair {
  display: grid;
  gap: var(--hk-space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.hk-pair > * {
  padding: var(--hk-space-3);
  border-radius: var(--hk-radius-sm);
  background: var(--hk-surface-raised);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.hk-pair--long > * {
  max-height: 260px;
  overflow-y: auto;
}

/* ---------- a message above or below a form (role="alert" for problems, role="status" for the rest) ---------- */
.hk-notice {
  --tone: var(--hk-info);
  padding: var(--hk-space-3) var(--hk-space-4);
  border-radius: var(--hk-radius-sm);
  font-size: var(--hk-size-small);
  font-weight: var(--hk-weight-caption);
  /* a faint wash of its own colour, so it shows on any card (like the status labels) */
  background: color-mix(in srgb, var(--tone) 9%, var(--hk-surface-raised));
  box-shadow: inset 3px 0 0 var(--tone);
}
[dir='rtl'] .hk-notice {
  box-shadow: inset -3px 0 0 var(--tone);
}
.hk-notice--danger {
  --tone: var(--hk-danger);
}
.hk-notice--warning {
  --tone: var(--hk-warning);
}
.hk-notice--success {
  --tone: var(--hk-success);
}
.hk-notice--info {
  --tone: var(--hk-info);
}

/* ---------- a turning circle while something is working (in a busy button, or --lg on its own) ----------
   Give it words for screen readers: <span class="hk-spinner" aria-hidden="true"></span>
   <span class="hk-visually-hidden">Loading…</span> */
.hk-spinner {
  display: inline-block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  animation: hk-turn 700ms linear infinite;
}
.hk-spinner--lg {
  width: 28px;
  height: 28px;
  color: var(--hk-accent);
}
@keyframes hk-turn {
  to {
    transform: rotate(1turn);
  }
}

/* ---------- a checklist with round ticks (put data-done on the finished items) ---------- */
.hk-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0 var(--hk-space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.hk-checklist li {
  display: flex;
  align-items: center;
  gap: var(--hk-space-3);
  min-height: 44px;
  border-bottom: 1px solid var(--hk-line);
}
.hk-checklist li[data-done] {
  color: var(--hk-text-muted);
}
.hk-checklist__mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--hk-line-strong);
}
li[data-done] .hk-checklist__mark {
  background: var(--hk-accent);
  color: var(--hk-on-accent);
  box-shadow: none;
}

/* ---------- a button that looks like a link ("Send again", "Forgot password?") ---------- */
.hk-link {
  display: inline-flex;
  align-items: center;
  gap: var(--hk-space-1);
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--hk-size-small);
  font-weight: var(--hk-weight-label);
  color: var(--hk-accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.hk-link:disabled {
  color: var(--hk-text-muted);
  text-decoration: none;
  cursor: default;
}

/* ---------- a line with words in the middle ("or") ---------- */
.hk-divider {
  display: flex;
  align-items: center;
  gap: var(--hk-space-3);
  font-size: var(--hk-size-small);
  color: var(--hk-text-muted);
}
.hk-divider::before,
.hk-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hk-line);
}

/* ---------- the seal with the name (one language: HIKAYA on English pages, حكاية on Arabic ones) ----------
   <span class="hk-lockup"><img …seal…><span class="hk-lockup__words"><span class="hk-lockup__en">HIKAYA</span>
   <span class="hk-caption hk-muted">for vendors</span></span></span>  (Arabic: hk-lockup__ar with حكاية) */
.hk-lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--hk-space-3);
}
.hk-lockup__words {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.hk-lockup__en {
  font-family: var(--hk-font-logo-en);
  font-size: 22px;
  letter-spacing: 0.3em;
}
.hk-lockup__ar {
  font-family: var(--hk-font-logo-ar);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0;
}

/* ---------- motion ---------- */
@keyframes hk-pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}
@keyframes hk-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
  .hk-btn:active {
    transform: none;
  }
  .hk-spinner {
    animation-duration: 1.4s !important;
  }
}

/* ---------- the logo in light and dark mode: put both images in, the right one shows ---------- */
.hk-logo-dark {
  display: none;
}
:root[data-theme='dark'] .hk-logo-light {
  display: none;
}
:root[data-theme='dark'] .hk-logo-dark {
  display: inline-block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .hk-logo-light {
    display: none;
  }
  :root:not([data-theme='light']) .hk-logo-dark {
    display: inline-block;
  }
}
