/* Payunit merchant console — built by payunit-app/tools/build-console-css.php from resources/console-css. Do not edit. */

/* ---- 00-tokens.css ---- */
/* ==========================================================================
   Payunit design system — tokens.css
   Foundations only: fonts, colour, type, spacing, radii,
   sizes, motion, breakpoints, content widths, 12-column grid.
   Source of colour truth: payunit-mobile-app/lib/app/theme.dart.
   ========================================================================== */

/* ---- Fonts --------------------------------------------------------------
   IBM Plex Sans Arabic covers Arabic only (unicode-range); Latin letters and
   digits fall to the platform UI font (SF / Segoe / Roboto; Inter on Linux).
   Paths are relative to assets/console.css (the merged file). */
@font-face{font-family:"PU Arabic";font-weight:400;font-display:swap;
  src:url("fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"PU Arabic";font-weight:600;font-display:swap;
  src:url("fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
  unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"PU Arabic";font-weight:700;font-display:swap;
  src:url("fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
  unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}

/* ---- Light theme (default) ------------------------------------------- */
:root{
  color-scheme:light;

  /* surfaces */
  --bg:#E3E6EB;            /* page */
  --card:#FFFFFF;          /* cards, rail, list boxes, fields */
  --edge:#D5D9E0;          /* 1px card edge — cards never get shadows */
  --field-edge:#D3D7DE;    /* 1px field edge */
  --field-bg:#FFFFFF;
  --divider:#E0E3E8;       /* inset dividers inside cards */
  --tile:#E8EBEF;          /* tile-in-card, skeleton, kbd */
  --hover:#F3F4F7;         /* row / nav hover wash */
  --bar:#EFF1F4;           /* phone bottom tab bar */
  --seg-on:#FFFFFF;        /* selected segment */
  --switch-off:#B4BBC6;
  --disabled-bg:#D3D7DE;
  --disabled-ink:#6B7380;

  /* text */
  --ink:#0B1220;
  --muted:#586174;
  --faint:#545C6B;
  --hint:#5A6373;          /* placeholders */
  --chevron:#6F7787;

  /* brand gold */
  --gold:#C49A4A;          /* focus ring, selected edges, GoldDot ring */
  --gold-light:#D6B370;    /* MAIN BUTTON FILL, GoldDot, switch on */
  --gold-soft:#ECE0C6;     /* active nav pill, empty-state tile, active tab icon pill */
  --gold-tint:#F3EBDC;     /* gentle gold wash (text-button hover) */
  --gold-edge:#E0C998;
  --gold-text:#7A5A24;     /* gold text on light */
  --gold-icon:#866424;
  --on-gold:#0B1220;       /* text on main button — both themes */
  --cream:#EEE1C4;         /* shop avatar */

  /* semantic */
  --green:#05683F;  --green-soft:#DCEEE4;   /* incoming, paid, success */
  --amber:#83570F;  --amber-soft:#F2E6CD;   /* held, pending, warning */
  --red:#9E2F27;    --red-soft:#F2DDD9;     /* failed, error, destructive */
  --slate:#2F3B52;  --slate-soft:#DFE2E7;   /* outgoing, neutral, segmented track */
  --blue:#2559B8;   --blue-tint:#E0EAF8;    /* info, links in notices */

  /* person avatar (small navy spot — the only navy allowed) */
  --avatar-bg:#1E2943;  --avatar-fg:#E2C88F;
  --logo-navy:#2F4066;

  /* overlays (only floating things — modal, sheet, toast, menu — have shadows) */
  --scrim:rgba(11,18,32,.40);
  --shadow-pop:0 16px 40px rgba(11,18,32,.16),0 2px 8px rgba(11,18,32,.06);
  --shimmer:linear-gradient(90deg,rgba(255,255,255,0) 0,rgba(255,255,255,.55) 50%,rgba(255,255,255,0) 100%);
}

/* ---- Type, space, shape, motion (theme-independent) --------------------- */
:root{
  --font:"PU Arabic",-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif;
  --font-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,"DejaVu Sans Mono",monospace;

  /* type scale: size / line-height / weight */
  --t-balance:44px;  --lh-balance:52px;  /* 700, letter-spacing -0.5px */
  --t-figure:28px;   --lh-figure:36px;   /* 700 — KPI figure */
  --t-title:24px;    --lh-title:32px;    /* 800 — page title */
  --t-h2:18px;       --lh-h2:26px;       /* 700 — modal / sheet title */
  --t-h3:16px;       --lh-h3:24px;       /* 700 — card / section title */
  --t-row:15px;      --lh-row:22px;      /* 700 — row title, desktop */
  --t-row-sm:14px;                        /*       row title, phone */
  --t-body:14px;     --lh-body:22px;     /* 400 */
  --t-label:13px;    --lh-label:20px;    /* 600 — field label, group header */
  --t-note:12.5px;   --lh-note:18px;     /* 400 — row second line, meta */
  --t-small:12px;    --lh-small:16px;    /* 600 — pills, tab labels, currency code */

  /* spacing — 4/8 grid. Use ONLY these. */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:20px; --s-6:24px;
  --s-8:32px; --s-10:40px; --s-12:48px; --s-16:64px;

  /* radii */
  --r-xs:6px;     /* kbd, badge */
  --r-sm:10px;    /* segment thumb, small tiles */
  --r-chip:12px;  /* chips, nav item */
  --r-field:14px; /* fields, segmented track, notices inside cards */
  --r-tile:16px;  /* notices, toasts */
  --r-card:20px;  /* cards, list boxes, tables */
  --r-hero:24px;  /* balance hero, modal, sheet */
  --r-pill:999px; /* buttons, status pills, avatars of people */

  /* control heights */
  --h-btn-lg:52px;  /* main action in forms, phone, auth */
  --h-btn-md:44px;  /* toolbar / page-head actions (desktop) */
  --h-btn-sm:36px;  /* inline / row actions */
  --h-field:52px;
  --h-field-sm:44px; /* search, toolbar filters */
  --h-chip:36px;
  --h-seg:44px;
  --h-row:72px;     /* list row min-height */
  --h-topbar:80px;  --h-topbar-phone:64px;
  --h-tabbar:72px;

  /* shell */
  --rail-w:264px;  --rail-w-collapsed:72px;  --drawer-w:304px;

  /* content max widths (inside the content area, centred) */
  --w-list:1240px;   /* overview, lists, tables, reports */
  --w-detail:960px;  /* one payment / invoice / customer */
  --w-form:720px;    /* settings & create forms (single column of cards) */
  --w-auth:440px;    /* sign-in, sign-up, OTP, reset */

  /* motion */
  --ease:cubic-bezier(.2,.7,.2,1);
  --d-fast:140ms; --d-base:220ms;

  /* grid (phone defaults; overridden per breakpoint below) */
  --cols:4; --gutter:12px; --margin:16px;
}

/* Breakpoints (min-width; media queries cannot read custom properties):
   360 small phone · 390 phone · 768 tablet · 1024 desktop · 1280 · 1440 wide · 1920 */
@media (min-width:768px){ :root{ --cols:8;  --gutter:16px; --margin:24px; } }
@media (min-width:1024px){ :root{ --cols:12; --gutter:20px; --margin:32px; } }
@media (min-width:1280px){ :root{ --gutter:24px; } }
@media (min-width:1440px){ :root{ --margin:40px; } }

/* ---- Grid ----------------------------------------------------------------
   <div class="grid"> children take span classes per tier; a tier with no class inherits the
   smaller tier's span (phone default = full width):
   .span-p-N (<768, of 4) · .span-t-N (768+, of 8) · .span-N (1024+, of 12) · .span-xl-N (1280+, of 12) */
.grid{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:var(--gutter);align-items:start}
.grid>*{grid-column:1/-1;min-width:0}
.grid--stretch{align-items:stretch}
.span-p-2{grid-column:span 2}
@media (min-width:768px){
  .grid>*{grid-column:1/-1}
  .span-t-2{grid-column:span 2}.span-t-3{grid-column:span 3}.span-t-4{grid-column:span 4}
  .span-t-5{grid-column:span 5}.span-t-6{grid-column:span 6}.span-t-8{grid-column:span 8}
}
@media (min-width:1024px){
  .span-3{grid-column:span 3}.span-4{grid-column:span 4}.span-5{grid-column:span 5}
  .span-6{grid-column:span 6}.span-7{grid-column:span 7}.span-8{grid-column:span 8}
  .span-12{grid-column:span 12}
}
@media (min-width:1280px){
  .span-xl-3{grid-column:span 3}.span-xl-4{grid-column:span 4}.span-xl-5{grid-column:span 5}
  .span-xl-6{grid-column:span 6}.span-xl-7{grid-column:span 7}.span-xl-8{grid-column:span 8}.span-xl-12{grid-column:span 12}
}

/* ---- 10-components.css ---- */
/* ==========================================================================
   Payunit design system — components.css   (needs tokens.css first)
   Logical properties everywhere: written once, correct in RTL and LTR.
   ========================================================================== */

/* ---- 0. Base ------------------------------------------------------------ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);
  font-size:var(--t-body);line-height:var(--lh-body);-webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility}
h1,h2,h3,h4,p{margin:0}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
img,svg{display:block}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
[hidden]{display:none!important}

/* icons — .svg-ic is the product sprite's icon (ui_icon), drawn in the same stroke as the console set */
.svg-ic{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.ic{width:20px;height:20px;flex:none}
.ic--16{width:16px;height:16px}.ic--18{width:18px;height:18px}.ic--22{width:22px;height:22px}.ic--24{width:24px;height:24px}
[dir="ltr"] .ic--dir{transform:scaleX(-1)}   /* author icons for RTL; mirrors in English */

/* numbers & money — always LTR, tabular */
.num{direction:ltr;unicode-bidi:isolate;white-space:nowrap;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1,"lnum" 1}
.amt{display:inline-flex;align-items:baseline;gap:4px;direction:ltr;unicode-bidi:isolate;
  font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1,"lnum" 1;white-space:nowrap;font-weight:700}
.amt__c{font-size:var(--t-small);font-weight:600;color:var(--muted);letter-spacing:.02em}
/* a currency code standing in its own element (localize_currency_html) keeps its own box inside Arabic text */
.pu-ccy{unicode-bidi:isolate}
.amt--in{color:var(--green)}
.amt--in .amt__c{color:var(--green);opacity:.8}
.amt--out{color:var(--ink)}
.amt--void{color:var(--muted);text-decoration:line-through;text-decoration-thickness:1px}
.mono{font-family:var(--font-mono);font-size:13px;letter-spacing:0;direction:ltr;unicode-bidi:isolate}
/* dates with Arabic month names: the phrase stays RTL, only digit runs are isolated.
   <span class="date"><span class="num">22</span> نوفمبر · <span class="num">14:22</span></span>
   Format «22 نوفمبر · 14:22»; add the year only when it is not the current year. Never put a date in one .num. */
.date{white-space:nowrap;font-variant-numeric:tabular-nums}
/* separator dot between facts on one line (row subtitles, metas, day totals) */
.sep{display:inline-block;vertical-align:middle;width:3px;height:3px;border-radius:50%;background:currentColor;opacity:.6;margin-inline:6px;flex:none}

/* text helpers */
.t-title{font-size:var(--t-title);line-height:var(--lh-title);font-weight:800;letter-spacing:-.2px}
.t-h2{font-size:var(--t-h2);line-height:var(--lh-h2);font-weight:700}
.t-h3{font-size:var(--t-h3);line-height:var(--lh-h3);font-weight:700}
.t-label{font-size:var(--t-label);line-height:var(--lh-label);font-weight:600}
.t-note{font-size:var(--t-note);line-height:var(--lh-note);color:var(--muted)}
.t-muted{color:var(--muted)}

/* motion: status dots and loading placeholders only; pages appear at once (no entrance animation) */
@keyframes pu-breathe{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.7)}}
@keyframes pu-shimmer{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:1ms!important;animation-iteration-count:1!important;
    animation-delay:0ms!important;transition-duration:1ms!important}
}

/* ---- 1. GoldDot ----------------------------------------------------------- */
.gold-dot{width:8px;height:8px;border-radius:50%;background:var(--gold-light);flex:none;display:inline-block}

/* ---- 2. Logo, avatars ----------------------------------------------------- */
.logo{display:inline-flex;align-items:center;gap:10px;font-weight:700;font-size:18px;letter-spacing:-.2px;color:var(--ink)}
.logo__mark{width:32px;height:32px;flex:none}

.avatar{--sz:40px;width:var(--sz);height:var(--sz);flex:none;display:inline-grid;place-items:center;
  font-weight:700;font-size:calc(var(--sz) * .42);line-height:1;position:relative;overflow:hidden}
.avatar--shop{background:var(--cream);color:var(--gold-text);border-radius:calc(var(--sz) * .32)}
.avatar--person{background:var(--avatar-bg);color:var(--avatar-fg);border-radius:50%}   /* the signed-in person only */
.avatar--cust{background:var(--cream);color:var(--gold-text);border-radius:50%}          /* every customer, one initial */
.avatar--32{--sz:32px}.avatar--40{--sz:40px}.avatar--48{--sz:48px}.avatar--56{--sz:56px}

/* ---- 3. Icon tiles -------------------------------------------------------- */
.tile{--sz:40px;width:var(--sz);height:var(--sz);flex:none;display:grid;place-items:center;
  border-radius:calc(var(--sz) * .32);background:var(--slate-soft);color:var(--slate)}
.tile .ic{width:calc(var(--sz) * .5);height:calc(var(--sz) * .5)}
.tile--32{--sz:32px}.tile--40{--sz:40px}.tile--48{--sz:48px}.tile--64{--sz:64px}
.tile--round{border-radius:50%}
.tile--in{background:var(--green-soft);color:var(--green)}       /* incoming */
.tile--out{background:var(--slate-soft);color:var(--slate)}      /* outgoing */
.tile--held{background:var(--amber-soft);color:var(--amber)}     /* held / waiting */
.tile--gold{background:var(--gold-soft);color:var(--gold-icon)}  /* brand features */
.tile--red{background:var(--red-soft);color:var(--red)}
.tile--blue{background:var(--blue-tint);color:var(--blue)}

/* ---- 4. Buttons -------------------------------------------------------------
   Main (gold, ONE per screen) · secondary (1.5px ink edge) · text · danger · icon.
   Sizes: --lg 52 (forms, phone, auth) · default 44 (desktop toolbars) · --sm 36 (rows). */
.btn{--h:var(--h-btn-md);display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:var(--h);padding-inline:20px;border-radius:var(--r-pill);border:1.5px solid transparent;
  font-size:14px;font-weight:700;line-height:1;white-space:nowrap;text-align:center;
  transition:background-color var(--d-fast),border-color var(--d-fast),color var(--d-fast),transform var(--d-fast)}
.btn .ic{width:18px;height:18px}
.btn:active{transform:scale(.98)}
.btn--lg{--h:var(--h-btn-lg);padding-inline:28px;font-size:15px}
.btn--sm{--h:var(--h-btn-sm);padding-inline:14px;font-size:13px;gap:6px}
.btn--sm .ic{width:16px;height:16px}
.btn--block{display:flex;width:100%}

.btn--main{background:var(--gold-light);color:var(--on-gold);font-weight:800}
.btn--main:hover{background:color-mix(in srgb,var(--gold-light) 88%,var(--gold))}
.btn--sec{background:transparent;color:var(--ink);border-color:var(--ink)}
.btn--sec:hover{background:var(--hover)}
.btn--text{background:transparent;color:var(--gold-text);padding-inline:12px}
.btn--text:hover{background:var(--gold-tint)}
.btn--danger{background:var(--red);color:#fff;font-weight:800}
.btn--danger-text{background:transparent;color:var(--red);padding-inline:12px}
.btn--danger-text:hover{background:var(--red-soft)}
.btn:disabled,.btn[aria-disabled="true"]{background:var(--disabled-bg);color:var(--disabled-ink);border-color:transparent;cursor:not-allowed;transform:none}
.btn.is-loading{color:transparent!important;position:relative;pointer-events:none}
.btn.is-loading::after{content:"";position:absolute;width:18px;height:18px;border-radius:50%;
  border:2px solid var(--on-gold);border-inline-end-color:transparent;animation:pu-spin .7s linear infinite}
@keyframes pu-spin{to{transform:rotate(360deg)}}

.icon-btn{--sz:44px;width:var(--sz);height:var(--sz);flex:none;display:inline-grid;place-items:center;
  border-radius:50%;background:var(--card);border:1px solid var(--edge);color:var(--ink);position:relative;
  transition:background-color var(--d-fast)}
.icon-btn:hover{background:var(--hover)}
.icon-btn--sm{--sz:36px}.icon-btn--sm .ic{width:18px;height:18px}
.icon-btn--ghost{background:transparent;border-color:transparent}
.icon-btn--ghost:hover{background:var(--hover)}
.icon-btn--danger{color:var(--red)}
.icon-btn--danger:hover{background:var(--red-soft)}
.icon-btn.is-on{background:var(--gold-soft);border-color:var(--gold-soft);color:var(--gold-icon)}
.icon-btn:disabled,.icon-btn[aria-disabled="true"]{opacity:.4;cursor:not-allowed;background:transparent}
.icon-btn__dot{position:absolute;top:10px;inset-inline-end:11px;width:8px;height:8px;border-radius:50%;
  background:var(--red);box-shadow:0 0 0 2px var(--card)}

.btn-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.btn-row--end{justify-content:flex-end}
/* toolbar button that collapses to its icon on phone: <button class="btn btn--sec btn--collapse">icon<span class="btn__t">تصدير</span></button> */
@media (max-width:767px){.btn--collapse{width:var(--h);padding:0}.btn--collapse .btn__t,.btn--collapse .btn__more{display:none}}

/* ---- 5. Fields ---------------------------------------------------------------
   Label 13/600 above, gap 8. Height 52 (44 for --sm / search). Radius 14.
   Focus = 1.6px gold edge (1px border + 0.6px ring, no layout shift).
   No helper sentences — only an error line when invalid. */
.fld{display:flex;flex-direction:column;gap:8px;min-width:0}
.fld__label{font-size:var(--t-label);line-height:var(--lh-label);font-weight:600;color:var(--ink);
  display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.fld__opt{font-weight:400;color:var(--muted);font-size:var(--t-small)}
.fld__err{display:flex;align-items:center;gap:6px;font-size:var(--t-note);line-height:var(--lh-note);color:var(--red);font-weight:600}
.fld__err .ic{width:16px;height:16px}

.input{--h:var(--h-field);display:flex;align-items:center;gap:10px;height:var(--h);width:100%;
  padding-inline:16px;background:var(--field-bg);border:1px solid var(--field-edge);border-radius:var(--r-field);
  transition:border-color var(--d-fast),box-shadow var(--d-fast);min-width:0}
.input--sm{--h:var(--h-field-sm);padding-inline:14px}
.input>input,.input>select{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;padding:0;font-size:15px;color:var(--ink)}
.input>input::placeholder,.input textarea::placeholder{color:var(--hint);opacity:1}
.input:hover{border-color:color-mix(in srgb,var(--field-edge) 60%,var(--muted))}
.input:focus-within{border-color:var(--gold);box-shadow:0 0 0 .6px var(--gold)}
.input.is-invalid{border-color:var(--red);box-shadow:0 0 0 .6px var(--red)}
.input.is-disabled{background:var(--tile);color:var(--muted)}
.input>.ic{color:var(--muted)}
.input__affix{color:var(--muted);font-size:14px;font-weight:600;white-space:nowrap}

/* amount: big LTR figure + currency code at the end, separated */
.input--amount{--h:60px;padding-inline:18px 6px}
.input--amount>input{font-size:22px;font-weight:700;direction:ltr;text-align:right;font-variant-numeric:tabular-nums}
[dir="ltr"] .input--amount>input{text-align:left}
.input__cur{display:flex;align-items:center;gap:6px;height:44px;padding-inline:14px 12px;border-radius:10px;
  background:var(--tile);font-size:14px;font-weight:700;color:var(--ink);direction:ltr;letter-spacing:.02em}
.input__cur .ic{width:16px;height:16px;color:var(--muted)}

/* select with arrow */
.input--select{position:relative;padding:0}
.input--select>select{appearance:none;-webkit-appearance:none;padding-inline:16px 44px;cursor:pointer}
.input--select>.ic{position:absolute;inset-inline-end:14px;top:50%;margin-top:-9px;width:18px;height:18px;pointer-events:none}

/* textarea */
.input--area{height:auto;align-items:stretch;padding:14px 16px}
.input--area>textarea{flex:1;min-height:84px;border:0;outline:0;background:transparent;resize:vertical;padding:0;font-size:15px;line-height:24px}

/* search with "/" hint */
.search{--h:var(--h-field-sm)}
.search>.ic{width:18px;height:18px}
.search>input{font-size:14px}
.kbd{display:inline-grid;place-items:center;min-width:24px;height:24px;padding-inline:6px;border-radius:var(--r-xs);
  border:1px solid var(--field-edge);background:var(--tile);color:var(--muted);font-size:12px;font-weight:600;
  font-family:var(--font-mono);line-height:1}

/* OTP — 6 boxes, always LTR order */
.otp{display:flex;gap:8px;direction:ltr;justify-content:center}
.otp__box{width:52px;height:60px;flex:0 1 52px;min-width:0;text-align:center;font-size:24px;font-weight:700;
  font-variant-numeric:tabular-nums;border:1px solid var(--field-edge);border-radius:var(--r-field);background:var(--field-bg);
  color:var(--ink);outline:0;padding:0;transition:border-color var(--d-fast),box-shadow var(--d-fast)}
.otp__box:focus,.otp__box.is-focus{border-color:var(--gold);box-shadow:0 0 0 .6px var(--gold)}
.otp--error .otp__box{border-color:var(--red);box-shadow:0 0 0 .6px var(--red)}
.otp__gap{width:8px;flex:none}

/* copy field — shows the END of long values */
.copy{display:flex;align-items:center;gap:8px;height:var(--h-field);padding-inline:16px 6px;
  background:var(--tile);border-radius:var(--r-field);min-width:0}
.copy__val{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;direction:rtl;text-align:left;
  font-family:var(--font-mono);font-size:13.5px;color:var(--ink)}
[dir="ltr"] .copy__val{text-align:left}
.copy__btn{height:40px;padding-inline:14px;border-radius:10px;background:var(--card);border:1px solid var(--edge);
  display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--ink);flex:none}
.copy__btn .ic{width:16px;height:16px}
.copy__btn.is-done{color:var(--green)}

/* ---- 6. Checkbox · radio · switch ---------------------------------------- */
.check,.radio{position:relative;display:inline-flex;align-items:center;gap:10px;cursor:pointer;font-size:14px;min-height:24px}
.check>input:disabled+.check__box,.radio>input:disabled+.radio__dot{opacity:.5}
.check>input,.radio>input,.switch>input{position:absolute;opacity:0;width:1px;height:1px}
.check__box{width:20px;height:20px;flex:none;border-radius:6px;border:1.5px solid var(--chevron);background:var(--field-bg);
  display:grid;place-items:center;transition:background-color var(--d-fast),border-color var(--d-fast)}
.check__box .ic{width:14px;height:14px;stroke-width:2.6;color:var(--on-gold);opacity:0}
.check>input:checked+.check__box{background:var(--gold-light);border-color:var(--gold-light)}
.check>input:checked+.check__box .ic{opacity:1}
.check>input:focus-visible+.check__box,.radio>input:focus-visible+.radio__dot,.switch>input:focus-visible+.switch__track{outline:2px solid var(--gold);outline-offset:2px}
.radio__dot{width:20px;height:20px;flex:none;border-radius:50%;border:1.5px solid var(--chevron);background:var(--field-bg);
  display:grid;place-items:center}
.radio__dot::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--gold);transform:scale(0);transition:transform var(--d-fast)}
.radio>input:checked+.radio__dot{border-color:var(--gold)}
.radio>input:checked+.radio__dot::after{transform:scale(1)}
.switch{display:inline-flex;align-items:center;gap:10px;cursor:pointer;position:relative}
.switch__track{width:44px;height:26px;flex:none;border-radius:13px;background:var(--switch-off);position:relative;transition:background-color var(--d-base)}
.switch__track::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:20px;height:20px;border-radius:50%;
  background:#fff;box-shadow:0 1px 2px rgba(11,18,32,.25);transition:inset-inline-start var(--d-base) var(--ease)}
.switch>input:checked+.switch__track{background:var(--gold-light)}
.switch>input:checked+.switch__track::after{inset-inline-start:21px}
.switch>input:disabled+.switch__track{opacity:.5}
.switch:has(>input:disabled){cursor:not-allowed}

/* option card (radio as a card: payment method choice, plan…) */
.opt{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid var(--field-edge);border-radius:16px;background:var(--card);cursor:pointer}
.opt.is-on{border-color:var(--gold);box-shadow:0 0 0 .5px var(--gold)}
.opt__body{flex:1;min-width:0}
.opt__title{font-size:15px;font-weight:700;line-height:22px}
.opt__sub{font-size:var(--t-note);line-height:var(--lh-note);color:var(--muted)}

/* ---- 7. Chips · segmented · tabs ------------------------------------------- */
.chips{display:flex;flex-wrap:wrap;gap:8px}
/* --scroll: one swipeable line on phone (bleeds to the screen edge); wraps from 768 */
.chips--scroll{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:calc(var(--margin) * -1);padding-inline:var(--margin)}
@media (min-width:768px){.chips--scroll{flex-wrap:wrap;overflow:visible;margin-inline:0;padding-inline:0}}
.chips--scroll::-webkit-scrollbar{display:none}
.chip{display:inline-flex;align-items:center;gap:6px;height:var(--h-chip);padding-inline:14px;border-radius:var(--r-chip);
  background:var(--card);border:1px solid var(--field-edge);font-size:13px;font-weight:600;color:var(--ink);white-space:nowrap;flex:none}
.chip .ic{width:16px;height:16px;color:var(--muted)}
.chip:hover{border-color:var(--chevron)}
.chip.is-on{border:1.5px solid var(--gold);padding-inline:13.5px;color:var(--gold-text);font-weight:700}
.chip.is-on .ic{color:var(--gold-icon)}
.chip__n{font-size:12px;font-weight:700;color:var(--muted)}
.chip.is-on .chip__n{color:var(--gold-text)}

.seg{display:inline-flex;gap:2px;height:var(--h-seg);padding:4px;border-radius:var(--r-field);background:var(--slate-soft)}
.seg__opt{flex:1 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding-inline:16px;
  border-radius:var(--r-sm);font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap;transition:background-color var(--d-fast),color var(--d-fast)}
.seg__opt:hover{color:var(--ink)}
.seg__opt.is-on{background:var(--seg-on);color:var(--ink);font-weight:700;box-shadow:0 1px 2px rgba(11,18,32,.08)}
.seg--sm{height:36px;padding:3px}
.seg--sm .seg__opt{height:30px;padding-inline:12px;font-size:12.5px;border-radius:8px}
.seg--block{display:flex;width:100%}

.tabs{display:flex;gap:24px;border-bottom:1px solid var(--divider);overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tab{position:relative;display:inline-flex;align-items:center;gap:8px;height:44px;font-size:14px;font-weight:600;color:var(--muted);white-space:nowrap;flex:none}
.tab:hover{color:var(--ink)}
.tab.is-on{color:var(--ink);font-weight:700}
.tab.is-on::after{content:"";position:absolute;inset-inline:0;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:var(--gold)}
.tab__n{display:inline-grid;place-items:center;min-width:22px;height:20px;padding-inline:6px;border-radius:10px;background:var(--slate-soft);
  color:var(--slate);font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.tab.is-on .tab__n{background:var(--gold-soft);color:var(--gold-text)}
.tabs--page{margin-bottom:24px}   /* sections of one page (developers) — never status filters */

/* ---- 8. Status pills · badges ---------------------------------------------- */
.pill{display:inline-flex;align-items:center;gap:6px;height:24px;padding-inline:10px;border-radius:var(--r-pill);
  font-size:var(--t-small);font-weight:600;line-height:1;white-space:nowrap;background:var(--slate-soft);color:var(--slate)}
.pill--paid{background:var(--green-soft);color:var(--green)}
.pill--pending{background:var(--amber-soft);color:var(--amber)}
.pill--failed{background:var(--red-soft);color:var(--red)}
.pill--neutral{background:var(--slate-soft);color:var(--slate)}
.pill--info{background:var(--blue-tint);color:var(--blue)}
.pill--gold{background:var(--gold-soft);color:var(--gold-text)}
.pill__dot{width:6px;height:6px;border-radius:50%;background:currentColor;animation:pu-breathe 1.6s ease-in-out infinite}

.badge{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-width:20px;height:20px;padding-inline:6px;border-radius:10px;
  font-size:11.5px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;background:var(--red);color:#fff}
.badge>.ic{width:12px;height:12px}
.badge--gold{background:var(--gold-soft);color:var(--gold-text)}
.badge--new{background:var(--gold-light);color:var(--on-gold);border-radius:var(--r-xs);height:20px;padding-inline:6px;font-size:11px}
.badge--muted{background:var(--slate-soft);color:var(--slate)}

/* ---- 9. Cards ------------------------------------------------------------- */
.card{background:var(--card);border:1px solid var(--edge);border-radius:var(--r-card);padding:24px;min-width:0}
.card--flush{padding:0}
.card--hero{border-radius:var(--r-hero);padding:28px}
.card__head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;margin-bottom:16px}
.card__title{font-size:var(--t-h3);line-height:var(--lh-h3);font-weight:700}
.card--flush>.card__head{padding:20px 20px 0;margin-bottom:8px}
.card__foot{display:flex;justify-content:center;padding:8px 20px 16px}
.card__sep{height:1px;background:var(--divider);margin-block:20px}
@media (max-width:767px){.card{padding:20px}.card--hero{padding:24px 20px}.card--flush{padding:0}.card--flush>.card__head{padding:16px 16px 0}}

/* section title above a card / list (outside it) */
.sec-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;margin-bottom:12px}
.sec-head>.btn--text,.card__head>.btn--text,.sec-head>.btn--danger-text,.card__head>.btn--danger-text{margin-inline-end:-12px}
.card__title .badge{margin-inline-start:8px;vertical-align:2px}
.card__notice{margin-top:20px}
.sec-head__title{font-size:var(--t-h3);line-height:var(--lh-h3);font-weight:700}

/* ---- 10. List box + rows ------------------------------------------------------
   .list = white box (radius 20, 1px edge). .row = 72px min, 40px tile, two lines,
   end column = amount + second line. Dividers inset from the text start. */
.list{background:var(--card);border:1px solid var(--edge);border-radius:var(--r-card);overflow:hidden;min-width:0}
.list--bare{border:0;border-radius:0;background:transparent}
.row{--pad:20px;position:relative;display:flex;align-items:center;gap:14px;min-height:var(--h-row);padding:14px var(--pad);
  color:inherit;transition:background-color var(--d-fast)}
a.row:hover,button.row:hover,.row--link:hover{background:var(--hover)}
button.row{width:100%;text-align:start}
.row+.row::before{content:"";position:absolute;top:0;inset-inline-start:calc(var(--pad) + 54px);inset-inline-end:var(--pad);height:1px;background:var(--divider)}
.row--noicon+.row--noicon::before{inset-inline-start:var(--pad)}
.row__main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.row__title{font-size:var(--t-row);line-height:var(--lh-row);font-weight:700;color:var(--ink);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.row__sub{font-size:var(--t-note);line-height:var(--lh-note);color:var(--muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.row__end{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:end}
.row__amt{font-size:var(--t-row);line-height:var(--lh-row)}
.row__meta{font-size:var(--t-note);line-height:var(--lh-note);color:var(--muted)}
.row__value{font-size:13.5px;color:var(--muted);white-space:nowrap;flex:none}
.row__chev{color:var(--chevron);width:18px;height:18px;flex:none}
.row__end .row__meta{white-space:nowrap}
/* variants: --top (multi-line body, tile at top) · __sub--wrap (full sentence) · --read · __title--danger */
.row--top{align-items:flex-start}
.row__sub--wrap{white-space:normal;overflow:visible;color:var(--ink);font-size:13.5px;line-height:21px}
.row--read .row__title{font-weight:600}
.row--read .row__sub--wrap{color:var(--muted)}
.row__title--danger{color:var(--red)}
.row.is-locked .row__title{color:var(--muted)}
.row--wrap .row__title,.row--wrap .row__sub{white-space:normal;overflow-wrap:anywhere}   /* codes, paths: show all of it */
.row__title .mono{font-size:13.5px;font-weight:700}
.udot{width:8px;height:8px;flex:none;border-radius:50%;background:var(--blue);margin-top:8px}   /* unread */
/* rows led by a wide method mark (.mtile--pair): divider starts after it */
.list--marks .row+.row::before{inset-inline-start:calc(var(--pad) + 78px)}
@media (max-width:767px){
  .row{--pad:16px;gap:12px;padding-block:12px;min-height:68px}
  .row+.row::before{inset-inline-start:calc(var(--pad) + 52px)}
  .row__title{font-size:var(--t-row-sm)}
  .row__amt{font-size:var(--t-row-sm)}
  .list--marks .row+.row::before{inset-inline-start:calc(var(--pad) + 76px)}
}

/* day-group header (above each day's list box) */
.day{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding-inline:4px;margin:24px 0 10px;
  font-size:var(--t-label);line-height:var(--lh-label);font-weight:700;color:var(--faint)}
.day:first-child{margin-top:0}
.day__total{font-weight:600;color:var(--muted)}
/* day header inside one long list box */
.day--in{margin:0;padding:12px 20px 8px;background:var(--card);border-top:1px solid var(--divider)}
.day--in:first-child{border-top:0}

/* ---- 11. Data table (desktop) → two-line rows (phone) ---------------------- */
.table-wrap{background:var(--card);border:1px solid var(--edge);border-radius:var(--r-card);overflow:hidden;min-width:0}
.dtable{width:100%;border-collapse:collapse;font-size:14px}
.dtable th{height:44px;padding-inline:16px;text-align:start;font-size:12.5px;font-weight:600;color:var(--muted);
  border-bottom:1px solid var(--divider);white-space:nowrap;background:var(--card)}
.dtable td{height:68px;padding-inline:16px;border-bottom:1px solid var(--divider);vertical-align:middle;white-space:nowrap}
.dtable tr:last-child td{border-bottom:0}
.dtable th:first-child,.dtable td:first-child{padding-inline-start:20px}
.dtable th:last-child,.dtable td:last-child{padding-inline-end:20px}
.dtable tbody tr{transition:background-color var(--d-fast);cursor:pointer}
.dtable tbody tr:hover{background:var(--hover)}
.dtable .c-num{text-align:end}
.dtable .c-shrink{width:1%}
.cell-main{display:flex;align-items:center;gap:12px;min-width:0}
.cell-main>div{min-width:0}
.cell-main__t{font-weight:700;font-size:14px;line-height:20px;color:var(--ink);overflow:hidden;text-overflow:ellipsis}
.cell-main__s{font-size:12.5px;line-height:18px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cell-sub{display:block;font-size:12.5px;line-height:18px;color:var(--muted)}     /* second line in a plain cell */
.cell-strong{font-weight:600}
.dtable td.c-net .amt{font-weight:600;color:var(--muted)}
.dtable tr.is-sel{background:var(--hover)}
/* the main cell takes the free width and ellipsizes */
@media (min-width:768px){.dtable td.c-main{max-width:0;width:100%}}
/* day group row inside a table */
.dtable tr.dt-day{cursor:default}
.dtable tr.dt-day:hover{background:transparent}
.dtable tr.dt-day td{height:auto;padding-block:16px 8px;font-size:var(--t-label);line-height:var(--lh-label);font-weight:700;color:var(--faint);background:var(--card)}
.dt-day__in{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.dt-day__t{font-weight:600;color:var(--muted);font-size:12.5px}
/* tablet & small desktop drop .c-hide-t columns (768–1279); their value moves into .only-narrow text */
@media (min-width:768px) and (max-width:1279px){.dtable .c-hide-t{display:none}}
.cell-muted{color:var(--muted);font-size:13.5px}
.only-phone{display:none}
@media (max-width:767px){
  .dtable,.dtable tbody{display:block}
  .dtable thead{display:none}
  .dtable tr{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"main amt" "main status";
    align-items:center;column-gap:12px;row-gap:4px;padding:12px 16px;min-height:68px}
  .dtable tr+tr::before{content:"";position:absolute;top:0;inset-inline-start:68px;inset-inline-end:16px;height:1px;background:var(--divider)}
  .dtable td{display:block;height:auto;padding:0!important;border:0}
  .dtable td.c-main{grid-area:main}
  .dtable td.c-amt{grid-area:amt;text-align:end;font-size:14px}
  .dtable td.c-status{grid-area:status;text-align:end}
  .dtable td.c-hide-p{display:none}
  .cell-main__t{font-size:14px}
  .only-phone{display:inline}
  .dtable tr.dt-day{display:flex;padding:14px 16px 6px;min-height:0;border-top:1px solid var(--divider)}
  .dtable tr.dt-day:first-child{border-top:0}
  .dtable tr.dt-day::before,.dtable tr.dt-day+tr::before{display:none}
  .dtable tr.dt-day td{display:block;width:100%;padding:0!important}
}

/* pagination / older */
.pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-top:1px solid var(--divider)}
.pager__info{font-size:13px;color:var(--muted)}
.pager__btns{display:flex;gap:8px}
.older{display:flex;justify-content:center;padding-top:16px}
/* pager buttons: .icon-btn--sm with chev-r (السابق) / chev-l (التالي), both .ic--dir */

/* ---- 12. Figures: KPI tile + balance hero ---------------------------------- */
.kpi{container-type:inline-size;background:var(--card);border:1px solid var(--edge);border-radius:var(--r-card);padding:20px;display:flex;flex-direction:column;gap:14px;min-width:0;height:100%}
.kpi__head{display:flex;align-items:center;gap:10px;font-size:var(--t-label);line-height:var(--lh-label);font-weight:600;color:var(--muted)}
.kpi__head .tile{--sz:32px}
.kpi__fig{font-size:clamp(16px,13cqi,var(--t-figure));line-height:var(--lh-figure);font-weight:700;letter-spacing:-.3px;color:var(--ink)}
.kpi__fig .amt__c{font-size:13px}
.kpi__foot{display:flex;align-items:center;gap:6px;font-size:12.5px;line-height:18px;color:var(--muted);margin-top:auto}
.delta{display:inline-flex;align-items:center;gap:2px;font-weight:700;direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}
.delta--up{color:var(--green)}.delta--down{color:var(--red)}
@media (max-width:767px){.kpi{padding:16px;gap:10px}.kpi__fig{font-size:clamp(16px,13.5cqi,22px);line-height:28px}.kpi__head{font-size:12.5px}}

.hero{background:var(--card);border:1px solid var(--edge);border-radius:var(--r-hero);padding:28px;display:flex;flex-direction:column;gap:20px;min-width:0;height:100%}
.hero__top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.hero__label{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--muted)}
.hero__fig{font-size:var(--t-balance);line-height:var(--lh-balance);font-weight:700;letter-spacing:-.5px;color:var(--ink)}
.hero__fig .amt__c{font-size:16px;letter-spacing:0}
.hero__sub{display:flex;flex-wrap:wrap;gap:8px 24px;font-size:13px;color:var(--muted)}
.hero__sub b{color:var(--ink);font-weight:700}
.hero__stat{display:flex;align-items:center;gap:8px}
.hero__stat .gold-dot,.hero__stat .sdot{width:8px;height:8px;border-radius:50%}
.sdot{display:inline-block;flex:none}
.sdot--amber{background:var(--amber)}.sdot--green{background:var(--green)}.sdot--slate{background:var(--slate)}
.hero__actions{display:flex;gap:12px;margin-top:auto}
.hero__row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px 32px;flex-wrap:wrap}
.hero__row>.hero__actions{margin-top:0}
.hero__figs{display:flex;flex-direction:column;gap:12px;min-width:0}
@media (max-width:767px){
  .hero{padding:20px;gap:16px}
  .hero__fig{font-size:36px;line-height:44px}
  .hero__actions{width:100%}
  .hero__actions .btn{flex:1;--h:var(--h-btn-lg)}
}

/* ---- 13. Notices / banners ----------------------------------------------- */
.notice{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border-radius:var(--r-tile);background:var(--blue-tint);color:var(--ink)}
.notice>.ic{color:var(--blue);margin-top:1px}
.notice__body{flex:1;min-width:0;font-size:13.5px;line-height:21px}
.notice__title{font-weight:700;font-size:14px}
.notice__act{flex:none;align-self:center;font-weight:700;font-size:13px;color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.notice--warn{background:var(--amber-soft)}.notice--warn>.ic{color:var(--amber)}
.notice--error{background:var(--red-soft)}.notice--error>.ic{color:var(--red)}
.notice--ok{background:var(--green-soft)}.notice--ok>.ic{color:var(--green)}
.notice--gold{background:var(--gold-tint);border:1px solid var(--gold-edge)}.notice--gold>.ic{color:var(--gold-icon)}

/* ---- 14. Empty state ------------------------------------------------------- */
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px;padding:48px 24px}
.empty .tile{--sz:64px;background:var(--gold-soft);color:var(--gold-icon);border-radius:20px}
.empty .tile .ic{width:28px;height:28px}
.empty__title{font-size:var(--t-h3);line-height:var(--lh-h3);font-weight:700}
.empty .btn{margin-top:4px}
.empty__sub{font-size:var(--t-note);line-height:var(--lh-note);color:var(--muted);margin-top:-8px}
/* tile colour follows meaning when it is a result, not an empty list */
.empty .tile--in{background:var(--green-soft);color:var(--green)}
.empty .tile--red{background:var(--red-soft);color:var(--red)}
/* --in: inside a card that holds more content (result of an action, first-run block) */
.empty--in{padding:8px 0 24px;gap:12px}
.empty--in .empty__title{font-size:var(--t-h2);line-height:var(--lh-h2)}

/* ---- 15. Skeleton ------------------------------------------------------------ */
.skel{display:block;background:var(--tile);border-radius:8px;position:relative;overflow:hidden}
.skel::after{content:"";position:absolute;inset:0;background:var(--shimmer);animation:pu-shimmer 1.4s ease-in-out infinite}
.skel--tile{width:40px;height:40px;border-radius:13px;flex:none}
.skel--line{height:12px}
.skel--title{height:14px}

/* ---- 16. Stepper (business activation) ------------------------------------ */
.stepper{display:flex;align-items:flex-start;list-style:none;margin:0;padding:0}
.step{flex:1;display:flex;flex-direction:column;align-items:center;gap:10px;position:relative;text-align:center;min-width:0}
.step:not(:last-child)::after{content:"";position:absolute;top:15px;inset-inline-start:calc(50% + 24px);inset-inline-end:calc(-50% + 24px);
  height:2px;border-radius:1px;background:var(--divider)}
.step.is-done:not(:last-child)::after{background:var(--green)}
.step__dot{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:14px;font-weight:700;
  background:var(--card);border:1.5px solid var(--field-edge);color:var(--muted);font-variant-numeric:tabular-nums;position:relative;z-index:1}
.step__dot .ic{width:16px;height:16px;stroke-width:2.4}
.step.is-done .step__dot,.step__dot.is-done{background:var(--green-soft);border-color:var(--green-soft);color:var(--green)}
.step.is-now .step__dot,.step__dot.is-now{background:var(--gold-light);border-color:var(--gold-light);color:var(--on-gold);font-weight:800}
.step__dot{flex:none}
.step__label{font-size:13px;line-height:18px;font-weight:600;color:var(--muted);padding-inline:4px}
.step.is-now .step__label,.step.is-done .step__label{color:var(--ink)}
.step.is-now .step__label{font-weight:700}
/* phone: compact head + segmented progress */
.stepper-c{display:flex;flex-direction:column;gap:10px}
.stepper-c__head{display:flex;justify-content:space-between;align-items:baseline;font-size:13px;color:var(--muted)}
.stepper-c__head b{color:var(--ink);font-size:15px}
.stepper-c__bar{display:flex;gap:6px}
.stepper-c__bar i{flex:1;height:4px;border-radius:2px;background:var(--divider)}
.stepper-c__bar i.is-done{background:var(--green)}
.stepper-c__bar i.is-now{background:var(--gold-light)}
/* .steps = .stepper (≥768) + .stepper-c (phone) for the same flow; put both inside */
.steps{margin-bottom:24px}
.steps:last-child{margin-bottom:0}
.steps>.stepper-c{display:none}
@media (max-width:767px){.steps{margin-bottom:16px}.steps>.stepper{display:none}.steps>.stepper-c{display:flex}}

/* ---- 17. Share buttons --------------------------------------------------- */
.share{display:flex;flex-wrap:wrap;gap:16px 20px}
@media (max-width:767px){.share{justify-content:space-between;column-gap:0}}
.share__btn{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;font-weight:600;color:var(--ink);width:56px}
.share__ic{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:var(--tile);color:var(--ink);transition:background-color var(--d-fast)}
.share__btn:hover .share__ic{background:var(--slate-soft)}
.share__ic--wa{background:#E3F6EA;color:#128C4B}

/* ---- 18. Key–value (detail pages) ------------------------------------------ */
.kv{display:grid;grid-template-columns:minmax(120px,38%) 1fr;column-gap:0;margin:0}
.kv>dt{padding-inline-end:16px}
.kv>dt,.kv>dd{margin:0;padding-block:12px;border-bottom:1px solid var(--divider);font-size:14px;line-height:22px;min-width:0}
.kv>dt{color:var(--muted)}
.kv>dd{font-weight:600;text-align:end;overflow-wrap:anywhere}
/* a value with its own direction (an e-mail, a code, dir="auto") still lines up with the others: the page's end side */
[dir="rtl"] .kv>dd{text-align:left}[dir="ltr"] .kv>dd{text-align:right}
.kv>dt:last-of-type,.kv>dd:last-of-type{border-bottom:0}
.kv>dd .amt{font-weight:600}
.kv>dt.kv__lead,.kv>dd.kv__lead{font-size:var(--t-h3);line-height:var(--lh-h3);font-weight:700;color:var(--ink)}
.kv>dd.kv__lead .amt{font-weight:700}
.kv>dd .link{color:var(--gold-text);font-weight:700;display:inline-flex;align-items:center;gap:4px}
.kv>dd .link .ic{width:16px;height:16px}
.kv>dd.kv__mark{display:flex;justify-content:flex-end;align-items:center;gap:8px}
.kv--box{background:var(--hover);border-radius:var(--r-field);padding:4px 16px}   /* quote under an amount field */

/* ---- 19. Modal (desktop) / bottom sheet (phone) ---------------------------- */
.scrim{position:fixed;inset:0;background:var(--scrim);z-index:60;opacity:0;pointer-events:none;transition:opacity var(--d-base)}
.scrim.is-open{opacity:1;pointer-events:auto}
.modal{position:fixed;z-index:70;top:50%;left:50%;width:min(480px,calc(100vw - 48px));transform:translate(-50%,-50%);
  background:var(--card);border-radius:var(--r-hero);box-shadow:var(--shadow-pop);padding:28px;display:flex;flex-direction:column;gap:20px}
.modal--static{position:relative;top:auto;left:auto;transform:none;z-index:auto;width:100%;max-width:480px}
.modal__grab{display:none}
.modal__head{display:flex;align-items:flex-start;gap:14px}
.modal__title{font-size:var(--t-h2);line-height:var(--lh-h2);font-weight:700;flex:1;padding-top:8px}
.modal__x{margin-inline-start:auto;margin-top:-4px;margin-inline-end:-8px}
.modal__body{font-size:14px;line-height:22px;color:var(--ink)}
.modal__actions{display:flex;justify-content:flex-end;gap:12px}
@media (max-width:767px){
  .modal:not(.modal--force-modal){top:auto;bottom:0;left:0;right:0;width:100%;transform:none;border-radius:24px 24px 0 0;
    padding:12px 20px calc(20px + env(safe-area-inset-bottom));gap:16px}
  .modal--static:not(.modal--force-modal){position:relative;bottom:auto;max-width:none}
  .modal:not(.modal--force-modal) .modal__grab{display:block;width:40px;height:4px;border-radius:2px;background:var(--field-edge);margin:0 auto 4px}
  .modal:not(.modal--force-modal) .modal__actions{flex-direction:column-reverse}
  .modal:not(.modal--force-modal) .modal__actions .btn{width:100%;--h:var(--h-btn-lg)}
}
/* demo/stage helper: force the phone sheet look at any width */
.modal--sheet-demo{border-radius:24px 24px 0 0;padding:12px 20px 20px;gap:16px;max-width:390px}
.modal--sheet-demo .modal__grab{display:block;width:40px;height:4px;border-radius:2px;background:var(--field-edge);margin:0 auto 4px}
.modal--sheet-demo .modal__actions{flex-direction:column-reverse}
.modal--sheet-demo .modal__actions .btn{width:100%;--h:var(--h-btn-lg)}

/* ---- 20. Toast ------------------------------------------------------------ */
.toast{display:flex;align-items:center;gap:12px;min-height:56px;padding:10px;padding-inline:16px 10px;max-width:420px;
  background:var(--card);border:1px solid var(--edge);border-radius:var(--r-tile);box-shadow:var(--shadow-pop);font-size:14px;font-weight:600}
.toast .tile{--sz:32px}
.toast__text{flex:1;min-width:0}
.toast-stack{position:fixed;z-index:80;inset-inline-start:50%;bottom:24px;transform:translateX(-50%)}
[dir="rtl"] .toast-stack{transform:translateX(50%)}
@media (max-width:767px){.toast-stack{bottom:calc(var(--h-tabbar) + 16px);width:calc(100vw - 32px)}.toast{max-width:none}}

/* ---- 21. Menu / popover ------------------------------------------------------ */
.menu{min-width:220px;padding:6px;background:var(--card);border:1px solid var(--edge);border-radius:16px;box-shadow:var(--shadow-pop)}
.menu__item{display:flex;align-items:center;gap:10px;width:100%;height:40px;padding-inline:12px;border-radius:10px;font-size:14px;font-weight:600;text-align:start}
.menu__item .ic{width:18px;height:18px;color:var(--muted)}
.menu__item:hover{background:var(--hover)}
.menu__item--danger,.menu__item--danger .ic{color:var(--red)}
.menu__sep{height:1px;background:var(--divider);margin:6px 4px}

.menu-anchor{position:relative}
.menu-anchor>.menu{position:absolute;z-index:25;top:calc(100% + 8px);inset-inline-end:0}

/* ---- 22. Visibility helpers ---------------------------------------------------
   blocks: .hide-p (hidden < 768) · .show-p (only < 768, keeps its own display)
   inline text: .only-phone (< 768) · .only-tab (768–1279) · .only-narrow (< 1280)
   table columns: .c-hide-p (< 768) · .c-hide-t (768–1279)                        */
@media (max-width:767px){.hide-p{display:none!important}}
@media (min-width:768px){.show-p{display:none!important}}
.only-tab,.only-narrow{display:none}
@media (min-width:768px) and (max-width:1279px){.only-tab{display:inline}}
@media (max-width:1279px){.only-narrow{display:inline}}

/* ---- 23. Method mark — brand logo on a white tile (white in both themes) -------
   .mtile 40 (--32 · --48) · --fill for full-bleed artwork (bank, Jawwal Pay, PalPay)
   · --pair 64×40 for one or two wordmarks (payment-methods list, with .list--marks) */
.mtile{--sz:40px;width:var(--sz);height:var(--sz);flex:none;display:grid;place-items:center;
  border-radius:calc(var(--sz) * .32);background:#fff;border:1px solid var(--edge);overflow:hidden}
.mtile img{width:calc(var(--sz) * .62);height:calc(var(--sz) * .62);object-fit:contain}
.mtile--wide img{width:calc(var(--sz) * .74);height:calc(var(--sz) * .5)}
.mtile--fill img{width:100%;height:100%;object-fit:cover}
.mtile--32{--sz:32px}.mtile--48{--sz:48px}
.mtile--pair{width:64px;height:40px;border-radius:var(--r-sm);display:flex;align-items:center;justify-content:center;gap:4px}
.mtile--pair img{width:auto;height:24px}
.mtile--pair img+img,.mtile--pair img:has(+img){height:20px}
.mtile--pair img.mtile__wm{height:10px}.mtile--pair img.mtile__mc{height:15px}.mtile--pair img.mtile__link{height:18px}

/* ---- 24. Figures in a box ---------------------------------------------------------
   .figs = strip of 2–4 figures of the current set (payments summary, customer)
   .figs--in = the same strip at the foot of a card (chart footer)
   .fig = the one big amount of a detail card / panel (label above, 32px)          */
.figs{--n:4;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));background:var(--card);border:1px solid var(--edge);border-radius:var(--r-card);min-width:0}
.figs--3{--n:3}
.figs__i{display:flex;flex-direction:column;gap:4px;padding:16px 20px;min-width:0;container-type:inline-size}
.figs__i+.figs__i{border-inline-start:1px solid var(--divider)}
.figs__k{font-size:var(--t-label);line-height:var(--lh-label);font-weight:600;color:var(--muted)}
.figs__v{font-size:clamp(15px,12.5cqi,20px);line-height:28px;font-weight:700;color:var(--ink);white-space:nowrap}
.figs__v .amt__c{font-size:12px}
.figs--in{background:none;border:0;border-top:1px solid var(--divider);border-radius:0;margin-top:20px}
.figs--in .figs__i{padding:16px 0 0}
.figs--in .figs__i+.figs__i{border:0;padding-inline-start:16px}
.figs--in .figs__k{font-size:12.5px;line-height:18px;font-weight:400}
.figs--in .figs__v{font-size:15px;line-height:22px}
.figs--in .figs__v .amt__c{font-size:11.5px}
@media (max-width:767px){
  .figs:not(.figs--in){grid-template-columns:repeat(2,minmax(0,1fr))}
  .figs:not(.figs--in) .figs__i{padding:12px 16px}
  .figs:not(.figs--in) .figs__i:nth-child(3){border-inline-start:0}
  .figs:not(.figs--in) .figs__i:nth-child(n+3){border-top:1px solid var(--divider)}
  .figs--3:not(.figs--in) .figs__i:nth-child(3){grid-column:1/-1}
  .figs:not(.figs--in) .figs__v{line-height:24px}
  .figs--in{grid-template-columns:minmax(0,1fr);margin-top:16px}
  .figs--in .figs__i{flex-direction:row;align-items:baseline;justify-content:space-between;gap:12px;padding:12px 0 0}
  .figs--in .figs__i+.figs__i{padding-inline-start:0}
}
.fig{display:flex;flex-direction:column;gap:4px;min-width:0}
.fig__k{font-size:var(--t-label);line-height:var(--lh-label);font-weight:600;color:var(--muted);display:flex;align-items:center;gap:8px}
.fig__v{font-size:32px;line-height:40px;font-weight:700;letter-spacing:-.3px;color:var(--ink)}
.fig__v .amt__c{font-size:15px;letter-spacing:0}
.fig__meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;font-size:13px;color:var(--muted);margin-top:4px}
@media (max-width:767px){.fig__v{font-size:28px;line-height:36px}}

/* ---- 25. Filter bar — the page-head of list pages ----------------------------------
   Sticks under the top bar. Row 1: search · filters (selects; < 1280 they fold into
   the filter icon) · actions at the end. Row 2: status .chips with counts.        */
.fbar{position:sticky;top:var(--h-topbar);z-index:20;background:var(--bg);padding-bottom:20px;display:flex;flex-direction:column;gap:12px}
.fbar__row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-width:0}
.fbar__search{flex:1 1 0;min-width:0;max-width:400px}
.fbar__sel{width:176px;flex:none}
.fbar__filt{display:none}
.fbar__end{margin-inline-start:auto;display:flex;align-items:center;gap:12px;flex:none}
@media (max-width:1279px){.fbar__search{max-width:none}.fbar__sel{display:none}.fbar__filt{display:inline-grid}}
@media (max-width:767px){
  .fbar{top:var(--h-topbar-phone);padding-bottom:16px}
  .fbar__end:has(.btn--main){flex:1 1 100%}
  .fbar__end .btn--main{flex:1;--h:var(--h-btn-lg)}
  .fbar__row>.seg:first-child{flex:1 1 100%}      /* a view switch leading the bar takes its own line */
  .fbar__row>.seg:first-child .seg__opt{flex:1}
}

/* ---- 26. Side panel — one detail drawer for every list (payment, log entry) -------
   ≥ 768: 480 from the inline end over a scrim (440 on tablet). < 768: full screen.  */
.panel{position:fixed;z-index:70;inset-block:0;inset-inline-end:0;width:min(480px,100vw);background:var(--card);
  box-shadow:var(--shadow-pop);display:flex;flex-direction:column}
.panel__head{flex:none;display:flex;flex-direction:column;gap:4px;padding:20px 24px 16px;border-bottom:1px solid var(--divider)}
.panel__top{display:flex;align-items:center;gap:12px;min-width:0;min-height:36px}
.panel__title{flex:1;min-width:0;font-size:var(--t-h2);line-height:var(--lh-h2);font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.panel__title .mono{font-size:16px;font-weight:700}
.panel__x{margin-inline-end:-8px}
.panel__meta{display:flex;align-items:center;flex-wrap:wrap;font-size:var(--t-note);line-height:var(--lh-note);color:var(--muted)}
.panel__body{flex:1;min-height:0;overflow-y:auto;padding:24px;display:flex;flex-direction:column;gap:24px}
.panel__label{font-size:var(--t-label);line-height:var(--lh-label);font-weight:700;color:var(--faint);margin-bottom:4px;display:flex;justify-content:space-between;gap:12px}
.panel__label>span{font-weight:400;color:var(--muted)}
.panel__foot{flex:none;display:flex;flex-wrap:wrap;gap:12px;padding:16px 24px;border-top:1px solid var(--divider)}
.panel__foot .btn{flex:1 1 auto}
@media (min-width:768px) and (max-width:1023px){.panel{width:440px}}
@media (max-width:767px){
  .panel{width:100%;box-shadow:none}
  .panel__head{padding:12px 16px}
  .panel__body{padding:16px 16px 24px}
  .panel__foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom));flex-direction:column-reverse}
  .panel__foot .btn{flex:none;width:100%;--h:var(--h-btn-lg)}
}
/* confirmation over a panel stacks above it */
.scrim--top{z-index:75}.modal--top{z-index:80}

/* ---- 27. Timeline (activity of one object) --------------------------------------
   <ol class="tl"><li class="tl__i"><span class="tile tile--32 tile--round tile--in">icon</span>
   <div class="tl__body"><span class="tl__t">…</span><span class="tl__s">date</span></div></li></ol>
   Upcoming step: .tile--todo (dashed, empty).                                       */
.tl{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.tl__i{position:relative;display:flex;gap:14px;padding-bottom:20px}
.tl__i:last-child{padding-bottom:0}
.tl__i:not(:last-child)::before{content:"";position:absolute;top:36px;bottom:4px;inset-inline-start:15px;width:2px;border-radius:1px;background:var(--divider)}
.tl__body{display:flex;flex-direction:column;gap:2px;padding-top:5px;min-width:0}
.tl__t{font-size:14px;line-height:22px;font-weight:600}
.tl__s{font-size:var(--t-note);line-height:var(--lh-note);color:var(--muted)}
.tl__i.is-todo .tl__t{color:var(--muted)}
.tile--todo{background:transparent;border:1.5px dashed var(--chevron)}

/* ---- 28. Object row — the thing an action applies to (in a modal, a review step) -- */
.obj{display:flex;align-items:center;gap:14px;padding:14px 16px;background:var(--hover);border-radius:var(--r-field);min-width:0}
.obj__main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.obj__t{font-size:15px;line-height:22px;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.obj__s{font-size:var(--t-note);line-height:var(--lh-note);color:var(--muted)}
.obj__end{flex:none}
.obj>.btn--text:last-child{margin-inline-end:-8px}

/* full account numbers (IBAN, wallet, address): LTR mono, may wrap, never cut */
.acct-no{display:block;direction:ltr;unicode-bidi:isolate;font-family:var(--font-mono);font-size:13px;letter-spacing:0;
  overflow-wrap:anywhere;font-variant-numeric:tabular-nums;white-space:normal;text-overflow:clip;overflow:visible}
[dir="rtl"] .acct-no{text-align:right}

/* ---- 29. QR plate — stays white in both themes so it scans ------------------------ */
.qr{margin:0;flex:none;width:152px;padding:12px;background:#fff;border:1px solid var(--edge);border-radius:var(--r-tile)}
.qr>img{width:100%;height:auto;aspect-ratio:1}
.qr-col{display:flex;flex-direction:column;align-items:center;gap:8px;flex:none}
/* link block: copy + share at start, QR at the end (the QR moves into the share row on phone) */
.linkbox{display:flex;gap:32px;align-items:flex-start}
.linkbox__main{flex:1;min-width:0;display:flex;flex-direction:column;gap:20px}
@media (max-width:767px){.linkbox{gap:0}.linkbox>.qr-col{display:none}}

/* ---- 30. Card foot actions · amount helper line · code block ---------------------- */
.card__acts{display:flex;justify-content:flex-end;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid var(--divider)}
.card__acts--split{justify-content:space-between;align-items:center}
@media (max-width:767px){.card__acts:not(.card__acts--split){flex-direction:column-reverse}.card__acts:not(.card__acts--split) .btn{width:100%;--h:var(--h-btn-lg)}}
.amt-line{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted)}
.amt-line b{color:var(--ink)}
.code{margin:0;padding:16px;border-radius:var(--r-field);background:var(--tile);font-family:var(--font-mono);font-size:12.5px;line-height:20px;
  direction:ltr;text-align:left;white-space:pre;overflow-x:auto;color:var(--ink)}
.ok-line{display:flex;align-items:center;gap:6px;font-size:var(--t-note);line-height:var(--lh-note);color:var(--muted)}
.ok-line .ic{color:var(--green);width:16px;height:16px}
.lnk{color:var(--gold-text);font-weight:700}

/* ---- 31. Checklist · logo picker · step card ------------------------------------ */
.checks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.checks li{display:flex;align-items:center;gap:10px;font-size:14px;line-height:22px}
.checks .is-ok .ic{color:var(--green)}
.checks .is-miss{color:var(--muted)}
.checks .is-miss .ic{color:var(--amber)}
.logo-up{display:flex;align-items:center;gap:16px}
.logo-up__pic{width:88px;height:88px;flex:none;border-radius:var(--r-card);overflow:hidden;display:grid;place-items:center;
  background:var(--cream);color:var(--gold-text);font-size:28px;font-weight:700;border:1px solid var(--edge)}
.logo-up__pic svg{width:100%;height:100%}
.logo-up__text{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.logo-up__text .btn{margin-top:8px}
.logo-up__meta{font-size:var(--t-note);line-height:var(--lh-note);color:var(--muted)}
/* card of a multi-step form: step dot + title in the head, one summary line when done */
.scard__t{display:flex;align-items:center;gap:12px;min-width:0}
.scard__sum{margin-top:-8px;padding-inline-start:44px;font-size:var(--t-note);line-height:var(--lh-note);color:var(--muted)}
.card.is-locked .card__title{color:var(--muted)}
.card.is-locked .card__head>.ic{color:var(--chevron)}
.card__head:last-child{margin-bottom:0}

/* ---- 32. Charts: bars (one series, grey; today and peak in gold) · share meter ----- */
.bars{--bar-h:180px;display:flex;align-items:flex-end;gap:2px;height:var(--bar-h);border-bottom:1px solid var(--divider);position:relative}
.bars--sm{--bar-h:112px}
.bars__b{flex:1 1 0;min-width:0;height:100%;display:flex;align-items:flex-end;position:relative}
.bars__b i{display:block;width:100%;border-radius:4px 4px 0 0;background:color-mix(in srgb,var(--slate) 22%,var(--card));min-height:2px}
.bars__b:hover i{background:color-mix(in srgb,var(--slate) 40%,var(--card))}
.bars__b.is-gold i{background:var(--gold-light)}
.bars__b.is-peak i{background:var(--gold)}
.bars__grid{position:absolute;inset-inline:0;border-top:1px dashed var(--divider);pointer-events:none}
.bars__grid span{position:absolute;inset-inline-end:0;top:-9px;font-size:11.5px;line-height:16px;color:var(--muted);unicode-bidi:isolate;font-variant-numeric:tabular-nums}
.bars--y,.bars-axis--y{padding-inline-end:48px}
.bars-axis{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;line-height:16px;color:var(--muted)}
.bars-key{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:16px;font-size:12.5px;line-height:18px;color:var(--muted)}
.bars-key b{color:var(--ink);font-weight:700}
.bars-key__i{display:inline-flex;align-items:center;gap:8px}
.bars-key__sw{width:10px;height:10px;border-radius:3px;flex:none}
.bars-tip{position:absolute;z-index:5;bottom:calc(100% + 8px);inset-inline-start:50%;transform:translateX(50%);display:none;
  padding:8px 12px;border-radius:10px;background:var(--ink);color:var(--card);font-size:12.5px;line-height:18px;white-space:nowrap;pointer-events:none}
[dir="ltr"] .bars-tip{transform:translateX(-50%)}
.bars__b:hover .bars-tip,.bars__b.show-tip .bars-tip{display:block}
.bars-tip .amt__c{color:inherit;opacity:.75}
@media (max-width:767px){.bars{--bar-h:140px;gap:1px}.bars--sm{--bar-h:96px}.bars__b i{border-radius:2px 2px 0 0}}
.meter{display:block;height:6px;border-radius:3px;background:var(--tile);margin-top:8px;overflow:hidden}
.meter i{display:block;height:100%;border-radius:3px;background:color-mix(in srgb,var(--slate) 45%,var(--card))}

/* ==========================================================================
   APP SHELL
   ≥1024 full rail 264 · 768–1023 icon rail 72 (+tooltips) · <768 bottom tabs + drawer
   ========================================================================== */
.app{min-height:100vh;display:grid;grid-template-columns:var(--rail-w) minmax(0,1fr)}
.main{--page-w:var(--w-list);min-width:0;display:flex;flex-direction:column}
.main--detail{--page-w:var(--w-detail)}
.main--form{--page-w:var(--w-form)}

/* ---- rail ---- */
.rail{position:sticky;top:0;height:100vh;background:var(--card);border-inline-end:1px solid var(--edge);
  display:flex;flex-direction:column;z-index:40}
.rail__brand{display:flex;align-items:center;justify-content:space-between;height:var(--h-topbar);padding-inline:24px;flex:none}
.rail__close{display:none}
.acct{display:flex;align-items:center;gap:12px;margin:0 16px 8px;padding:12px;border-radius:16px;background:var(--bg);flex:none;
  transition:background-color var(--d-fast)}
.acct{background:var(--hover)}
.acct:hover{background:var(--tile)}
.acct__text{min-width:0;display:flex;flex-direction:column;gap:2px}
.acct__name{font-size:14px;line-height:20px;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.acct__ver{display:flex;align-items:center;gap:4px;font-size:12px;line-height:16px;color:var(--green);font-weight:600}
.acct__ver .ic{width:14px;height:14px}
.acct__ver--wait{color:var(--amber)}   /* «بانتظار التفعيل» while the business is not approved */
.nav{flex:1;min-height:0;overflow-y:auto;padding:8px 16px 16px;display:flex;flex-direction:column;gap:2px;scrollbar-width:thin}
.nav__group{font-size:12px;line-height:16px;font-weight:600;color:var(--faint);padding:20px 12px 8px}
.nav__item{position:relative;display:flex;align-items:center;gap:12px;height:44px;padding-inline:12px;border-radius:var(--r-chip);
  font-size:14px;font-weight:600;color:var(--ink);transition:background-color var(--d-fast);flex:none}
.nav__item .ic{color:var(--muted);width:20px;height:20px}
.nav__item:hover{background:var(--hover)}
.nav__item.is-on{background:var(--gold-soft);color:var(--gold-text);font-weight:700}
.nav__item.is-on .ic{color:var(--gold-icon)}
.nav__label{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.nav__item .badge{margin-inline-start:auto}
.rail__foot{flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 16px 20px 16px;border-top:1px solid var(--divider)}
.rail__foot .nav__item{flex:1;color:var(--muted)}
.lang{flex:none}
.lang .seg__opt{min-width:40px;padding-inline:10px}

/* tooltip (collapsed rail only) */
.nav__item[data-tip]::after,.acct[data-tip]::after{content:attr(data-tip);position:absolute;top:50%;inset-inline-start:calc(100% + 22px);
  transform:translateY(-50%);height:32px;padding-inline:12px;display:none;align-items:center;white-space:nowrap;
  background:var(--ink);color:var(--card);border-radius:8px;font-size:13px;font-weight:600;z-index:50;pointer-events:none}

/* ---- top bar ---- */
.topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:16px;height:var(--h-topbar);
  padding-inline:max(var(--margin),calc((100% - var(--page-w)) / 2));background:var(--bg)}
.topbar__title{display:flex;align-items:center;gap:10px;min-width:0;font-size:var(--t-title);line-height:var(--lh-title);font-weight:800;letter-spacing:-.2px}
.topbar__title>span:last-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
/* detail pages: the back button replaces the GoldDot, before the title */
.topbar__back{margin-inline:-8px -4px}
.topbar__end{margin-inline-start:auto;display:flex;align-items:center;gap:12px;flex:none}
.topbar__search{width:360px}
.topbar__menu{display:none}

/* ---- content ---- */
.content{width:100%;max-width:calc(var(--page-w) + var(--margin) * 2);margin-inline:auto;padding:8px var(--margin) 48px;flex:1}
.stack{display:flex;flex-direction:column;gap:var(--gutter)}
.stack--24{gap:24px}.stack--16{gap:16px}.stack--32{gap:32px}

/* page-head: the action bar under the top bar (filters at start, actions at end).
   The title lives in the top bar — never repeat it here. */
.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px 16px;flex-wrap:wrap;margin-bottom:20px}
.page-head__start{flex:1 1 0;display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.page-head__end{display:flex;align-items:center;gap:12px;margin-inline-start:auto;flex:none}
.page-head__end>.btn--text:last-child{margin-inline-end:-12px}
.page-head .chips--scroll{margin-inline:0;padding-inline:0}

/* form page footer */
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}
.form-grid>.full{grid-column:1/-1}
.form-actions{display:flex;justify-content:flex-end;gap:12px;padding-top:8px}
@media (max-width:767px){
  .form-grid{grid-template-columns:minmax(0,1fr);gap:16px}
  .form-actions{flex-direction:column-reverse}
  .form-actions .btn{width:100%;--h:var(--h-btn-lg)}
}

/* ---- phone tab bar ---- */
.tabbar{display:none}

/* ---- tablet: icon rail 72 ---- */
@media (min-width:768px) and (max-width:1023px){
  .app{grid-template-columns:var(--rail-w-collapsed) minmax(0,1fr)}
  .rail__brand{padding:0;justify-content:center}
  .acct{margin:0 auto 8px;padding:0;background:transparent!important;position:relative}
  .acct__text{display:none}
  .nav{padding:8px 12px 16px;overflow:visible;align-items:center}
  .nav__group{font-size:0;padding:0;height:1px;width:24px;margin:12px auto;background:var(--divider)}
  .nav__item{width:48px;height:44px;padding:0;justify-content:center}
  .nav__item .nav__label,.rail__brand .logo__name{display:none}
  .nav__item .badge{position:absolute;top:4px;inset-inline-end:2px;min-width:16px;height:16px;font-size:10px;padding-inline:4px}
  .nav__item:hover::after,.nav__item:focus-visible::after,.nav__item.show-tip::after,.acct:hover::after{display:flex}
  .rail__foot{flex-direction:column;padding:12px;gap:4px}
  .rail__foot .nav__item{flex:none}
  .rail .lang{width:48px;padding:0;height:36px;background:transparent;border:1px solid var(--edge);border-radius:var(--r-chip)}
  .rail .lang .seg__opt{min-width:0;width:100%;padding:0;height:34px;color:var(--ink);font-weight:700}
  .rail .lang .seg__opt.is-on{display:none}
  .topbar__search{width:240px}
}

/* ---- phone ---- */
@media (max-width:767px){
  .app{display:block}
  .topbar{height:var(--h-topbar-phone);gap:12px}
  .topbar__search{display:none}
  .topbar__end{gap:8px}
  .content{padding:4px var(--margin) calc(var(--h-tabbar) + 32px + env(safe-area-inset-bottom))}
  .page-head{margin-bottom:16px}
  .page-head__end:has(.btn--main){width:100%;margin-inline-start:0}
  .page-head__end .btn--main{flex:1;--h:var(--h-btn-lg)}

  /* rail becomes a drawer */
  .rail{position:fixed;inset-block:0;inset-inline-start:0;width:min(var(--drawer-w),86vw);height:100%;z-index:70;
    border-inline-end:0;box-shadow:var(--shadow-pop);transform:translateX(-105%);visibility:hidden;
    transition:transform var(--d-base) var(--ease),visibility 0s linear var(--d-base)}
  [dir="rtl"] .rail{transform:translateX(105%)}
  .app.is-drawer-open .rail{transform:none;visibility:visible;transition:transform var(--d-base) var(--ease)}
  .rail__brand{height:64px;padding-inline:20px 12px}
  .rail__close{display:inline-grid}
  .app.is-drawer-open .scrim{opacity:1;pointer-events:auto}

  .tabbar{position:fixed;z-index:50;inset-inline:0;bottom:0;display:flex;height:calc(var(--h-tabbar) + env(safe-area-inset-bottom));
    padding-bottom:env(safe-area-inset-bottom);background:var(--bar);border-top:1px solid var(--edge)}
  .tabbar__item{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
    font-size:12px;line-height:16px;font-weight:600;color:var(--muted)}
  .tabbar__pill{width:56px;height:30px;border-radius:15px;display:grid;place-items:center;transition:background-color var(--d-fast)}
  .tabbar__pill .ic{width:22px;height:22px}
  .tabbar__item.is-on{color:var(--gold-text);font-weight:700}
  .tabbar__item.is-on .tabbar__pill{background:var(--gold-soft);color:var(--gold-icon)}
}

/* ==========================================================================
   AUTH layout (sign-in, sign-up, codes, recovery, device and passkey steps) — no rail; fills the screen at every size
   < 1024   one white sheet from the top bar to the bottom, the form centred in it (440)
   ≥ 1024   two full-height parts: the brand panel (logo, the page's description) and the form on white
   ========================================================================== */
.auth{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;padding:16px var(--margin) 0;background:var(--card)}
.auth__top{display:flex;align-items:center;justify-content:space-between;height:48px;margin-bottom:16px}
.auth__pitch{display:none}
.auth__card{flex:1 0 auto;background:var(--card);
  padding:24px max(4px,calc((100% - var(--w-auth)) / 2)) max(32px,env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:24px}
.auth__title{display:flex;align-items:center;gap:10px;font-size:var(--t-title);line-height:var(--lh-title);font-weight:800}
@media (min-width:768px){
  .auth{padding-top:24px}
  .auth__top{margin-bottom:24px}
  .auth__card{padding-top:48px}
}
@media (min-width:1024px){
  .auth{display:grid;grid-template-columns:minmax(380px,42%) 1fr;grid-template-rows:auto 1fr;padding:0}
  .auth::before{content:"";grid-column:1;grid-row:1/-1;background:var(--bg)}
  .auth__top{display:contents}
  .auth__top>.logo{grid-column:1;grid-row:1;align-self:start;margin:40px 56px 0;gap:14px}
  .auth__top>.logo .logo__mark{width:48px;height:48px}
  .auth__top>.logo .logo__name{font-size:30px}
  .auth__top>.lang{grid-column:2;grid-row:1;justify-self:end;align-self:start;margin:40px 56px 0}
  .auth__pitch{display:block;grid-column:1;grid-row:2;align-self:center;margin:0 56px;max-width:420px;
    font-size:34px;line-height:1.35;font-weight:800;color:var(--ink);text-wrap:balance}
  .auth__pitch::before{content:"";display:block;width:48px;height:6px;border-radius:3px;background:var(--gold);margin-bottom:24px}
  .auth__pitch>p{margin:0}.auth__pitch>.auth__lede{margin-top:20px;font-size:18px;line-height:1.7;font-weight:400;color:var(--muted)}
  .auth__card{grid-column:2;grid-row:2;align-self:center;justify-self:center;width:100%;max-width:calc(var(--w-auth) + 96px);
    padding:32px 48px}
}
@media (min-width:1440px){
  .auth{grid-template-columns:44% 1fr}
  .auth__top>.logo,.auth__top>.lang{margin-top:48px}
  .auth__top>.logo,.auth__pitch{margin-inline:80px}
  .auth__top>.lang{margin-inline:80px}
  .auth__pitch{font-size:40px;max-width:480px}
}
/* account switch (حساب بايونت / متاجر بايونت) — a full-width .seg */
.auth__for{display:flex;width:100%}
.auth__for .seg__opt{flex:1 1 0;min-width:0}
.auth__fields{display:flex;flex-direction:column;gap:var(--s-5)}
.auth__acts{display:flex;flex-direction:column;gap:var(--s-4)}
.auth__or{display:flex;align-items:center;gap:var(--s-3);font-size:var(--t-note);line-height:var(--lh-note);color:var(--muted)}
.auth__or::before,.auth__or::after{content:"";flex:1;height:1px;background:var(--divider)}
.auth__alt{text-align:center;font-size:var(--t-note);line-height:var(--lh-note);color:var(--muted)}
.auth__alt a,.auth__link{color:var(--gold-text);font-weight:700}
/* back button replaces the GoldDot, as in the app top bar */
.auth__title>.icon-btn{margin-inline:-8px -4px}
/* «أُرسل الرمز إلى …» line and resend timer around an .otp */
.auth__to{display:flex;align-items:center;flex-wrap:wrap;gap:var(--s-1) var(--s-2);font-size:var(--t-body);color:var(--muted);margin-top:calc(var(--s-2) * -1)}
.auth__to b{color:var(--ink);font-weight:700}
.auth__to .btn{margin-block:-8px;margin-inline:auto -12px}
.auth__timer{display:flex;justify-content:center;align-items:center;gap:var(--s-2);min-height:24px;font-size:var(--t-label);color:var(--muted);margin-top:calc(var(--s-2) * -1)}
.auth__timer b{color:var(--ink)}
.auth__timer .btn{margin-block:-10px}
.otp-err{justify-content:center;margin-top:calc(var(--s-3) * -1)}
/* status screens inside the card: centred tile + title (the .empty shape) */
.auth__state{display:flex;flex-direction:column;align-items:center;text-align:center;gap:var(--s-4);padding-top:var(--s-2)}
.auth__state .tile{--sz:64px;border-radius:20px}
.auth__state .tile .ic{width:28px;height:28px}
.auth__state .auth__title{justify-content:center}
.auth__status{display:inline-flex;align-items:center;gap:var(--s-2);font-size:var(--t-body);color:var(--muted);margin-top:calc(var(--s-2) * -1)}
.auth__status b{color:var(--ink)}
.spin{width:16px;height:16px;flex:none;border-radius:50%;border:2px solid var(--gold);border-inline-end-color:transparent;animation:pu-spin .7s linear infinite}
/* standalone account block (pending-activation landing) = the rail .acct */
.acct--card{margin:0;padding:var(--s-4)}
.acct--card .pill{margin-inline-start:auto}
.acct__sub{font-size:var(--t-note);line-height:var(--lh-note);color:var(--muted)}

/* phone field with a country-code button (mirrors .input--amount + .input__cur) · password reveal */
.input--phone{padding-inline:16px 6px}
.input--phone>input,.input>input.input--ltr{direction:ltr;text-align:right;font-variant-numeric:tabular-nums}
[dir="ltr"] .input--phone>input,[dir="ltr"] .input>input.input--ltr{text-align:left}
.input>input.mono{font-family:var(--font-mono);font-size:14px}
.input--pass{padding-inline-end:6px}
.input--pass>.icon-btn{--sz:40px;color:var(--muted)}
.fld__link{color:var(--gold-text);font-weight:700;font-size:var(--t-note);display:inline-flex;align-items:center;min-height:40px;margin-block:-10px}
/* option as a card (account type), two side by side */
.opt-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s-3);border:0;margin:0;padding:0;min-width:0}
.opt--card{position:relative;flex-direction:column;align-items:flex-start;gap:var(--s-4);padding:var(--s-5)}
.opt--card>.radio{position:absolute;top:var(--s-4);inset-inline-end:var(--s-4)}

/* ==========================================================================
   PHONE TAP TARGETS — every control is at least 40px tall below 768
   ========================================================================== */
@media (max-width:767px){
  :root{--h-chip:40px}
  .btn--sm{--h:40px}
  .icon-btn--sm{--sz:40px}
  .seg{height:48px}
  .seg__opt,.seg--sm .seg__opt{height:40px}
  .seg--sm{height:48px;padding:4px}
  .check,.radio{min-height:40px}
  .copy__btn{height:40px}
}

/* ---- 20-shell.css ---- */
/* 18.205.0 — the real shell's own pieces beyond the mockups: a locked menu item (identity pending), the sign-out button
   and language links drawn as rail items, the administrator's «view as» bar. */
.nav__item.is-locked{color:var(--muted)}
.nav__item.is-locked .nav__lock{margin-inline-start:auto;width:16px;height:16px}
button.nav__item{width:100%;border:0;background:none;font:inherit;cursor:pointer;text-align:start}
.rail__foot form{flex:1;min-width:0}
a.seg__opt{text-decoration:none}
.topbar__search input{min-width:0}
.app-view-as{display:flex;align-items:center;gap:var(--s-3);margin:var(--s-3) var(--margin) 0;padding:var(--s-3) var(--s-4);border-radius:var(--r-tile);background:var(--amber-soft);color:var(--amber);font-size:var(--t-label);font-weight:600}
.app-view-as span{flex:1;min-width:0}
.app-view-as button{min-height:36px;padding-inline:var(--s-4);border:1.5px solid currentColor;border-radius:var(--r-pill);background:none;color:inherit;font:inherit;cursor:pointer}
.content>.notice{margin-block-end:0}
.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.mtile>.ic{width:20px;height:20px;color:var(--muted)}
/* Overlays: console.js opens every sheet over one .scrim--top (75); an open side panel sits above it (76) and a confirm
   sheet above both (80), so a refund sheet can open over the payment panel. */
.panel.is-open{z-index:76}
.modal.is-open{z-index:80}
/* A Latin name in an Arabic row keeps its own direction, so a long one is cut at its end («Mohammed khamis…»),
   while it still sits on the row's start edge. */
.row__title,.dtable .c-main b{unicode-bidi:plaintext}
[dir="rtl"] .row__title{text-align:right}
.logo__mark{color:var(--logo-navy)}
.logo__name{color:var(--logo-navy);font-size:20px;font-weight:700;letter-spacing:-.2px;line-height:1}

/* ---- 30-sales.css ---- */
/* Sales pages (overview, payments, customers, customer, reports, search) — page layout only, like the mockups' group.css.
   Components live in 10-components. */

/* overview: the activation notice centres its action; the setup card's progress bar; the two bottom columns fill their row */
.cs-act{align-items:center}
.cs-setup-bar{padding:0 20px 8px}
.cs-col{display:flex;flex-direction:column}
.cs-fill{flex:1}
.cs-chart{display:flex;flex-direction:column}
.cs-chart>.fig{margin-bottom:24px}
.cs-chart__bars{margin-top:auto}

/* a table row opens its payment / customer: the link in the main cell covers the row */
.dtable tbody tr.cs-link{position:relative}
.cs-link .cell-main__t a{color:inherit;text-decoration:none}
.cs-link .cell-main__t a::after{content:"";position:absolute;inset:0}
.cs-link .cell-main__t a:focus-visible{outline:none}
.cs-link:has(a:focus-visible){outline:2px solid var(--gold);outline-offset:-2px}

/* customer page: identity block in the action bar (mockup group.css) */
.cust-head{display:flex;align-items:center;gap:16px;min-width:0}
.cust-head__t{display:flex;flex-direction:column;gap:2px;font-size:13px;line-height:20px;min-width:0}
.cust-head__t>.num{color:var(--ink);font-weight:600}

/* payment panel: the facts under the amount */
.cs-panel-kv{margin-top:12px}
.panel__label.cs-tl-label{margin-bottom:12px}

/* customer: «الأحدث» beside «الأقدم» */
.cs-older{gap:12px}

/* reports: the export menu without script (details), the chart head, the key's swatches, the share rows' end column */
details.menu-anchor>summary{list-style:none}
details.menu-anchor>summary::-webkit-details-marker{display:none}
.cs-wrap{flex-wrap:wrap}
.cs-sw-peak{background:var(--gold)}
.cs-sw-today{background:var(--gold-light)}
.cs-sw-day{background:color-mix(in srgb,var(--slate) 22%,var(--card))}
.cs-share-end{min-width:128px}
/* the report printed as a PDF: the page alone */
@media print{
  .route-sales_report .rail,.route-sales_report .topbar__end,.route-sales_report .tabbar,.route-sales_report .page-head,.route-sales_report .scrim{display:none!important}
  .route-sales_report .main{margin:0!important;padding:0!important}
}

/* shared-component override (reported to the lead): console.js opens every sheet over .scrim--top (z 75), which sits
   above .panel (z 70) and blocks it. An open panel rises over that scrim, and goes back under it while a confirm
   sheet (.modal--top, z 80) is open over the panel. */

/* ---- 40-money.css ---- */
/* Invoices & money (invoices, invoice, payment link, balance, statement, withdraw, destinations, held money) — page
   layout only, like the mockups' group.css. Components live in 10-components. */

/* statement / held money: the period's summary comes first on small screens, sticks at the end on wide ones */
.st-sum{order:-1}
@media (min-width:1280px){.st-sum{order:0;position:sticky;top:calc(var(--h-topbar) + 8px)}}

/* balance: an empty column's card fills its row beside the other one */
.bal-col{display:flex;flex-direction:column}
.bal-fill{flex:1}
.bal-fill--mid{display:grid;place-items:center}

/* forms and steps: the actions sit 24 under the fields (mockup inline margin) */
.wd-actions{margin-top:24px}
.dest-pick{margin-bottom:20px}
.dest-pill{display:block;margin-top:4px}

/* a pending invoice's «نسخ الرابط» stays above the row's link (30-sales .cs-link) */
.cs-link .row-act{position:relative;z-index:1}

/* the live withdrawal quote hides the exchange-rate line by its <dt>; its <dd> follows it */
.kv>dt[hidden]+dd{display:none}

/* QR plates drawn by app-ui.js ([data-qr]: an <img> or a <canvas>) fill the plate; a paused link's QR is dimmed; the
   phone's QR sheet centres its plate */
.qr>canvas{display:block;width:100%;height:auto}
.qr:empty{aspect-ratio:1}
.qr-col.is-off{opacity:.4}
.qr-sheet{display:flex;flex-direction:column;align-items:center;gap:12px}
.qr-sheet .qr{width:224px}

/* the payment link's on/off row is one button: the whole row toggles the link */
button.link-switch{width:100%;border:0;background:none;font:inherit;color:inherit;text-align:start;cursor:pointer}
button.link-switch .switch{pointer-events:none}

/* shared-component overrides (reported to the lead): a radio option chosen after load is marked like .opt.is-on */
.opt:has(input:checked){border-color:var(--gold);box-shadow:0 0 0 .5px var(--gold)}

/* withdraw: the live quote's refusal marks the amount field as invalid (.input.is-invalid) */
.fld:has(>#withdrawQuoteError:not([hidden]))>.input{border-color:var(--red);box-shadow:0 0 0 .6px var(--red)}

/* ---- 50-settings.css ---- */
/* Settings group (business, payment methods, developers, notifications, account) — page-only layout.
   Components live in 10-components.css; this is the mockups' pages/settings/group.css plus what the real pages add. */

/* plugin card (developers › الإضافات) */
.pcard{display:flex;flex-direction:column;gap:16px;height:100%}
.pcard:hover{border-color:var(--chevron)}
.pcard__top{display:flex;align-items:center;gap:14px;min-width:0}
.pcard__name{flex:1;min-width:0;font-size:var(--t-row);line-height:var(--lh-row);font-weight:700}
.pcard__reqs{display:flex;flex-wrap:wrap;gap:6px}
.pcard__foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px;border-top:1px solid var(--divider)}
.pcard__go{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:700;color:var(--gold-text)}
.tile__txt{font-size:13px;font-weight:800;letter-spacing:.02em;direction:ltr;line-height:1}

/* a chosen or published logo fills its square */
.logo-up__pic img{width:100%;height:100%;object-fit:cover}

/* the policies card's foot: the terms line at the start, «حفظ» at the end */
.cs-acts{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.cs-acts>.btn{margin-inline-start:auto}

/* notifications: the status chips keep their own width; «mark all as read» moves to the next line when they fill it */
.cs-head .page-head__start{flex:1 1 auto}

/* small spacing helpers of these pages (the mockups' inline styles) */
.cs-note{margin-bottom:24px}
.cs-mt{margin-top:24px}
.cs-pt0{padding-top:0}
.cs-m0{margin:0}
.cs-mb12{margin-bottom:12px}
.cs-center{text-align:center}
.cs-warn{color:var(--amber)}
.cs-grow{flex:1;display:flex}
.cs-grow .btn{flex:1}
.cs-status{margin-top:8px}
.cs-status.is-error{color:var(--red)}

/* payment methods: the minimum's amount reads as the line around it */
.cs-amt .amt{font-weight:400;color:inherit}

/* the filter sheet of the developer log: its selects at full width */
.cs-filter .fbar__sel{display:flex;width:100%}

/* «عرض كل الأجهزة» and the browser-notifications row fold open */
.cs-more{margin-top:12px}
.cs-more>summary{list-style:none;cursor:pointer;margin-inline:auto;display:flex;width:max-content}
.cs-more>summary::-webkit-details-marker,.cs-wp__on>summary::-webkit-details-marker{display:none}
.cs-more[open]>summary{margin-bottom:12px}
.cs-wp__on>summary{list-style:none;cursor:pointer}
.cs-wp__on[open]>summary .row__chev{transform:rotate(180deg)}
.cs-wp__on>.row{border-top:1px solid var(--divider)}
label.row{cursor:pointer}

/* identity check: the two photos, and the front camera inside the page (assets/identity-self.js) */
.sc-shot-pic{position:relative;overflow:hidden}
.sc-shot-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.sc-shot.is-done .sc-shot-pic{background:var(--green-soft)}
.sc-shot .sc-shot-act{flex:none;pointer-events:none}
.sc-live{display:flex;flex-direction:column;align-items:center;gap:16px}
.sc-live__cam{position:relative;width:min(100%,280px);aspect-ratio:3/4;border-radius:var(--r-card);overflow:hidden;background:var(--ink)}
.sc-live__cam video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.sc-live__oval{position:absolute;inset:12% 16%;border:2px solid var(--card);opacity:.85;border-radius:50%;pointer-events:none}
.sc-live__say{font-size:var(--t-note);line-height:var(--lh-note);color:var(--muted);text-align:center;margin:0}

/* shared fix (reported to the lead): console.js opens every sheet over a .scrim--top (z 75), so an open .panel / .modal
   (z 70) must sit above it */

/* ---- 55-support-api.css ---- */
/* Support messages and the developer guides (support_messages, support_thread, api/plugin, api/reference) — page-only
   layout. Components live in 10-components.css. */

/* «إرفاق ملف»: a file input inside a .btn--sec label (assets/support-chat.js writes the file's name, adds .has-file) */
.cs-attach{position:relative;max-width:min(100%,280px);min-width:0}
.cs-attach>input{position:absolute;opacity:0;width:1px;height:1px}
.cs-attach:focus-within{outline:2px solid var(--gold);outline-offset:2px}
.cs-attach__name{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.cs-attach.has-file{border-color:var(--gold-edge);color:var(--gold-text)}
@media (max-width:767px){.card__acts--split>.cs-attach{flex:1 1 0}.card__acts--split>.btn--main{flex:1 1 0}}

/* one conversation: the account's bubbles at the end side, the support team's at the start */
.cs-chat{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.cs-msg{display:flex;justify-content:flex-start;scroll-margin-bottom:24px}
.cs-msg.is-mine{justify-content:flex-end}
.cs-msg__bubble{max-width:min(520px,88%);min-width:0;display:flex;flex-direction:column;gap:6px;padding:12px 16px;
  background:var(--card);border:1px solid var(--edge);border-radius:var(--r-tile);border-start-start-radius:var(--r-xs)}
.cs-msg.is-mine .cs-msg__bubble{background:var(--gold-tint);border-color:var(--gold-edge);border-radius:var(--r-tile);border-start-end-radius:var(--r-xs)}
.cs-msg__who{font-size:var(--t-note);line-height:var(--lh-note);font-weight:700;color:var(--gold-text)}
.cs-msg.is-mine .cs-msg__who{color:var(--muted)}
.cs-msg__text{margin:0;font-size:var(--t-body);line-height:var(--lh-body);overflow-wrap:anywhere}
.cs-msg__photo{display:block;border-radius:var(--r-field);overflow:hidden;border:1px solid var(--edge)}
.cs-msg__photo img{display:block;max-width:100%;max-height:320px;object-fit:contain;background:var(--tile)}
.cs-msg__file{padding:10px 12px;background:var(--card)}
.cs-msg__time{font-size:var(--t-small);line-height:var(--lh-small);color:var(--muted)}

/* a plugin's guide: its head card (mark · name, description, requirements · download) */
.cs-plug{display:flex;align-items:flex-start;gap:16px}
.cs-plug__main{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.cs-plug__name{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.cs-plug__dl{flex:none}
.cs-plug__dl .num{opacity:.75}
@media (max-width:767px){.cs-plug{flex-wrap:wrap}.cs-plug__main{flex-basis:calc(100% - 64px)}.cs-plug__dl{width:100%;--h:var(--h-btn-lg)}}
/* the steps: each body stacks its lines, paths and fields */
.cs-step{gap:12px;padding-top:4px;flex:1}
.cs-step>p{font-size:var(--t-body);line-height:var(--lh-body);color:var(--muted)}
.cs-step .obj .btn{flex:none}
.cs-path{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.cs-path .ic{color:var(--chevron)}
.cs-path .pill{height:auto;min-height:24px;padding-block:2px;white-space:normal;overflow-wrap:anywhere;max-width:100%}
.cs-step .obj__t{white-space:normal;overflow-wrap:anywhere}
.cs-wrap{overflow-wrap:anywhere}
.cs-go{display:inline-flex;align-items:center;gap:4px;font-size:13px}
/* the connection checklist (assets/api.js adds .done): a done step is green, the current one gold, the rest dashed */
.cs-chk .cs-chk__dot{background:transparent;border:1.5px dashed var(--chevron);color:transparent}
.cs-chk .now .cs-chk__dot{border:0;background:var(--gold-soft)}
.cs-chk .done .cs-chk__dot{border:0;background:var(--green-soft);color:var(--green)}
.cs-chk .tl__i:not(.done):not(.now) .tl__t{color:var(--muted)}
.cs-golive li{align-items:flex-start}
.cs-golive .ic{flex:none;margin-top:3px;width:16px;height:16px;color:var(--gold-icon)}

/* a code block with its label and «نسخ» above it; the code scrolls inside itself */
.cs-code{min-width:0;border-radius:var(--r-field);background:var(--tile);overflow:hidden}
.cs-code__h{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;padding-inline:16px 4px;border-bottom:1px solid var(--divider)}
.cs-code__h .t-label{color:var(--muted)}
.cs-code .code{border-radius:0;max-height:480px}

/* the API reference: contents (side card ≥ 1280, chips below), call cards, fields */
.rf-toc{display:none}
@media (min-width:1280px){
  .rf-toc{display:block;position:sticky;top:calc(var(--h-topbar) + 8px);align-self:start;max-height:calc(100vh - var(--h-topbar) - 32px);overflow-y:auto}
  .rf-jump{display:none}
}
.rf-toc__list{list-style:none;margin:0;padding:0 8px 12px}
.rf-toc__list ul{list-style:none;margin:0 0 8px;padding:0}
.rf-toc__list a{display:block;padding:6px 12px;border-radius:var(--r-sm);font-size:13px;line-height:20px;color:var(--muted)}
.rf-toc__list a:hover{background:var(--hover);color:var(--ink)}
.rf-toc__list .rf-toc__g{font-weight:700;color:var(--ink)}
.rf-group,.rf-card{scroll-margin-top:calc(var(--h-topbar) + 16px)}
.rf-group{margin:8px 0 0}
.rf-ep{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-width:0}
.rf-ep>code{font-weight:700;overflow-wrap:anywhere}
.rf-head{display:flex;flex-direction:column;gap:6px}
.rf-head>p,.rf-card p{font-size:var(--t-body);line-height:var(--lh-body);color:var(--muted)}
.rf-c{font-family:var(--font-mono);font-size:12.5px;padding:1px 6px;border-radius:var(--r-xs);background:var(--tile);color:var(--ink);overflow-wrap:anywhere}
.rf-fields{margin:0;border-top:1px solid var(--divider)}
.rf-fields>div{display:grid;grid-template-columns:minmax(140px,32%) 1fr;gap:4px 16px;padding:12px 0;border-bottom:1px solid var(--divider)}
.rf-fields dt{display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px;min-width:0}
.rf-fields dd{margin:0;font-size:13.5px;line-height:21px;color:var(--ink);min-width:0;overflow-wrap:anywhere}
@media (max-width:767px){.rf-fields>div{grid-template-columns:1fr}}
.rf-fold>summary{list-style:none;cursor:pointer;width:max-content;margin-inline-start:-12px}
.rf-fold>summary::-webkit-details-marker{display:none}
.rf-fold[open]>summary{margin-bottom:8px}
.rf-fold[open]>summary .ic{transform:rotate(180deg)}

/* ---- 60-auth.css ---- */
/* 18.205.0 — the signed-out frame (views/console/auth_layout.php): what the real screens need beyond the mockups' markup.
   A form, a step or a card view is transparent to the card's 24px rhythm (display:contents); hidden ones stay hidden. */
.auth__card form,.auth__view{display:contents}
/* the country's calling code is a native select laid over the code button */
.input__cur{position:relative;flex:none;cursor:pointer}
.input__cur>select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px;border:0}
.input__cur:has(select:focus-visible){outline:2px solid var(--gold);outline-offset:2px}
/* six boxes over one real input (auth.js draws the digits); without scripts the input itself shows */
.otp{position:relative}
span.otp__box{display:grid;place-items:center}
.otp:not(.is-live)>.otp__box{display:none}
.otp__input{width:100%;height:60px;border:1px solid var(--field-edge);border-radius:var(--r-field);background:var(--field-bg);
  color:var(--ink);text-align:center;font-size:24px;font-weight:700;letter-spacing:.3em;font-variant-numeric:tabular-nums;outline:0}
.otp.is-live>.otp__input{position:absolute;inset:0;height:100%;opacity:0;border:0;color:transparent;caret-color:transparent;font-size:16px;letter-spacing:0;z-index:1}
/* a passkey's progress or refusal (passkeys.js writes the text) */
.notice.is-error{background:var(--red-soft)}
/* the account switch's links keep the .seg__opt row (icon beside the label; 20-shell grids a.seg__opt for the language) */
.auth__for a.seg__opt{display:inline-flex}

/* ---- 70-personal.css ---- */
/* 18.207 — a personal account's pages in the console (home, add money, transfer, transactions, points, fees, the balance
   market, USDT withdrawal) and the shell's own pieces they brought (the trade alert, the install card). Page layout only,
   like the mockups' group.css; components live in 10-components. */

/* the shell: the bell's dot never prints the count app-ui.js writes into it (shared-component override) */
.icon-btn__dot{font-size:0;overflow:hidden}
.toast-stack{display:flex;flex-direction:column;gap:8px}

/* the exchange trade alert: a gold notice that is a link (amber while it is this person's turn) */
a.notice{text-decoration:none;color:var(--ink);align-items:center}
.trade-strip>.ic{color:var(--gold-icon)}
.trade-strip.is-act{background:var(--amber-soft)}
.trade-strip.is-act>.ic{color:var(--amber)}
.trade-strip__time{font-weight:700;color:var(--amber)}
.trade-strip__go{flex:none;color:var(--chevron)}
.trade-pop__time{font-weight:700;color:var(--amber)}

/* the browser's «install Payunit» card (assets/pwa-install.js) as a floating toast above the tab bar */
.pwa-install{position:fixed;z-index:80;inset-inline:16px;bottom:24px;max-width:420px;margin-inline:auto;display:flex;flex-wrap:wrap;align-items:center;gap:12px;
  padding:12px 16px;border:1px solid var(--edge);border-radius:var(--r-tile);background:var(--card);box-shadow:var(--shadow-pop);opacity:0;transform:translateY(8px);transition:opacity var(--d-base),transform var(--d-base)}
.pwa-install.is-visible{opacity:1;transform:none}
.pwa-install[hidden]{display:none}
.pwa-install-icon{width:40px;height:40px;flex:none;border-radius:var(--r-chip);overflow:hidden;background:var(--tile)}
.pwa-install-icon img{width:100%;height:100%;display:block}
.pwa-install-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:var(--t-label);line-height:var(--lh-label)}
.pwa-install-copy small{font-size:var(--t-note);line-height:var(--lh-note);color:var(--muted)}
.pwa-install-actions{display:flex;align-items:center;gap:8px}
.pwa-install-primary{height:var(--h-btn-sm);padding-inline:14px;border:1.5px solid var(--ink);border-radius:var(--r-pill);background:transparent;color:var(--ink);font:inherit;font-weight:700;font-size:13px;cursor:pointer}
.pwa-install-close{width:36px;height:36px;border:0;border-radius:50%;background:none;color:var(--muted);font-size:20px;cursor:pointer}
.pwa-install-help{flex-basis:100%;font-size:var(--t-note);line-height:var(--lh-note);color:var(--muted)}
@media (max-width:767px){.pwa-install{bottom:calc(var(--h-tabbar) + 16px)}}

/* fields: the live line under a field (the transfer's recipient check) */
.fld__hint{font-size:var(--t-note);line-height:var(--lh-note);color:var(--muted);min-height:var(--lh-note)}
.fld__hint.is-error{color:var(--red);font-weight:600}
.fld__hint.is-ok{color:var(--green);font-weight:600}
.tr-ok{display:inline-flex;vertical-align:-2px;color:var(--gold-icon)}
.tr-ok[hidden]{display:none}
.p2p-fieldset{margin:0;padding:0;border:0;min-width:0}
.seg__opt:has(>input:checked){background:var(--seg-on);color:var(--ink);font-weight:700;box-shadow:0 1px 2px rgba(11,18,32,.08)}
label.seg__opt{cursor:pointer}
.seg__opt:has(>input:focus-visible){outline:2px solid var(--gold);outline-offset:2px}

/* home: the balance's money moves wrap; the held money and the points are links under the balance */
.ph-acts{flex-wrap:wrap}
@media (max-width:767px){.ph-acts{width:100%}.ph-acts .btn{flex:1 1 calc(50% - 6px)}}
.ph-stat{color:inherit;text-decoration:none;border-radius:8px}
.ph-stat:hover b{text-decoration:underline;text-underline-offset:3px}
.ph-stat .ic{color:var(--gold-text)}
.ph-unit{font-size:13px;font-weight:600;color:var(--muted)}

/* add money with a coin: the coin's mark sits in the middle of the address's QR */
.dep-qr{position:relative;width:200px;margin:8px auto 20px}
.dep-qr .qr{width:100%}
.dep-qr__mark{position:absolute;top:50%;left:50%;width:44px;height:44px;margin:-22px 0 0 -22px;display:grid;place-items:center;border-radius:50%;background:#fff;box-shadow:0 0 0 4px #fff}
.dep-qr__mark img{width:36px;height:36px}

/* points */
.rw-meter{width:min(320px,100%)}

/* the balance market */
.p2p-facts{display:flex;flex-wrap:wrap;align-items:center;gap:2px 0;white-space:normal}
.p2p-facts .ic{color:var(--gold-icon);vertical-align:-3px}
.p2p-rate{height:auto}
.p2p-profile{align-self:flex-start}
.p2p-receipt{display:block;border:1px solid var(--edge);border-radius:var(--r-field);overflow:hidden;background:var(--tile)}
.p2p-receipt img{display:block;width:100%;max-height:420px;object-fit:contain}
.p2p-upload{display:flex;align-items:center;justify-content:center;min-height:120px;padding:16px;border:1.5px dashed var(--field-edge);border-radius:var(--r-field);cursor:pointer;text-align:center}
.p2p-upload.is-over,.p2p-upload:hover{border-color:var(--gold)}
.p2p-upload.is-filled{border-style:solid}
.p2p-upload-empty{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:14px}
.p2p-upload-empty[hidden],.p2p-upload-preview[hidden]{display:none}
.p2p-upload-preview{display:flex;align-items:center;gap:14px;text-align:start;min-width:0}
.p2p-upload-preview img{width:72px;height:72px;object-fit:cover;border-radius:var(--r-chip);border:1px solid var(--edge)}
.p2p-upload-meta{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}
.p2p-chat{display:flex;flex-direction:column;gap:16px}
@media (min-width:1280px){.p2p-chat{position:sticky;top:calc(var(--h-topbar) + 8px)}}
.p2p-chat__list{max-height:360px;overflow:auto;padding-inline-end:4px}
.p2p-chat__list:empty{display:none}
.p2p-chat__form{display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.p2p-chat__form[hidden]{display:none}
.p2p-chat__form .input--area textarea{min-height:56px}
.cs-msg.is-system{justify-content:center}
.cs-msg.is-system .cs-msg__bubble{background:none;border:0;padding:0;text-align:center;color:var(--muted);font-size:var(--t-note)}
.p2p-method>summary{list-style:none;cursor:pointer}
.p2p-method>summary::-webkit-details-marker{display:none}
.p2p-method[open]>summary .row__chev{transform:rotate(180deg)}
.p2p-method__form{display:flex;flex-direction:column;gap:16px;padding:4px var(--pad,20px) 20px}
.p2p-method+.p2p-method{border-top:1px solid var(--divider)}
/* an option's second line sits under its title (shared-component override; the mockups set it inline) */
.opt__title,.opt__sub{display:block}
