/*
 * App shell (resources/views/layout.blade.php), redesign option C, 2026-10-05:
 * a calm white sidebar with labels on desktop; on phones and tablets
 * (≤960px) a slim top bar, a labelled bottom bar (الرئيسية · المخزون ·
 * بيع · العملاء · المزيد) and the full-screen «المزيد» sheet. One brand
 * colour (indigo), line icons, no green. Loaded after prmagly.css.
 *
 * For page authors: a fixed bar of your own on phones sits ABOVE the bottom
 * bar with `bottom: var(--shell-bottom)` (alias `--ux-bottom-nav-h`; both 0 in the app); add `@section('body_class',
 * 'has-sticky-bar')` so the help button steps aside.
 */
:root {
  --sh-indigo: #4f46e5;
  --sh-indigo-d: #3730a3;
  --sh-indigo-soft: #eeedfe;
  --sh-bg: #f5f6fb;
  --sh-card: #ffffff;
  --sh-ink: #1b1a33;
  --sh-sub: #5d5b78;
  --sh-line: #e7e7f2;
  --sh-amber-bg: #fffbeb;
  --sh-amber-line: #fcd34d;
  --sh-amber-ink: #78350f;
  --sh-red: #dc2626;
  --sh-red-bg: #fef2f2;
  --sh-red-line: #fca5a5;
  --sh-red-ink: #991b1b;
  --bbar-h: 64px;
  --shell-bottom: 0px;
  /* Same value under the name the POS sticky bar reads (bottom: var(--ux-bottom-nav-h, 0px)). */
  --ux-bottom-nav-h: 0px;
}

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

body { background: var(--sh-bg); }
.main { background: var(--sh-bg); }

/* ------------------------------------------------ desktop sidebar */
.sidebar {
  width: 252px; background: var(--sh-card); color: var(--sh-ink);
  border-inline-end: 1px solid var(--sh-line); box-shadow: none;
}
.brand { color: var(--sh-ink); border-bottom: 1px solid var(--sh-line); padding: 18px 18px 16px; font-size: 19px; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: #0f172a; padding: 2px; flex: none; }
.brand .tagline { color: var(--sh-sub); font-size: 13px; margin-top: 0; }
.nav-scroll { padding: 8px 10px 12px; scrollbar-color: #d4d3e6 transparent; }
.nav-scroll::-webkit-scrollbar-thumb { background: #d4d3e6; }
.nav-section-title {
  color: var(--sh-sub); font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none;
  padding: 14px 12px 6px;
}
.nav { gap: 2px; }
.nav a {
  color: #3d3b58; font-size: 15px; font-weight: 600; min-height: 44px; padding: 8px 10px; gap: 10px;
  border-radius: 12px; border-inline-start: 0;
}
.nav a:hover { background: var(--sh-bg); color: var(--sh-ink); }
.nav a.active { background: var(--sh-indigo-soft); color: var(--sh-indigo-d); font-weight: 800; border-inline-start: 0; }
.sidebar .nav-ic {
  width: 30px; height: 30px; border-radius: 9px; background: transparent !important; box-shadow: none !important;
  color: var(--sh-indigo); transform: none !important;
}
.sidebar .nav-ic svg { width: 21px; height: 21px; stroke: currentColor !important; color: inherit !important; }
.nav a.active .nav-ic { background: var(--sh-card) !important; }
.nav a .badge-hot {
  margin-inline-start: auto; background: var(--sh-red); color: #fff; font-size: 12px; font-weight: 800;
  padding: 1px 8px; border-radius: 999px; line-height: 1.6;
}
.side-foot { background: var(--sh-card); border-top: 1px solid var(--sh-line); padding: 12px 14px; font-size: 14px; }
.side-foot .foot-meta { gap: 8px; }
.side-foot a.lang-toggle {
  color: var(--sh-indigo-d); background: var(--sh-indigo-soft); min-height: 40px; padding: 0 12px; border-radius: 10px; font-weight: 700;
}
.side-foot a.lang-toggle:hover { background: #e2e0fb; color: var(--sh-indigo-d); }

/* Logout: a quiet button, then «متأكد؟» with the red action (sidebar + «المزيد»). */
.shell-logout-ask {
  width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--sh-card); color: var(--sh-red-ink); border: 1.5px solid var(--sh-red-line); border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
}
.shell-logout-ask:hover { background: var(--sh-red-bg); }
.shell-logout-ask[hidden], .shell-logout-confirm[hidden] { display: none; }
.shell-logout-confirm { background: var(--sh-red-bg); border: 1px solid var(--sh-red-line); border-radius: 12px; padding: 12px; }
.shell-logout-confirm p { margin: 0 0 10px; color: var(--sh-red-ink); font-weight: 700; font-size: 14.5px; }
.shell-logout-row { display: flex; gap: 8px; }
.shell-logout-row button { flex: 1; min-height: 44px; border-radius: 10px; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.shell-logout-yes { background: var(--sh-red); color: #fff; border: 0; }
.shell-logout-no { background: var(--sh-card); color: var(--sh-ink); border: 1.5px solid var(--sh-line); }
/* Sidebar logout (desktop): quiet, red text, full width. */
.side-foot .side-logout { margin: 0; }
.side-foot .side-logout button {
  min-height: 44px; background: var(--sh-card); color: var(--sh-red-ink); border: 1.5px solid var(--sh-red-line); border-radius: 12px;
  font-size: 15px; font-weight: 700;
}
.side-foot .side-logout button:hover { background: var(--sh-red-bg); color: var(--sh-red-ink); border-color: var(--sh-red-line); }

/* ------------------------------------------------ top bar */
.topbar {
  background: var(--sh-card); backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--sh-line); min-height: 60px; padding: 8px 24px; gap: 10px;
}
.tb-titles { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.topbar .page-title { font-size: 19px; color: var(--sh-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-shop { display: none; font-size: 12.5px; color: var(--sh-sub); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-logo { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; background: #fff; }
.topbar-badge.plan { background: var(--sh-amber-bg); color: var(--sh-amber-ink); border: 1px solid var(--sh-amber-line); }

.topbar-bell { position: relative; }
.topbar-bell > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 40px; height: 40px; padding: 0 8px; border-radius: 12px; border: 1px solid var(--sh-line);
  background: var(--sh-card); color: var(--sh-ink);
}
.topbar-bell > summary::-webkit-details-marker { display: none; }
.topbar-bell[open] > summary { border-color: var(--sh-indigo); color: var(--sh-indigo-d); }
.tb-count { background: var(--sh-red); color: #fff; font-size: 12px; font-weight: 800; padding: 0 7px; border-radius: 999px; line-height: 1.6; }
.tb-pop {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); width: 340px; max-height: 440px; overflow: auto;
  background: var(--sh-card); color: var(--sh-ink); border: 1px solid var(--sh-line); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(27, 26, 51, .18); z-index: 70; padding: 8px;
}
.tb-pop-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 6px 8px; border-bottom: 1px solid var(--sh-line); }
.tb-pop-head strong { font-size: 15px; }
.tb-pop-head form { margin: 0; }
.tb-pop-head button { background: none; border: 0; color: var(--sh-indigo-d); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 40px; padding: 0 6px; }
.tb-pop-row { display: flex; flex-direction: column; gap: 1px; padding: 10px 8px; border-bottom: 1px solid var(--sh-line); text-decoration: none; color: inherit; border-radius: 8px; }
.tb-pop-row.is-unread { background: var(--sh-indigo-soft); }
.tb-pop-row b { font-size: 14px; }
.tb-pop-row span { font-size: 14px; color: var(--sh-sub); }
.tb-pop-row small { font-size: 12.5px; color: var(--sh-sub); }
.tb-pop-empty { padding: 16px 8px; color: var(--sh-sub); font-size: 14px; }
.tb-pop-all { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--sh-indigo-d); text-decoration: none; }

/* Secret-login bar (platform admins). */
.shell-imp {
  position: sticky; top: 0; z-index: 60; background: var(--sh-indigo-d); color: #fff; padding: 8px 16px;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px;
}
.shell-imp-text { flex: 1; min-width: 200px; }
.shell-imp form { margin: 0; }
.shell-imp button { background: #fff; color: var(--sh-indigo-d); border: 0; border-radius: 10px; min-height: 40px; padding: 0 14px; font: inherit; font-weight: 800; cursor: pointer; }

/* ------------------------------------------------ renewal notice */
.shell-line {
  display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 0 0 14px; padding: 2px 4px 2px 14px;
  border-radius: 12px; border: 1px solid var(--sh-amber-line); background: var(--sh-amber-bg); color: var(--sh-amber-ink);
  font-size: 14.5px; font-weight: 700; line-height: 1.5;
}
[dir="rtl"] .shell-line { padding: 2px 14px 2px 4px; }
.shell-line[hidden] { display: none; }
.shell-line.is-expired, .shell-line.is-suspended { border-color: var(--sh-red-line); background: var(--sh-red-bg); color: var(--sh-red-ink); }
.shell-line-ic { flex: none; }
.shell-line-text { flex: 1; min-width: 0; }
.shell-line-go { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: inherit !important; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.shell-line-x { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: inherit; border-radius: 10px; cursor: pointer; }
.shell-line-x:hover { background: rgba(0, 0, 0, .05); }
.shell-renew { border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; line-height: 1.7; border: 1.5px solid var(--sh-amber-line); background: var(--sh-amber-bg); color: var(--sh-amber-ink); }
.shell-renew.is-expired, .shell-renew.is-suspended { border-color: var(--sh-red-line); background: var(--sh-red-bg); color: var(--sh-red-ink); }
.shell-renew strong { font-size: 15.5px; }
.shell-renew p { margin: 4px 0 0; font-size: 14.5px; }

/* Hub tab strip: real tap targets. */
.hub-tabs a { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }

/* ------------------------------------------------ bottom bar + «المزيد» (phones / tablets) */
.bbar, .more-sheet { display: none; }

@media (max-width: 960px) {
  :root { --shell-bottom: calc(var(--bbar-h) + env(safe-area-inset-bottom, 0px)); --ux-bottom-nav-h: var(--shell-bottom); }
  .sidebar { display: none !important; }
  .main { padding-bottom: calc(var(--shell-bottom) + 64px); min-height: 100vh; }

  .topbar { flex-wrap: nowrap; min-height: 56px; height: 56px; padding: 0 16px; gap: 8px; row-gap: 0; }
  .topbar .page-title { font-size: 17px; }
  .tb-shop { display: block; }
  .topbar .topbar-badge.store, .topbar .topbar-badge.plan, .topbar .topbar-badge.user, .topbar .topbar-wa { display: none !important; }
  .topbar-bell > summary { min-width: 44px; height: 44px; border-radius: 14px; }
  .tb-pop { position: fixed; top: 60px; inset-inline: 12px; width: auto; max-height: calc(100vh - 60px - var(--shell-bottom) - 12px); }

  .bbar {
    display: grid; grid-template-columns: repeat(var(--bbar-n, 5), minmax(0, 1fr)); align-items: end;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
    background: var(--sh-card); border-top: 1px solid var(--sh-line);
    padding: 4px 4px env(safe-area-inset-bottom, 0px); min-height: var(--shell-bottom);
    box-shadow: 0 -4px 16px rgba(27, 26, 51, .06);
  }
  .bbar-i {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 56px; padding: 2px 0 4px; border: 0; background: transparent; cursor: pointer;
    color: var(--sh-sub); font: inherit; font-size: 13px; font-weight: 700; text-decoration: none;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .bbar-ic { display: grid; place-items: center; width: 56px; height: 30px; border-radius: 999px; transition: background .2s ease; }
  .bbar-ic svg { width: 24px; height: 24px; }
  .bbar-t { line-height: 1.25; white-space: nowrap; }
  .bbar-i.is-on { color: var(--sh-indigo-d); }
  .bbar-i.is-on .bbar-ic { background: var(--sh-indigo-soft); }
  .bbar-i:focus-visible { outline: 2px solid var(--sh-indigo); outline-offset: -2px; border-radius: 12px; box-shadow: none; }
  /* «بيع»: the raised centre button. */
  .bbar-sell { color: var(--sh-indigo-d); }
  .bbar-sell .bbar-ic {
    width: 56px; height: 56px; border-radius: 18px; margin-top: -24px; background: var(--sh-indigo) !important; color: #fff;
    box-shadow: 0 6px 16px rgba(79, 70, 229, .4);
  }
  .bbar-sell .bbar-ic svg { width: 27px; height: 27px; }
  .bbar-sell.is-on .bbar-ic { background: var(--sh-indigo-d) !important; }

  .more-sheet:not([hidden]) {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 96;
    background: var(--sh-bg); color: var(--sh-ink); overflow-y: auto; overscroll-behavior: contain;
    animation: sh-sheet .22s cubic-bezier(.22, .8, .26, 1);
  }
  body.shell-sheet-open { overflow: hidden; }
}
@keyframes sh-sheet { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.more-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 56px; padding: env(safe-area-inset-top, 0px) 8px 0 16px; background: var(--sh-card); border-bottom: 1px solid var(--sh-line);
}
[dir="rtl"] .more-head { padding: env(safe-area-inset-top, 0px) 16px 0 8px; }
.more-head h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--sh-ink); }
.more-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--sh-bg); color: var(--sh-ink); cursor: pointer; }
.more-body { padding: 16px 16px calc(40px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 18px; }

.more-account { display: flex; align-items: center; gap: 12px; background: var(--sh-card); border: 1px solid var(--sh-line); border-radius: 16px; padding: 12px; }
.more-avatar { position: relative; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--sh-indigo-soft); color: var(--sh-indigo); display: grid; place-items: center; overflow: hidden; }
.more-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.more-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.more-who b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more-who small { font-size: 14px; color: var(--sh-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more-plan { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--sh-amber-bg); border: 1px solid var(--sh-amber-line); color: var(--sh-amber-ink) !important; font-weight: 700; font-size: 14px; text-decoration: none; max-width: 40%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.more-search { position: relative; }
.more-search svg { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); color: var(--sh-sub); pointer-events: none; }
.more-search input[type=search] {
  width: 100%; min-height: 48px; font-size: 16px; padding-block: 10px; padding-inline: 44px 14px;
  border: 1.5px solid var(--sh-line); border-radius: 14px; background: var(--sh-card); color: var(--sh-ink);
}
.more-search input[type=search]:focus { border-color: var(--sh-indigo); box-shadow: 0 0 0 3px rgba(79, 70, 229, .18); outline: none; }

.more-group[hidden], .more-tile[hidden], .more-none[hidden] { display: none !important; }
.more-group h3 { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--sh-sub); }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 560px) { .more-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.more-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px;
  min-height: 76px; padding: 10px 6px 8px; background: var(--sh-card); border: 1px solid var(--sh-line); border-radius: 16px;
  color: var(--sh-ink) !important; text-decoration: none; text-align: center; -webkit-tap-highlight-color: transparent;
}
.more-tile:active { background: var(--sh-indigo-soft); }
.more-tile.is-on { border-color: var(--sh-indigo); background: var(--sh-indigo-soft); }
.more-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--sh-indigo-soft); color: var(--sh-indigo); flex: none; }
.more-tile.is-on .more-ic { background: var(--sh-card); }
.more-ic svg { width: 21px; height: 21px; }
.more-t { font-size: 14px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.more-badge { position: absolute; top: 6px; inset-inline-end: 6px; background: var(--sh-red); color: #fff; font-size: 12px; font-weight: 800; padding: 0 7px; border-radius: 999px; line-height: 1.6; }
.more-none { margin: 0; text-align: center; color: var(--sh-sub); font-size: 15px; padding: 12px 0; }
.more-logout { margin: -8px 0 0; }
.more-logout .shell-logout-ask { min-height: 48px; }

/* ------------------------------------------------ inside the mobile app */
/* The app draws its own bars: no web sidebar, top bar, bottom bar or sheet. */
.is-app-embed { --shell-bottom: 0px; --ux-bottom-nav-h: 0px; }
.is-app-embed .bbar, .is-app-embed .more-sheet, .is-app-embed .topbar, .is-app-embed .sidebar { display: none !important; }
.is-app-embed .main { padding-bottom: 72px; }

@media print {
  .bbar, .more-sheet, .sidebar, .topbar, .shell-line { display: none !important; }
  .main { padding-bottom: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .more-sheet:not([hidden]) { animation: none; }
  .bbar-ic { transition: none; }
}

/* A tile that only shows when the page supports it (e.g. «اشرح لي الصفحة دي»). */
.more-tile[data-off] { display: none !important; }
button.more-tile { font: inherit; cursor: pointer; width: 100%; }

/* ------------------------------------------------ login (auth/login.blade.php) */
.lg-body .login-wrap { background: var(--sh-bg); padding: 16px; }
.lg-body .login-card { border-color: var(--sh-line); box-shadow: 0 10px 30px -12px rgba(27, 26, 51, .18); }
.lg-body .login-side { background: linear-gradient(160deg, #1e1b4b 0%, var(--sh-indigo-d) 100%); }
.lg-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: #0f172a; padding: 2px; flex: none; }
.lg-brand { font-weight: 900; font-size: 22px; letter-spacing: -0.01em; }
.lg-phone-brand { display: none; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--sh-ink); }
.lg-phone-brand .lg-logo { width: 40px; height: 40px; }
.lg-body .login-form h2 { font-size: 24px; margin-bottom: 8px; color: var(--sh-ink); }
.lg-form { display: flex; flex-direction: column; gap: 4px; }
.lg-field label.f { font-size: 15px; color: var(--sh-ink); margin: 12px 0 6px; }
.lg-form input[type=email], .lg-form input[type=password], .lg-form input[type=text] {
  min-height: 50px; font-size: 16px; border-radius: 12px; padding: 10px 14px;
}
.lg-form input[aria-invalid="true"] { border-color: var(--sh-red); }
.lg-form input::placeholder { color: #9b9ab3; }
.lg-pass { position: relative; }
.lg-eye {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px;
  display: grid; place-items: center; border: 0; background: transparent; color: var(--sh-sub); border-radius: 10px; cursor: pointer;
}
/* The password itself is LTR; the eye sits at the page's end side. */
[dir="rtl"] .lg-eye { left: 3px; }
[dir="rtl"] .lg-pass input { padding-left: 54px; }
[dir="ltr"] .lg-eye { right: 3px; }
[dir="ltr"] .lg-pass input { padding-right: 54px; }
.lg-eye:hover { color: var(--sh-indigo-d); background: var(--sh-bg); }
.lg-eye .lg-eye-off, .lg-eye.is-shown .lg-eye-on { display: none; }
.lg-eye.is-shown .lg-eye-off { display: block; }
.lg-err { margin: 6px 0 0; color: var(--sh-red-ink); font-size: 14px; font-weight: 700; }
.lg-err[hidden] { display: none; }
.lg-remember { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--sh-ink); cursor: pointer; }
.lg-remember input { width: 22px; height: 22px; accent-color: var(--sh-indigo); flex: none; margin: 0; }
.lg-submit { width: 100%; min-height: 52px; font-size: 17px; font-weight: 800; border-radius: 14px; margin-top: 4px; }
.lg-submit[disabled] { opacity: .7; cursor: wait; }
.lg-links { margin-top: 10px; }
.lg-links a, .lg-foot a, .lg-signup a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--sh-indigo-d); }
.lg-signup { margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--sh-indigo-soft); color: var(--sh-ink); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.lg-signup a { min-height: 0; text-decoration: underline; text-underline-offset: 3px; }
.lg-secondary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sh-line); }
.lg-sec-btn {
  flex: 1 1 160px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px;
  border: 1.5px solid var(--sh-line); border-radius: 12px; background: var(--sh-card); color: var(--sh-ink) !important;
  font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.lg-sec-btn[hidden] { display: none; }
.lg-sec-btn:hover { border-color: var(--sh-indigo); color: var(--sh-indigo-d) !important; }
.lg-foot { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 14px; }
@media (max-width: 960px) {
  .lg-phone-brand { display: flex; }
  .lg-body .login-wrap { place-items: start center; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .lg-body .login-form { padding: 24px 18px; }
  .lg-body .login-card { border-radius: 20px; }
}

/* The plan name can be long ("الباقة الأعلى (999 ج.م)"): its own full-width row. */
.more-account { flex-wrap: wrap; }
.more-plan { flex: 1 1 100%; max-width: none; white-space: normal; justify-content: center; text-align: center; }
.tb-shop { font-size: 13px; }

/* ------------------------------------------------ page floating buttons */
/* Pages' own «+ جديد» / «+ منتج» buttons sit just above the bottom bar (never on
   it, never at the screen edge where the phone's own navigation bar is) and
   under the «المزيد» sheet. */
@media (max-width: 960px) {
  .ux-fab, .stk-actions .stk-fab {
    bottom: calc(var(--shell-bottom, 0px) + 12px) !important;
    z-index: 80 !important;
  }
  .ux-fab-spacer { height: calc(80px + var(--shell-bottom, 0px)) !important; }
  body:has(.more-sheet:not([hidden])) .ux-fab,
  body:has(.more-sheet:not([hidden])) .stk-fab { display: none !important; }
}
