/* [المنصة] شكل لوحة تحكم المنصة — مبني على نفس ألوان وعناصر السيستم (admin.css + gs-pages.css) */

/* ---------------- الدخول: خلفية سودا جريديانت مع الأحمر */
body.gs-platform.gs-no-side {
    background:
        radial-gradient(900px 520px at 85% -10%, rgba(213, 60, 65, .38), transparent 60%),
        radial-gradient(700px 480px at -10% 110%, rgba(213, 60, 65, .22), transparent 60%),
        linear-gradient(160deg, #1d1d1f 0%, #0b0b0c 55%, #050505 100%) fixed;
    min-height: 100vh;
}
.gs-platform.gs-no-side .gs-main { background: transparent; }
.gs-platform.gs-no-side .gs-topbar { background: transparent !important; box-shadow: none !important; border: 0 !important; }
.gs-platform.gs-no-side .gs-title { visibility: hidden; }
.gs-platform.gs-no-side .gs-lang { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
.gs-platform.gs-no-side .gs-lang-btn:not(.is-on) { color: #d9dbe0 !important; }
.gs-platform.gs-no-side .gs-clock { color: #9ea3ab; }
.gs-platform.gs-no-side .gs-footer, .gs-platform.gs-no-side .gs-footer p { color: #8b9098; background: transparent; border-color: rgba(255, 255, 255, .08); }
.pf-auth { min-height: calc(100vh - 170px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 10px 0 30px; }
.pf-auth.is-inline { min-height: 0; display: block; }
.pf-auth.is-inline .pf-auth-card { margin: 0; box-shadow: var(--gs-shadow-sm, 0 1px 2px rgba(16, 24, 40, .06)); }
.pf-auth-top { height: 56px; max-width: 240px; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(213, 60, 65, .35)); animation: pfUp .5s cubic-bezier(.2, .8, .2, 1) both; }
.pf-auth-card { position: relative; width: 100%; max-width: 420px; background: #fff; border: 1px solid rgba(255, 255, 255, .6); border-radius: 22px; padding: 30px 28px 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(213, 60, 65, .08); animation: pfUp .45s .05s cubic-bezier(.2, .8, .2, 1) both; overflow: hidden; }
.pf-auth-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #d53c41, #ff7a7e 50%, #d53c41); }
.pf-auth.is-inline .pf-auth-card::before { display: none; }
@keyframes pfUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pf-auth-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .3px; color: var(--gs-red); background: var(--gs-red-soft); border-radius: 99px; padding: 5px 12px; margin-bottom: 14px; }
.pf-auth-title { font-size: 22px; font-weight: 800; margin: 0 0 18px; color: var(--gs-text); }
.pf-auth-card label { font-weight: 700; font-size: 13px; color: #3a404a; }
.pf-auth-card .form-control { height: 48px; border-radius: 12px; font-size: 15px; }
.pf-auth-btn { height: 50px; border-radius: 12px; font-weight: 800; font-size: 15px; margin-top: 6px; background: linear-gradient(135deg, #e0474c, #b52f34) !important; border: 0 !important; box-shadow: 0 12px 26px rgba(213, 60, 65, .35); }
.pf-auth-btn:hover { filter: brightness(1.05); }
.pf-auth-link { display: block; text-align: center; margin-top: 16px; font-weight: 700; font-size: 13.5px; color: var(--gs-muted) !important; }
.pf-auth-link:hover { color: var(--gs-red) !important; text-decoration: none; }
.pf-auth-err { min-height: 20px; color: #b3262b; font-weight: 700; font-size: 13px; margin: 4px 0 0; }
.pf-auth-ok, .pf-auth-bad, .pf-auth-note { border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 13.5px; margin-bottom: 14px; display: flex; gap: 10px; align-items: flex-start; }
.pf-auth-ok { background: #e9f7ef; color: #11683a; }
.pf-auth-bad { background: var(--gs-red-soft); color: #b3262b; }
.pf-auth-note { background: #fff5e6; color: #8a5300; }
.pf-pass { position: relative; }
.pf-pass .form-control { padding-inline-end: 44px; }
/* [عربي] الحقل نفسه dir=ltr فالـ padding المنطقي بيتحسب على اتجاهه هو (يمين) والعين في الشمال — نحط المسافة ناحية العين */
html[dir="rtl"] .pf-pass .form-control[dir="ltr"] { padding-inline-end: .75rem; padding-inline-start: 44px; }
html[dir="ltr"] .pf-pass .form-control[dir="rtl"] { padding-inline-end: .75rem; padding-inline-start: 44px; }
.pf-eye { position: absolute; top: 0; bottom: 0; inset-inline-end: 4px; width: 38px; border: 0; background: transparent; color: var(--gs-muted); border-radius: 10px; }
.pf-eye:hover { color: var(--gs-text); }

/* ---------------- عناصر عامة */
.pf-muted { color: var(--gs-muted); font-size: 12.5px; }
.pf-btn { height: 40px; border-radius: 12px; font-weight: 700; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; }
.gs-platform .btn-light { border-radius: 10px; font-weight: 700; border: 1px solid var(--gs-border); background: #fff; }
.gs-platform .btn-light:hover { background: #f4f4f5; }
.gs-platform .btn-sm { height: 32px; padding: 0 10px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.pf-alert { border-radius: 12px; padding: 12px 14px; font-weight: 600; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.pf-alert.is-warn { background: #fff5e6; color: #8a5300; border: 1px solid #fde2b8; }
.pf-search { position: relative; }
.pf-search .fa { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 12px; color: var(--gs-muted); }
.pf-search input { height: 40px; border-radius: 12px; border: 1px solid var(--gs-border-strong); padding-inline-start: 36px; padding-inline-end: 12px; width: 240px; max-width: 100%; font-weight: 600; background: #fff; }
.pf-search.is-lg input { width: 340px; height: 44px; }
.pf-search input:focus { outline: 0; border-color: var(--gs-red); box-shadow: 0 0 0 3px var(--gs-accent-ring); }
.pf-narrow { max-width: 720px; }
.pf-form-sec { font-size: 13px; font-weight: 800; color: #3a404a; text-transform: uppercase; letter-spacing: .4px; margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid #f0f1f3; }
.pf-form-sec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.gs-platform .modal-body label { font-weight: 700; font-size: 13px; color: #3a404a; }
.gs-platform .form-control { border-radius: 10px; }
.pf-sub { display: block; color: var(--gs-muted); font-size: 12px; font-weight: 600; }
.pf-limit { font-weight: 800; font-variant-numeric: tabular-nums; }
.pf-limit small { color: var(--gs-muted); font-weight: 700; }
.pf-limit.is-full { color: #b76e00; }
.pf-limit.is-over { color: #b3262b; }
.pf-empty { text-align: center; color: var(--gs-muted); padding: 26px !important; font-weight: 600; }

/* سويتشات */
.pf-switches { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 4px 0 16px; }
.gs-admin .pf-switch { display: inline-flex !important; align-items: center; gap: 10px; font-weight: 700; font-size: 13.5px; cursor: pointer; margin: 0; user-select: none; }
.pf-switch input { position: absolute; opacity: 0; pointer-events: none; }
.pf-switch span { display: inline-block; width: 40px; height: 22px; border-radius: 99px; background: #d4d7dd; position: relative; transition: background .2s ease; flex: 0 0 auto; }
.pf-switch span::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.pf-switch input:checked + span { background: var(--gs-red); }
.pf-switch input:checked + span::after { transform: translateX(18px); }
html[dir="rtl"] .pf-switch input:checked + span::after { transform: translateX(-18px); }
.pf-switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--gs-accent-ring); }
.gs-admin .pf-check { display: flex !important; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-weight: 600; margin: 0; }
.pf-check:hover { background: #f6f7f8; }
.pf-check input { width: 18px; height: 18px; accent-color: var(--gs-red); }

/* الجداول */
.pf-table-wrap { overflow-x: auto; border: 1px solid var(--gs-border); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.pf-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pf-table th { background: #fafafa; color: #2a2f37; font-weight: 800; font-size: 12.5px; padding: 11px 14px; white-space: nowrap; border-bottom: 1px solid var(--gs-border); text-align: start; }
.pf-table td { padding: 11px 14px; border-bottom: 1px solid #f0f1f3; vertical-align: middle; font-weight: 600; color: #1d2127; }
.pf-table tbody tr:last-child td { border-bottom: 0; }
.pf-table tbody tr:hover td { background: #fff6f6; }
.pf-table tr.is-off td { color: #9aa0aa; }
.pf-table code { background: #f3f4f6; padding: 2px 7px; border-radius: 6px; color: #1d2127; font-size: 12.5px; }
.pf-actions { white-space: nowrap; text-align: end; }
.pf-actions .btn + .btn { margin-inline-start: 6px; }
.pf-gym-cell a { display: inline-flex; align-items: center; gap: 10px; }
.pf-gym-cell img, .pf-gym-mark { width: 32px; height: 32px; border-radius: 9px; object-fit: contain; background: #141414; padding: 3px; flex: 0 0 auto; }
.pf-gym-mark { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.pf-domain span { display: block; font-weight: 700; }
.pf-domain small { color: var(--gs-muted); }
.pf-details { max-width: 420px; white-space: normal; word-break: break-word; font-size: 12.5px; color: #4b5260 !important; }
.pf-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; font-weight: 700; }

/* ---------------- كروت الجيمات */
.pf-gym-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pf-gym-card { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--gs-border); border-radius: 18px; padding: 18px; color: inherit !important; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; animation: pfUp .4s ease both; }
.pf-gym-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(16, 24, 40, .10); border-color: rgba(213, 60, 65, .4); }
.pf-gym-top { display: flex; align-items: center; gap: 12px; }
.pf-gym-top img, .pf-gym-top .pf-gym-mark { width: 48px; height: 48px; border-radius: 14px; object-fit: contain; background: #141414; padding: 5px; flex: 0 0 auto; }
.pf-gym-top .pf-gym-mark { font-size: 20px; }
.pf-gym-id { min-width: 0; display: flex; flex-direction: column; }
.pf-gym-id b { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-gym-id span { font-size: 12.5px; color: var(--gs-muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-gym-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: #f8f9fa; border-radius: 12px; padding: 10px 12px; }
.pf-gym-stats small { display: block; font-size: 11.5px; color: var(--gs-muted); font-weight: 700; }
.pf-gym-stats code { background: transparent; padding: 0; font-weight: 800; color: #1d2127; }
.pf-gym-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 22px; }

/* ---------------- رأس شاشة الجيم */
.pf-gym-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.pf-gym-logo { flex: 0 0 auto; display: inline-flex; }
.pf-gym-logo img, .pf-gym-mono { width: 52px; height: 52px; border-radius: 14px; object-fit: contain; background: #141414; padding: 6px; box-shadow: 0 6px 16px rgba(16, 24, 40, .12); }
.pf-gym-mono { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 22px; }
.pf-gym-head .pf-gym-id b { font-size: 20px; display: flex; align-items: center; gap: 6px; min-width: 0; color: #111827; }
.pf-gym-head #pfHeadName { font-size: inherit; font-weight: 800; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; display: block; }
.pf-gym-head #pfHeadDomain { font-size: 13px; font-weight: 600; color: var(--gs-muted); margin-top: 2px; }
[dir=rtl] .pf-gym-head #pfHeadDomain { text-align: right; }
.pf-head-links { margin-inline-start: auto; }
.pf-tabs { margin-bottom: 16px; }
.pf-tabs button .fa { margin-inline-end: 4px; }
.pf-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pf-cols.is-look { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.pf-cols > .gs-panel { margin-bottom: 0; }

/* حقول الصور */
.pf-img-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.pf-img-field label { font-weight: 700; font-size: 13px; color: #3a404a; margin-bottom: 6px; }
.pf-img-box { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--gs-border); border-radius: 14px; background: #fafbfc; }
.pf-img-prev { width: 64px; height: 64px; border-radius: 12px; border: 1px dashed var(--gs-border-strong); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; background: #fff; color: #b9bcc2; overflow: hidden; padding: 6px; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.pf-img-prev:hover { border-color: var(--gs-accent, #d53c41); transform: translateY(-1px); }
.pf-img-prev .fa { font-size: 18px; }
.pf-img-field.is-dark .pf-img-prev { background: #141414; border-style: solid; border-color: #141414; }
.pf-img-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pf-img-info { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.pf-img-name { font-size: 12px; color: #5b616b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: start; }
.pf-img-field.is-empty .pf-img-name { color: #a0a4ab; }
.pf-img-btns { display: flex; gap: 6px; }
.pf-img-btns .btn { border-radius: 9px; font-weight: 700; }
.pf-color { display: flex; gap: 8px; }
.pf-color input[type=color] { width: 46px; height: 38px; border: 1px solid var(--gs-border-strong); border-radius: 10px; padding: 3px; background: #fff; flex: 0 0 auto; }

/* المعاينة */
.pf-preview-panel { position: sticky; top: calc(var(--gs-top-h) + 16px); }

/* المحتوى */
.pf-content-panel .gs-select-wrap.is-wide select { min-width: 300px; }
.pf-content-panel .CodeMirror { height: calc(100vh - 330px); min-height: 380px; border-radius: 12px; font-size: 13px; direction: ltr; text-align: left; }
.pf-content-panel.is-full { position: fixed; inset: 0; z-index: 1040; border-radius: 0; margin: 0; overflow: auto; }
.pf-content-panel.is-full .CodeMirror { height: calc(100vh - 150px); }
.pf-no-scroll { overflow: hidden; }
.pf-placeholders { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 12.5px; font-weight: 700; color: var(--gs-muted); }
.pf-placeholders span { margin-inline-end: 4px; }
.pf-placeholders span:not(:first-child) { margin-inline-start: 10px; }
.pf-chip { border: 1px solid var(--gs-border); background: #fff; border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 700; color: #1d2127; direction: ltr; font-family: Consolas, monospace; }
button.pf-chip:hover { border-color: var(--gs-red); color: var(--gs-red); }
.pf-chip.is-id { background: #f3f4f6; }
.pf-dirty { color: #b76e00; font-weight: 800; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.pf-dirty .fa { font-size: 8px; }
.pf-preview-modal { position: fixed; inset: 0; z-index: 1060; background: rgba(15, 17, 20, .75); display: flex; flex-direction: column; padding: 18px; animation: pfUp .25s ease both; }
.pf-preview-bar { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px 14px 0 0; padding: 10px 14px; }
.pf-preview-bar b { margin-inline-end: auto; }
.pf-preview-body { flex: 1; background: #e9ebee; border-radius: 0 0 14px 14px; display: flex; justify-content: center; overflow: auto; }
.pf-preview-body iframe { width: 100%; height: 100%; border: 0; background: #fff; transition: width .25s ease; }

/* أدوار */
.pf-role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pf-role-card { background: #fff; border: 1px solid var(--gs-border); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pf-role-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pf-role-head b { font-size: 16px; font-weight: 800; }
.pf-role-perms { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-role-actions { display: flex; gap: 6px; margin-top: auto; }
.pf-perms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pf-perm-group { border: 1px solid var(--gs-border); border-radius: 12px; padding: 10px; }
.pf-perm-group h6 { font-weight: 800; font-size: 12.5px; text-transform: uppercase; color: var(--gs-muted); margin: 2px 10px 6px; }

/* الباسورد اللي بيظهر مرة واحدة */
.pf-secret { background: #141414; color: #fff; border-radius: 12px; padding: 14px; direction: ltr; }
.pf-secret code { color: #fff; background: transparent; font-size: 22px; letter-spacing: 1.5px; font-weight: 700; }
.pf-toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); opacity: 0; z-index: 2000; background: #141414; color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 700; box-shadow: 0 14px 30px rgba(0, 0, 0, .25); transition: all .25s ease; }
.pf-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.pf-toast .fa { color: #4ade80; margin-inline-end: 6px; }

@media (max-width: 991.98px) {
    .pf-cols, .pf-cols.is-look { grid-template-columns: minmax(0, 1fr); }
    .pf-preview-panel { position: static; }
}
@media (max-width: 767.98px) {
    .pf-table-wrap:has(.gs-cards) { border: 0; overflow: visible; }
    .gs-admin table.pf-table.gs-cards > tbody > tr:hover > td { background: transparent; }
    .gs-admin table.pf-table.gs-cards td.gs-td-actions .btn { flex: 1 1 0; height: 38px; margin: 0 !important; }
    .gs-admin table.pf-table.gs-cards > tbody > tr.is-off { opacity: .7; }
    .pf-gym-cell a { gap: 8px; }
    .pf-auth-top { height: 44px; }
    .pf-auth-card { padding: 24px 18px; border-radius: 18px; }
    .pf-img-fields { grid-template-columns: minmax(0, 1fr); }
    .pf-search input, .pf-search.is-lg input { width: 100%; }
    .pf-search { flex: 1 1 100%; }
    .pf-head-links { margin-inline-start: 0; width: 100%; }
    .pf-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .pf-tabs button { flex: 0 0 auto; }
    .pf-content-panel .gs-select-wrap.is-wide select { min-width: 0; width: 100%; }
    .pf-content-panel .gs-panel-head > .gs-select-wrap { width: 100%; }
    .pf-content-panel .CodeMirror { height: 60vh; }
    .pf-gym-grid { grid-template-columns: minmax(0, 1fr); }
    .pf-preview-modal { padding: 0; }
}
html:has(body.gs-platform.gs-no-side) { background: #050505; }

/* ---------------- المسافات بين البانلز */
.gs-platform .gs-content > .gs-panel, .gs-platform .pf-tab > .gs-panel, .gs-platform .gs-dash > .gs-panel { margin-bottom: 20px; }
.gs-platform .gs-panel { padding: 20px 22px; }
.gs-platform .gs-panel-head { margin-bottom: 16px; gap: 12px 16px; }
.gs-platform .gs-toolbar { margin-bottom: 20px; }
.gs-platform .gs-kpis { margin-bottom: 20px; }
/* [زوار الموقع] 5 كروت في صف واحد على الشاشات الكبيرة */
@media (min-width: 992px) { .gs-platform #pvKpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.gs-platform #pvKpis .gs-kpi-val small { font-size: 14px; font-weight: 700; opacity: .6; }
.pf-cols { gap: 20px; }
.pf-gym-grid, .pf-role-grid { gap: 18px; }
.pf-perms { gap: 14px; }
.pf-perm-group { padding: 12px 12px 8px; background: #fcfcfd; }
.pf-intro { color: var(--gs-muted); font-weight: 600; font-size: 13.5px; margin: 0 0 14px; }
.pf-tabs { margin-bottom: 20px !important; }
.gs-platform .modal-body { padding: 18px 22px; }
.gs-platform .modal-body .form-group { margin-bottom: 14px; }
.gs-platform .modal-body .form-row > .form-group { margin-bottom: 14px; }
.pf-img-fields { gap: 16px 18px; }
.pf-switches { margin: 6px 0 18px; }

/* ---------------- الترقيم */
.pf-pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-top: 16px; font-size: 13px; color: var(--gs-muted); font-weight: 600; }
.pf-pager[hidden] { display: none; }
.pf-pager.is-float { background: #fff; border: 1px solid var(--gs-border); border-radius: 14px; padding: 10px 14px; margin-top: 18px; }
.pf-pager-info b { color: var(--gs-text); font-variant-numeric: tabular-nums; }
.pf-pager-pages { display: flex; align-items: center; gap: 4px; }
.pf-pg { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--gs-border); background: #fff; font-weight: 700; color: #3a404a; font-variant-numeric: tabular-nums; transition: all .15s ease; }
.pf-pg:hover:not([disabled]):not(.is-on) { border-color: var(--gs-red); color: var(--gs-red); }
.pf-pg.is-on { background: #141414; border-color: #141414; color: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .16); }
.pf-pg[disabled] { opacity: .4; cursor: not-allowed; }
.pf-pg-gap { padding: 0 4px; color: #9aa0aa; }
.gs-admin .pf-pager-size { display: inline-flex !important; align-items: center; gap: 8px; margin: 0; font-weight: 700; color: var(--gs-muted); }
.pf-pager-size select { height: 36px; border-radius: 10px; border: 1px solid var(--gs-border); padding: 0 10px; font-weight: 700; background: #fff; }
.is-loading { opacity: .55; transition: opacity .15s ease; pointer-events: none; }

/* ---------------- كروت الجيمات */
.pf-gym-card { position: relative; overflow: hidden; }
.pf-gym-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #d53c41, #ff7a7e); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
html[dir="rtl"] .pf-gym-card::before { transform-origin: right; }
.pf-gym-card:hover::before { transform: scaleX(1); }
.pf-gym-go { margin-inline-start: auto; color: #b9bcc2; font-size: 20px; transition: transform .2s ease, color .2s ease; }
.pf-gym-card:hover .pf-gym-go { color: var(--gs-red); transform: translateX(3px); }
html[dir="rtl"] .pf-gym-card:hover .pf-gym-go { transform: translateX(-3px) scaleX(-1); }
.pf-gym-top img, .pf-gym-top .pf-gym-mark { box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }
.pf-gym-stats > div { min-width: 0; }

/* ---------------- كروت الموبايل (الجداول) */
@media (max-width: 767.98px) {
    .gs-platform .gs-panel { padding: 16px 14px; border-radius: 18px; }
    .gs-platform .gs-panel-head { flex-direction: column; align-items: stretch; }
    .gs-platform .gs-panel-tools { flex-wrap: wrap; width: 100%; }
    .gs-platform .gs-panel-tools .pf-search { flex: 1 1 100%; }
    .gs-platform .gs-panel-tools .pf-btn { flex: 1 1 auto; justify-content: center; }
    .gs-admin table.pf-table.gs-cards > tbody > tr:not(.child) { border-radius: 16px; padding: 14px 14px 12px; box-shadow: 0 6px 18px rgba(16, 24, 40, .06); margin-bottom: 12px; }
    .gs-admin table.pf-table.gs-cards > tbody > tr > td.gs-td-title { font-size: 15px; }
    .gs-admin table.pf-table.gs-cards > tbody > tr > td.gs-td-title .pf-sub { display: inline; margin-inline-start: 8px; }
    .gs-admin table.pf-table.gs-cards .pf-gym-cell img, .gs-admin table.pf-table.gs-cards .pf-gym-mark { width: 36px; height: 36px; }
    .pf-pager { justify-content: center; }
    .pf-pager-info { width: 100%; text-align: center; }
    .gs-platform .gs-toolbar .pf-btn { width: 100%; justify-content: center; }
    .gs-platform .gs-toolbar-end { width: 100%; margin: 0; }
}

/* ================================================================ ملفات AWS */
.pf-files { position: relative; }
.pf-files-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pf-files-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pf-files-tools .gs-select-wrap .fa { position: absolute; inset-inline-start: 12px; color: #9aa0a8; pointer-events: none; }
.pf-files-tools select { height: 38px; border-radius: 10px; border: 1px solid var(--gs-border-strong); background: #fff; padding-inline: 34px 12px; font-weight: 600; max-width: 230px; }
.pf-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-weight: 700; }
.pf-crumbs button { border: 0; background: transparent; padding: 6px 8px; border-radius: 8px; color: #3a404a; font-weight: 700; }
.pf-crumbs button:hover { background: #f1f2f4; }
.pf-crumbs button:last-of-type { color: var(--gs-accent, #d53c41); }
.pf-crumbs > .fa { color: #b3b7bd; }
.pf-folders { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pf-folder { border: 1px solid var(--gs-border); background: #fff; border-radius: 12px; padding: 9px 14px; font-weight: 700; color: #3a404a; display: inline-flex; align-items: center; gap: 8px; transition: all .15s ease; }
.pf-folder .fa { color: #f0b429; font-size: 16px; }
.pf-folder:hover { border-color: #f0b429; box-shadow: 0 6px 16px rgba(0,0,0,.06); transform: translateY(-1px); }
.pf-file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; min-height: 120px; }
.pf-file-grid > .gs-empty, .pf-file-grid > .pf-alert { grid-column: 1 / -1; }
.pf-file { background: #fff; border: 1px solid var(--gs-border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; animation: pfIn .3s ease both; transition: box-shadow .15s ease, transform .15s ease; }
.pf-file:hover { box-shadow: 0 10px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
@keyframes pfIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pf-file-thumb { height: 130px; display: flex; align-items: center; justify-content: center; position: relative; color: #b9bcc2; font-size: 34px;
    background-color: #f4f5f7; background-image: linear-gradient(45deg, #eceef1 25%, transparent 25%), linear-gradient(-45deg, #eceef1 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eceef1 75%), linear-gradient(-45deg, transparent 75%, #eceef1 75%);
    background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.pf-file-thumb img, .pf-file-thumb video { max-width: 100%; max-height: 100%; object-fit: contain; padding: 10px; }
.pf-file-thumb video { padding: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-file-play { position: absolute; color: #fff; font-size: 36px; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.pf-file-body { padding: 10px 12px 4px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pf-file-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: start; }
.pf-file-meta { font-size: 11.5px; color: #8a9099; }
.pf-file-used { display: flex; flex-wrap: wrap; gap: 4px; }
.pf-file-used .gs-pill { font-size: 10.5px; padding: 2px 8px; }
.pf-file-actions { display: flex; gap: 6px; padding: 8px 12px 12px; margin-top: auto; }
.pf-file-actions .btn { border-radius: 9px; }
.pf-file-actions .pff-pick { flex: 1 1 auto; font-weight: 700; }
.pf-file-actions .pff-del:not(:disabled):hover { color: #d53c41; }
.pf-drop { position: absolute; inset: 0; z-index: 5; border: 2px dashed var(--gs-accent, #d53c41); border-radius: 16px; background: rgba(255,255,255,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--gs-accent, #d53c41); pointer-events: none; }
.pf-drop[hidden] { display: none; }
.pf-drop .fa { font-size: 42px; }
.pf-upbar { position: relative; height: 34px; border-radius: 10px; background: #f1f2f4; overflow: hidden; margin-bottom: 14px; }
.pf-upbar[hidden] { display: none; }
.pf-upbar-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: linear-gradient(90deg, #d53c41, #ff6b5a); transition: width .2s ease; }
.pf-upbar b { position: relative; z-index: 1; display: flex; height: 100%; align-items: center; justify-content: center; font-size: 12.5px; color: #1d2127; }
.pf-files .pf-pager { margin-top: 16px; }
.pf-pick-modal .modal-body { background: #f7f8fa; }
@media (max-width: 767px) {
    .pf-files-bar, .pf-files-tools { width: 100%; }
    .pf-files-tools .pf-search { flex: 1 1 100%; order: -1; }
    .pf-files-tools .gs-select-wrap { flex: 1 1 auto; }
    .pf-files-tools select { max-width: none; width: 100%; }
    .pf-file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pf-file-thumb { height: 100px; }
    .pf-file-actions { flex-wrap: wrap; }
    .pf-file-actions .pff-pick { flex-basis: 100%; }
    .pf-folders { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 2px 4px 4px; }
    .pf-folders::-webkit-scrollbar { display: none; }
    .pf-folder { flex: 0 0 auto; }
}

/* ================================================================ فلاتر الحالة (شرايح) */
.pf-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.gs-panel .pf-filters { margin-top: -2px; }
.pf-fchip { border: 1px solid var(--gs-border); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 13px; color: #3a404a; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: all .15s ease; }
.pf-fchip b { font-weight: 800; color: #8a9099; }
.pf-fchip .fa { color: #9aa0a8; }
.pf-fchip:hover { border-color: #c9ccd2; }
.pf-fchip.is-on { background: #141414; border-color: #141414; color: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.14); }
.pf-fchip.is-on b, .pf-fchip.is-on .fa { color: #fff; }
.pf-fchip.is-idle .fa, .pf-fchip.is-due .fa { color: #e08a00; }
.pf-fchip.is-unpaid .fa, .pf-fchip.is-overdue .fa, .pf-fchip.is-requests .fa { color: #d53c41; }
.pf-fchip.is-active .fa, .pf-fchip.is-paid .fa, .pf-fchip.is-delivered .fa { color: #16a34a; }
.pf-fchip.is-claimed .fa, .pf-fchip.is-ready .fa { color: #2563eb; }
.pf-fchip.is-on .fa { color: #fff !important; }
@media (max-width: 767px) {
    .pf-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; padding: 2px 12px 6px; scroll-padding-inline: 12px; }
    /* [موبايل] أي حاجة عريضة تفضل جوه الشاشة (الصفحة نفسها ماتتمطش بالعرض) */
    .gs-platform .gs-content { overflow-x: clip; }
    .pf-filters::-webkit-scrollbar { display: none; }
    .pf-fchip { flex: 0 0 auto; }
}

/* ================================================================ حالة الجيم */
.pf-gym-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pf-gym-last { font-size: 12px; color: var(--gs-muted); font-weight: 600; }
.pf-gym-last .fa { margin-inline-end: 3px; }
.pf-gym-reason { margin: -6px 0 0; font-size: 12.5px; color: #6b7280; }
.pf-gym-card.is-stopped { background: #fafafa; }
.pf-gym-card.is-stopped .pf-gym-top img, .pf-gym-card.is-stopped .pf-gym-mark { filter: grayscale(1); opacity: .6; }
.pf-gym-card.is-unpaid { border-color: rgba(213,60,65,.35); }
.pf-gym-card.is-idle { border-color: rgba(224,138,0,.35); }
.pf-state-cell .gs-pill { white-space: nowrap; }
.pf-late { color: #b45309; font-weight: 700; }
.gs-pill .fa { margin-inline-end: 2px; }

.pf-attn { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: -4px 0 20px; }
.pf-attn[hidden] { display: none; }
.pf-attn-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--gs-border); background: #fff; text-align: start; font-size: 13.5px; color: #1d2127 !important; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease; animation: pfUp .35s ease both; }
.pf-attn-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.07); }
.pf-attn-item > .fa:first-child { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex: 0 0 auto; }
.pf-attn-item span { flex: 1 1 auto; }
.pf-attn-item b { font-size: 16px; }
.pf-attn-item > .fa:last-child { color: #b3b7bd; }
.pf-attn-item.is-idle > .fa:first-child { background: #fff5e6; color: #e08a00; }
.pf-attn-item.is-unpaid > .fa:first-child { background: #fdecec; color: #d53c41; }
.pf-attn-item.is-claimed > .fa:first-child { background: #eaf1fe; color: #2563eb; }
.pf-attn-item.is-stopped > .fa:first-child { background: #f1f2f4; color: #6b7280; }

.pf-status { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-inline-start: 4px solid #16a34a; }
.pf-status-main { display: flex; align-items: center; gap: 14px; flex: 1 1 320px; min-width: 0; }
.pf-status-ic { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; background: #e8f7ee; color: #16a34a; }
.pf-status-title { font-weight: 800; font-size: 16px; }
.pf-status-sub { color: var(--gs-muted); font-size: 13px; margin-top: 2px; }
.pf-status-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--gs-muted); }
.pf-status-meta a { color: #d53c41; font-weight: 700; }
.pf-status.is-idle { border-inline-start-color: #e08a00; }
.pf-status.is-idle .pf-status-ic { background: #fff5e6; color: #e08a00; }
.pf-status.is-unpaid { border-inline-start-color: #d53c41; }
.pf-status.is-unpaid .pf-status-ic { background: #fdecec; color: #d53c41; }
.pf-status.is-stopped { border-inline-start-color: #6b7280; background: #fafafa; }
.pf-status.is-stopped .pf-status-ic { background: #eceef1; color: #4b5563; }
.pf-danger-txt { color: #d53c41 !important; }
.pf-danger-txt:hover { background: #fdecec !important; }

/* ================================================================ الاشتراك */
.pf-cols.is-billing { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.pf-switch-lg { font-weight: 700; margin-bottom: 16px; }
.pf-calc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0 16px; transition: opacity .2s ease; }
.pf-calc.is-off { opacity: .45; }
.pf-calc > div { background: #f7f8fa; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-calc small { color: var(--gs-muted); font-weight: 700; font-size: 11.5px; }
.pf-calc b { font-size: 20px; }
.pf-calc b em { font-style: normal; font-size: 12px; color: var(--gs-muted); }
.pf-calc span { font-size: 11.5px; color: #8a9099; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-calc .is-total { background: linear-gradient(135deg, #1b1b1b, #0e0e0e); color: #fff; }
.pf-calc .is-total small, .pf-calc .is-total span, .pf-calc .is-total em { color: #b9bcc2; }
.pf-btn-sm { border-radius: 10px; font-weight: 700; }
.pf-more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; color: #d53c41 !important; }
.pf-inv-list { display: flex; flex-direction: column; gap: 12px; }
.pf-inv-grid, .pf-batch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.pf-inv-grid > .gs-empty, .pf-batch-grid > .gs-empty { grid-column: 1 / -1; }
.pf-inv, .pf-batch { background: #fff; border: 1px solid var(--gs-border); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; animation: pfUp .35s ease both; border-top: 3px solid #e08a00; }
.pf-inv.is-s1, .pf-batch.is-s1 { border-top-color: #2563eb; }
.pf-inv.is-s2, .pf-batch.is-s2 { border-top-color: #16a34a; }
.pf-inv.is-s3, .pf-batch.is-s3 { border-top-color: #b3b7bd; opacity: .8; }
.pf-inv.is-overdue, .pf-batch.is-s0 { border-top-color: #d53c41; }
.pf-inv-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 0; flex-wrap: wrap; }
.pf-inv-gym { font-weight: 800; color: #1d2127 !important; }
.pf-inv-no { color: #9aa0a8; font-weight: 700; font-size: 12.5px; }
.pf-inv-head .gs-pill { margin-inline-start: auto; }
.pf-inv-body { padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.pf-inv-amount { font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.pf-inv-amount small, .pf-batch-price small { font-size: 12px; color: var(--gs-muted); font-weight: 700; }
.pf-inv-period, .pf-inv-due, .pf-batch-time { color: #5b616b; }
.pf-inv-period .fa, .pf-inv-due .fa { width: 16px; color: #9aa0a8; }
.pf-inv-due.is-late { color: #d53c41; font-weight: 700; }
.pf-inv-due.is-late .fa { color: #d53c41; }
.pf-inv-calc { font-size: 12px; color: #8a9099; background: #f7f8fa; border-radius: 10px; padding: 6px 10px; }
.pf-inv-claim { background: #eaf1fe; color: #1e3a8a; border-radius: 10px; padding: 8px 10px; }
.pf-inv-ref { margin-top: 2px; }
.pf-inv-paid { color: #166534; }
.pf-inv-notes { color: #6b7280; font-size: 12.5px; }
.pf-inv-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 12px; border-top: 1px solid #f0f1f3; background: #fcfcfd; margin-top: auto; }
.pf-inv-actions .btn { border-radius: 9px; font-weight: 700; }
.pf-bill-kpis .gs-kpi-val small { font-size: 12px; opacity: .7; }
.pf-instapay { display: flex; gap: 16px; align-items: flex-start; }
.pf-instapay-ic { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #d53c41, #8f1d23); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex: 0 0 auto; box-shadow: 0 10px 22px rgba(213,60,65,.3); }
.pf-instapay-body { flex: 1 1 auto; min-width: 0; }
.pf-instapay-body label { font-weight: 800; margin: 0; }
.pf-instapay-body p { margin: 2px 0 10px; font-size: 12.5px; }
.pf-instapay-row { display: flex; gap: 8px; }
.pf-select select { height: 42px; border-radius: 12px; border: 1px solid var(--gs-border-strong); background: #fff; padding-inline: 36px 14px; font-weight: 700; min-width: 190px; }
.pf-select .fa { position: absolute; inset-inline-start: 13px; color: #9aa0a8; pointer-events: none; }
.pf-alert.is-info { background: #eaf1fe; color: #1e3a8a; border: 1px solid #cfe0fd; }
.pf-mt { margin-top: 12px; }
.pf-maint.is-on { border: 1px solid rgba(213,60,65,.4); background: #fff7f7; }
.pf-maint.is-on #pfMaintTxt { color: #d53c41; }

/* الميداليات */
.pf-batch-count { font-size: 14px; }
.pf-batch-count b { font-size: 24px; font-weight: 800; }
.pf-batch-count span { color: var(--gs-muted); }
.pf-batch-use small { color: var(--gs-muted); font-size: 12px; }
.pf-bar { height: 6px; border-radius: 6px; background: #eef0f2; overflow: hidden; margin: 2px 0 4px; }
.pf-bar span { display: block; height: 100%; background: linear-gradient(90deg, #d53c41, #ff7a7e); border-radius: 6px; }
.pf-batch-price { font-weight: 800; font-size: 15px; }
.pf-batch-price span { font-weight: 600; font-size: 12px; color: var(--gs-muted); }
.pf-batch-time { font-size: 12px; color: #9aa0a8; }

/* أكواد QR: تنزيل PNG */
.pf-print-bar { flex-wrap: wrap; gap: 10px; align-items: center; }
.pf-print-title { display: flex; flex-direction: column; min-width: 0; }
.pf-print-title b { font-size: 17px; }
.pf-print-title span { color: var(--gs-muted); font-size: 12.5px; }
.pf-btn-n { display: inline-block; min-width: 22px; padding: 0 7px; margin-inline-start: 4px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 11.5px; line-height: 20px; }
.pf-qr-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 4px 0 14px; }
.pf-qr-opt { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12.5px; color: var(--gs-muted); }
.pf-qr-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); direction: ltr; }
.pf-qr { position: relative; background: #fff; border: 1px solid var(--gs-border); border-radius: 16px; padding: 14px 10px 10px; text-align: center; box-shadow: var(--gs-shadow-sm); transition: transform .15s ease, box-shadow .15s ease; animation: pfIn .25s ease both; }
.pf-qr:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.pf-qr.is-used .pf-qr-code { opacity: .4; }
.pf-qr-code { display: flex; justify-content: center; min-height: 132px; }
.pf-qr-code img, .pf-qr-code canvas { max-width: 100%; height: auto; }
.pf-qr-n { font-weight: 800; margin-top: 8px; min-height: 26px; font-size: 13px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.pf-qr-key { font-family: Consolas, monospace; font-size: 10.5px; color: #6b7280; word-break: break-all; }
.pf-qr-dl { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 10px; border: 0; background: #141414; color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.9); transition: opacity .15s ease, transform .15s ease; cursor: pointer; }
.pf-qr:hover .pf-qr-dl, .pf-qr-dl:focus-visible, .pf-qr-dl:disabled { opacity: 1; transform: none; }
@media (hover: none) { .pf-qr-dl { opacity: 1; transform: none; } }
.pf-qr.is-skel { animation: none; box-shadow: none; }
.pf-qr.is-skel .pf-qr-code span { width: 132px; height: 132px; border-radius: 12px; }
.pf-qr.is-skel .pf-qr-code span, .pf-skel-line { display: inline-block; background: linear-gradient(90deg, #f0f1f3 25%, #e6e8eb 37%, #f0f1f3 63%); background-size: 400% 100%; animation: pfSkel 1.2s ease infinite; }
.pf-skel-line { width: 70%; max-width: 180px; height: 12px; border-radius: 6px; vertical-align: middle; }
@keyframes pfSkel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.pf-qr-empty { grid-column: 1 / -1; direction: rtl; }
html[dir="ltr"] .pf-qr-empty { direction: ltr; }
.pf-qr-busy { position: fixed; inset: 0; z-index: 2000; background: rgba(15,16,18,.45); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; }
.pf-qr-busy[hidden] { display: none; }
.pf-qr-busy-card { width: 100%; max-width: 340px; background: #fff; border-radius: 20px; padding: 26px 22px 18px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.25); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pf-qr-busy-card > .fa { font-size: 34px; color: #d53c41; animation: pfPulse 1.2s ease infinite; }
.pf-qr-busy-card b { font-size: 16px; }
.pf-qr-busy-card small { color: var(--gs-muted); font-variant-numeric: tabular-nums; min-height: 18px; }
.pf-qr-prog { width: 100%; height: 8px; border-radius: 99px; background: #f0f1f3; overflow: hidden; }
.pf-qr-prog span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #d53c41, #ff7a59); border-radius: 99px; transition: width .2s ease; }
@keyframes pfPulse { 50% { transform: scale(1.12); } }
@media (max-width: 767px) {
    .pf-qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .pf-print-bar .gs-toolbar-end .btn { flex: 1 1 auto; }
    .pf-qr-opts .gs-seg { width: auto; }
}

@media (max-width: 991px) {
    .pf-cols.is-billing { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .pf-inv-grid, .pf-batch-grid { grid-template-columns: minmax(0, 1fr); }
    .pf-calc { grid-template-columns: minmax(0, 1fr); }
    .pf-instapay { flex-direction: column; }
    .pf-instapay-row { flex-direction: column; }
    .pf-select, .pf-select select { width: 100%; }
    .pf-status .btn { width: 100%; }
    .gs-toolbar-end { width: 100%; }
    .gs-toolbar-end .pf-select { flex: 1 1 auto; }
}
.gs-pill:has(> .fa)::before { display: none; }
.pf-gym-cell-txt { display: inline-flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.pf-gym-cell-txt small { color: var(--gs-muted); font-size: 11.5px; font-weight: 600; }
@media (max-width: 767px) {
    .pf-attn { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .pf-attn-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; font-size: 12.5px; line-height: 1.45; }
    .pf-attn-item > .fa:last-child { display: none; }
    .pf-attn-item b { display: block; font-size: 20px; }
}

.pf-inv-link { font-size: 12.5px; background: #fdf2f2; border-radius: 10px; padding: 6px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-inv-link .fa { color: #d53c41; }
.pf-inv-link a { color: #1d2127; font-weight: 700; }
.pf-inv-nolink { border: 1px dashed #e0a3a5; background: #fff; color: #b42328; border-radius: 10px; padding: 7px 10px; font-weight: 700; font-size: 12.5px; text-align: start; cursor: pointer; }
.pf-inv-nolink:hover { background: #fdf2f2; }

/* ================================================================ الشكل: الباليت + المعاينة الحية */
.pf-look-forms { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pf-look-forms > .gs-panel { margin-bottom: 0; }
.pf-subtabs { margin: 4px 0 14px; }
.pf-palette { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.pf-palette label { font-weight: 700; font-size: 13px; color: #3a404a; margin-bottom: 6px; display: block; }
.pf-color { position: relative; }
.pf-color.is-empty input[type=color] { opacity: .45; }
.pf-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--gs-border); }
.pf-presets > span { font-size: 12.5px; font-weight: 700; color: var(--gs-muted); margin-inline-end: 4px; }
.pf-preset { width: 34px; height: 34px; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--gs-border), 0 4px 10px rgba(0,0,0,.08); background: linear-gradient(135deg, var(--b) 0 50%, var(--a) 50% 100%); padding: 0; cursor: pointer; transition: transform .15s ease; }
.pf-preset:hover { transform: translateY(-2px) scale(1.05); }
.pf-switches.is-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.pf-save-row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--gs-border); }
.pf-screen-seg { display: flex; width: 100%; margin-bottom: 14px; }
.pf-screen-seg button { flex: 1 1 0; }
.pf-live { display: flex; justify-content: center; background: repeating-linear-gradient(45deg, #f4f5f7 0 10px, #eef0f2 10px 20px); border-radius: 16px; padding: 18px 10px; }
.pf-live-frame { position: relative; width: 100%; transition: width .3s ease; }
.pf-live.is-phone .pf-live-frame { width: 340px; max-width: 100%; border: 10px solid #111; border-radius: 34px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.pf-live.is-desk .pf-live-frame { border: 1px solid var(--gs-border); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.14); }
.pf-live iframe { display: block; width: 100%; height: 640px; border: 0; background: #050505; }
.pf-live.is-desk iframe { height: 520px; }
.pf-live-busy { position: absolute; top: 12px; inset-inline-end: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.pf-live.is-busy .pf-live-busy { opacity: 1; }
@media (max-width: 767px) {
    .pf-palette, .pf-switches.is-grid { grid-template-columns: minmax(0, 1fr); }
    .pf-live iframe { height: 560px; }
    .pf-save-row .btn { flex: 1 1 0; }
}

/* تذكرني */
.pf-auth .pf-check { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; font-size: 13.5px; font-weight: 600; color: #4b5563; cursor: pointer; user-select: none; }
.pf-auth .pf-check input { position: absolute; opacity: 0; pointer-events: none; }
.pf-auth .pf-check span { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #cfd3da; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: all .15s ease; }
.pf-auth .pf-check input:checked + span { background: #d53c41; border-color: #d53c41; }
.pf-auth .pf-check input:checked + span::after { content: "\f00c"; font-family: FontAwesome; font-size: 11px; color: #fff; }
.pf-auth .pf-check input:focus-visible + span { outline: 3px solid rgba(213,60,65,.35); outline-offset: 2px; }

/* الأجهزة */
.pf-dev-btn { border: 1px solid var(--gs-border); background: #fff; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pf-dev-btn:hover { border-color: #d53c41; color: #d53c41; }
.pf-dev-top { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; margin-bottom: 16px; }
.pf-dev-kpi { background: linear-gradient(135deg, #1b1b1b, #0e0e0e); color: #fff; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; }
.pf-dev-kpi small { color: #b9bcc2; font-weight: 700; font-size: 12px; }
.pf-dev-kpi b { font-size: 26px; }
.pf-dev-limit { background: #f7f8fa; border-radius: 14px; padding: 12px 14px; }
.pf-dev-limit label { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.pf-dev-limit-row { display: flex; gap: 8px; margin-bottom: 4px; }
.pf-dev-limit-row .form-control { max-width: 120px; }
.pf-dev-list { display: flex; flex-direction: column; gap: 10px; }
.pf-dev { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--gs-border); border-radius: 14px; background: #fff; }
.pf-dev.is-off { background: #fafafa; }
.pf-dev.is-off .pf-dev-ic { opacity: .5; }
.pf-dev-ic { width: 42px; height: 42px; border-radius: 12px; background: #fdecec; color: #d53c41; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex: 0 0 auto; }
.pf-dev-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pf-dev-info small { color: var(--gs-muted); font-size: 12px; }
.pf-dev-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
@media (max-width: 575px) {
    .pf-dev-top { grid-template-columns: minmax(0, 1fr); }
    .pf-dev { flex-wrap: wrap; }
    .pf-dev .btn { width: 100%; }
}

/* الإشعارات */
.pf-notif-list { display: flex; flex-direction: column; gap: 12px; }
.pf-notif { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--gs-border); border-radius: 16px; padding: 14px 16px; animation: pfUp .35s ease both; }
.pf-notif-ic { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; background: #eef0f2; color: #4b5563; font-size: 17px; }
.pf-notif-ic.is-billing { background: #fdecec; color: #d53c41; } .pf-notif-ic.is-medals { background: #eaf1fe; color: #2563eb; } .pf-notif-ic.is-info { background: #fff5e6; color: #e08a00; }
.pf-notif-body { flex: 1 1 auto; min-width: 0; }
.pf-notif-body b { font-size: 15px; }
.pf-notif-body p { margin: 4px 0 8px; color: #4b5563; font-size: 13.5px; white-space: pre-line; }
.pf-notif-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--gs-muted); margin-bottom: 8px; }
.pf-notif-meta .fa { margin-inline-end: 3px; }
.pf-notif-read { max-width: 320px; }
.pf-notif-read small { font-size: 11.5px; color: var(--gs-muted); }

.pf-med-sum .pf-table td:first-child { white-space: nowrap; }
.pf-num-ok { color: #16a34a; font-weight: 800; }
.pf-batch-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* وصل لحد الأجهزة (دخول المنصة) */
.pf-hide-limit { display: none !important; }
.pf-devlimit { text-align: center; animation: pfIn .25s ease both; }
.pf-devlimit-ic { display: inline-flex; align-items: flex-end; gap: 4px; color: #d53c41; margin-bottom: 6px; }
.pf-devlimit-ic .fa-mobile { font-size: 28px; }
.pf-devlimit-ic .fa-desktop { font-size: 34px; opacity: .5; }
.pf-devlimit p { color: var(--gs-muted); font-size: 13.5px; line-height: 1.6; }
.pf-devlimit-list { display: flex; flex-direction: column; gap: 8px; text-align: start; margin: 12px 0; }
.pf-devlimit-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--gs-border); border-radius: 14px; padding: 10px; }
.pf-devlimit-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.3; }
.pf-devlimit-txt b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-devlimit-txt small { color: var(--gs-muted); font-size: 11.5px; }
.pf-devlimit-back { background: none; border: 0; }
.pf-push-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pf-push-grid > div { background: #f7f8fa; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.pf-push-grid small { color: var(--gs-muted); font-weight: 700; font-size: 11.5px; }
/* المودالات: القاعدة العامة (label = سطر لوحده) ماتبوظش السويتشات والاختيارات */
.gs-admin .modal-body label.pf-switch { display: inline-flex !important; align-items: center; gap: 10px; margin: 10px 0 !important; }
.gs-admin .modal-body label.pf-check { margin: 0 !important; }

/* [الموديولات] اختيار: جيم بس / جيم + متجر */
.pf-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-modules button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: start; padding: 12px 14px; border: 1.5px solid #e1e3e8; border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.pf-modules button .fa { font-size: 17px; color: #9aa0aa; margin-bottom: 2px; }
.pf-modules button b { font-size: 13.5px; color: #1d2127; }
.pf-modules button small { font-size: 11.5px; color: #6b7280; line-height: 1.4; }
.pf-modules button:hover:not(:disabled) { border-color: #cfd3da; }
.pf-modules button.is-on { border-color: #d53c41; background: #fdf5f5; box-shadow: 0 0 0 3px rgba(213, 60, 65, .12); }
.pf-modules button.is-on .fa { color: #d53c41; }
.pf-modules button.is-on::after { content: '\f00c'; font-family: FontAwesome; position: absolute; top: 10px; inset-inline-end: 12px; width: 20px; height: 20px; border-radius: 50%; background: #d53c41; color: #fff; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; }
.pf-modules button:disabled { opacity: .6; cursor: default; }
@media (max-width: 575px) { .pf-modules { grid-template-columns: 1fr; } }

/* [المنصة] أيقونة التطبيق من اللوجو */
.pf-appicon { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 14px; border: 1px dashed #d6d9de; border-radius: 14px; background: #fafbfc; }
.pf-appicon-prev { width: 72px; height: 72px; border-radius: 18px; overflow: hidden; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: #eef0f2; color: #9aa0aa; font-size: 26px; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.pf-appicon-prev img { width: 100%; height: 100%; object-fit: cover; }
.pf-appicon-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.pf-appicon-txt small { color: #6b7280; font-size: 12px; line-height: 1.5; }
.pf-appicon-txt .btn { margin-top: 4px; }
.pf-appicon-btns { display: flex; flex-wrap: wrap; gap: 6px; }
#pfBrand .pf-img-fields { margin-top: 4px; }

/* [المنصة] محرر أيقونة التطبيق */
.pf-ie .modal-body { background: #f7f8fa; }
.pf-ie-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 22px; align-items: start; }
.pf-ie-view { display: flex; flex-direction: column; gap: 10px; }
.pf-ie-stage { position: relative; cursor: grab; touch-action: none; user-select: none; width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
    background: repeating-conic-gradient(#e9ebee 0 25%, #fff 0 50%) 0 0 / 20px 20px; }
.pf-ie-canvas { width: 100%; height: 100%; display: block; }
.pf-ie-safe { position: absolute; inset: 10%; border: 2px dashed rgba(213, 60, 65, .85); border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .6); }
.pf-ie-load { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(255, 255, 255, .6); font-size: 26px; color: #6b7280; }
.pf-ie-load.is-on { display: flex; }
.pf-ie-mocks { display: flex; gap: 14px; justify-content: center; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, #2b3a55, #563d6b); }
.pf-ie-mocks > div { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.pf-ie-mocks img { width: 58px; height: 58px; display: block; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); background: #fff; }
.pf-ie-mocks small { color: #fff; font-size: 11px; opacity: .9; }
.pf-ie-ios { border-radius: 13px; }
.pf-ie-and { border-radius: 50%; }
.pf-ie-sq { border-radius: 4px; }
.pf-ie-ctrl { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pf-ie-sec { background: #fff; border: 1px solid var(--gs-border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.pf-ie-sec > b { font-size: 13px; font-weight: 800; display: flex; justify-content: space-between; }
.pf-ie-val { color: var(--gs-muted); font-variant-numeric: tabular-nums; }
.pf-ie input[type=range] { width: 100%; accent-color: var(--gs-red, #d53c41); }
.pf-ie-srcs { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-ie-srcs button { width: 96px; padding: 6px; border: 2px solid var(--gs-border); border-radius: 12px; background: repeating-conic-gradient(#8a9099 0 25%, #9ba1aa 0 50%) 0 0 / 12px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.pf-ie-srcs button img { width: 100%; height: 44px; object-fit: contain; }
.pf-ie-srcs button small { font-size: 10.5px; line-height: 1.2; color: #374151; background: rgba(255, 255, 255, .85); border-radius: 4px; padding: 0 3px; max-width: 100%; overflow: hidden; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pf-ie-srcs button.is-on { border-color: var(--gs-red, #d53c41); box-shadow: 0 0 0 3px rgba(213, 60, 65, .15); }
.pf-ie-sw { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-ie-sw button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .15); cursor: pointer; padding: 0; }
.pf-ie-sw button.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gs-red, #d53c41); }
.pf-ie-bgimg { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-ie-bgt { max-width: 120px; }
.pf-ie-check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin: 0; cursor: pointer; }
.pf-ie-smart { align-self: flex-start; }
@media (max-width: 767px) {
    .pf-ie-grid { grid-template-columns: minmax(0, 1fr); }
    .pf-ie-view { max-width: 320px; margin: 0 auto; width: 100%; }
}
.pf-ie-stage:active { cursor: grabbing; }
.pf-ie-hint { color: var(--gs-muted); font-size: 12px; display: block; margin-top: 4px; line-height: 1.5; }
.pf-ie-pos { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.pf-ie-pos > div:first-child { min-width: 0; }
.pf-ie-pos b { font-size: 13px; font-weight: 800; }
.pf-ie-pad { display: grid; grid-template-columns: repeat(3, 34px); grid-template-rows: repeat(3, 30px); gap: 4px; flex: 0 0 auto; }
.pf-ie-pad button { border: 1px solid var(--gs-border); background: #fff; border-radius: 9px; color: #374151; cursor: pointer; }
.pf-ie-pad button:hover { border-color: var(--gs-red, #d53c41); color: var(--gs-red, #d53c41); }
.pf-ie-pad [data-mv="0,-1"] { grid-column: 2; grid-row: 1; }
.pf-ie-pad [data-mv="-1,0"] { grid-column: 1; grid-row: 2; }
.pf-ie-pad .is-c { grid-column: 2; grid-row: 2; }
.pf-ie-pad [data-mv="1,0"] { grid-column: 3; grid-row: 2; }
.pf-ie-pad [data-mv="0,1"] { grid-column: 2; grid-row: 3; }

/* [المنصة] ميداليات كل جيم: بحث وفلاتر فوق الجدول */
.pf-sum-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 12px; }
.pf-sum-tools .pf-search { flex: 0 1 280px; min-width: 200px; }
.pf-sum-tools .pf-filters { margin: 0; }
.pf-med-sum .pf-pager { margin-top: 12px; }

/* [المنصة] الشكل: المعاينة بتاخد مساحتها حتى لو القايمة الجانبية مفتوحة (التابلت)
   العمودين بيتحسبوا على عرض المساحة المتاحة نفسها (مش الشاشة)، ولو ضاقت المعاينة تنزل تحت بعرض كامل */
.pf-tab[data-tab="look"] { container-type: inline-size; }
.pf-cols.is-look { grid-template-columns: minmax(0, 1fr) minmax(390px, .8fr); }
@container (max-width: 900px) {
    .pf-cols.is-look { grid-template-columns: minmax(0, 1fr); }
    .pf-cols.is-look .pf-preview-panel { position: static; }
}
@supports not (container-type: inline-size) {
    @media (max-width: 1199.98px) { .pf-cols.is-look { grid-template-columns: minmax(0, 1fr); } .pf-cols.is-look .pf-preview-panel { position: static; } }
}

/* [المنصة] محرر الصور */
.pf-ied .modal-body { background: #f7f8fa; }
.pf-ied-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 20px; align-items: start; }
.pf-ied-left { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pf-ied-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 280px; padding: 12px; border-radius: 14px; overflow: hidden;
    background: repeating-conic-gradient(#e6e8eb 0 25%, #f6f7f9 0 50%) 0 0 / 18px 18px; touch-action: none; user-select: none; cursor: crosshair; }
.pf-ied-view { display: block; max-width: 100%; }
.pf-ied-crop { position: absolute; box-shadow: 0 0 0 9999px rgba(10, 12, 16, .55); outline: 2px solid #fff; cursor: move; }
.pf-ied-crop::before, .pf-ied-crop::after { content: ''; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(255, 255, 255, .35); }
.pf-ied-crop::before { border-width: 0 1px; left: 33.33%; right: 33.33%; }
.pf-ied-crop::after { border-width: 1px 0; top: 33.33%; bottom: 33.33%; }
.pf-ied-crop i { position: absolute; width: 16px; height: 16px; background: #fff; border: 2px solid #d53c41; border-radius: 50%; z-index: 1; }
.pf-ied-crop i[data-h="nw"] { left: -8px; top: -8px; cursor: nwse-resize; }
.pf-ied-crop i[data-h="ne"] { right: -8px; top: -8px; cursor: nesw-resize; }
.pf-ied-crop i[data-h="se"] { right: -8px; bottom: -8px; cursor: nwse-resize; }
.pf-ied-crop i[data-h="sw"] { left: -8px; bottom: -8px; cursor: nesw-resize; }
.pf-ied-crop i[data-h="n"] { left: calc(50% - 8px); top: -8px; cursor: ns-resize; }
.pf-ied-crop i[data-h="s"] { left: calc(50% - 8px); bottom: -8px; cursor: ns-resize; }
.pf-ied-crop i[data-h="w"] { top: calc(50% - 8px); left: -8px; cursor: ew-resize; }
.pf-ied-crop i[data-h="e"] { top: calc(50% - 8px); right: -8px; cursor: ew-resize; }
.pf-ied-dim { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); background: rgba(0, 0, 0, .7); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; direction: ltr; white-space: nowrap; pointer-events: none; }
.pf-ied-load { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-size: 28px; color: #6b7280; background: rgba(255, 255, 255, .7); }
.pf-ied-load.is-on { display: flex; }
.pf-ied-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-ied-note { font-size: 12.5px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 8px 10px; }
.pf-ied-ctrl { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pf-ied-sec { background: #fff; border: 1px solid var(--gs-border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.pf-ied-sec > b { font-size: 13px; font-weight: 800; }
.pf-ied-sec > b small { color: var(--gs-muted); font-weight: 600; }
.pf-ied-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-ied-chips button { border: 1px solid var(--gs-border); background: #fff; border-radius: 9px; padding: 4px 10px; font-size: 12.5px; font-weight: 700; color: #374151; cursor: pointer; direction: ltr; }
.pf-ied-chips button.is-on { background: #141414; border-color: #141414; color: #fff; }
.pf-ied-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pf-ied-nums label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 700; color: var(--gs-muted); margin: 0; }
.pf-ied input[type=number] { width: 100%; height: 34px; border: 1px solid var(--gs-border); border-radius: 9px; padding: 0 8px; font-size: 13px; font-weight: 700; direction: ltr; font-variant-numeric: tabular-nums; }
.pf-ied-out { display: flex; align-items: center; gap: 6px; }
.pf-ied-lock { flex: 0 0 34px; height: 34px; border: 1px solid var(--gs-border); background: #fff; border-radius: 9px; color: #9aa0aa; cursor: pointer; }
.pf-ied-lock.is-on { color: #d53c41; border-color: #d53c41; }
.pf-ied-warn { color: #b45309; font-weight: 600; }
.pf-ied-q, .pf-ied-bg { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; color: #4b5563; }
.pf-ied-q input { flex: 1 1 auto; accent-color: #d53c41; }
.pf-ied-bg input { width: 42px; height: 30px; border: 1px solid var(--gs-border); border-radius: 8px; padding: 2px; }
.pf-ied-lockmsg { color: var(--gs-muted); line-height: 1.5; }
.pf-ied-result { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: #141414; color: #fff; border-radius: 14px; padding: 12px 14px; }
.pf-ied-result > div { display: flex; flex-direction: column; min-width: 0; }
.pf-ied-result small { color: #9ca3af; font-size: 11px; font-weight: 700; }
.pf-ied-result b { font-size: 12.5px; direction: ltr; font-variant-numeric: tabular-nums; }
.pf-ied-result > .fa { color: #6b7280; }
.pf-ied-save { flex: 1 1 100%; }
.pf-ied-smart { align-self: flex-start; }
.pf-file-actions .pff-edit { color: #d53c41; }
@media (max-width: 991.98px) {
    .pf-ied-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
    .pf-ied .modal-footer { flex-wrap: wrap; }
    .pf-ied .modal-footer .btn { flex: 1 1 40%; }
    .pf-ied-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =====================================================================
   [المنصة] الرئيسية: نبض الجيمات النهارده (أعداد بس)
   ===================================================================== */
.pf-live-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 14px; }
.pf-live-state { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #effaf3; color: #15803d; font-weight: 800; font-size: 12.5px; }
.pf-live-note { display: inline-flex; align-items: center; gap: 6px; color: var(--gs-muted); font-size: 12.5px; font-weight: 600; }
.pf-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pf-kpis .gs-kpi-val small { font-size: 15px; font-weight: 700; opacity: .6; }
.pf-kpis .gs-kpi-sub { line-height: 1.6; }
.pf-kpis .gs-kpi-sub .pf-delta { margin-inline-end: 4px; }
@media (max-width: 1399.98px) { .pf-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .pf-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .pf-kpis .gs-kpi.is-hero { grid-column: 1 / -1; } .pf-kpis .gs-kpi-val { font-size: 22px; } }

/* الفرق عن الأسبوع اللي فات */
.pf-delta { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; vertical-align: middle; background: #f2f4f7; color: #6b7280; }
.pf-delta.is-up { background: #e7f6ec; color: #15803d; }
.pf-delta.is-down { background: #fdecec; color: #b3262b; }
.gs-kpi.is-hero .pf-delta { background: rgba(255, 255, 255, .12); color: #fff; }

/* النبض + الشغالين دلوقتي */
.pf-pulse-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 18px; margin-bottom: 18px; align-items: stretch; }
.pf-pulse-grid > .gs-panel { margin-bottom: 0; }
@media (max-width: 1099.98px) { .pf-pulse-grid { grid-template-columns: minmax(0, 1fr); } }
.pf-legend { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; font-weight: 700; color: #4b5563; }
.pf-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pf-legend i, .pf-tip i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.pf-legend i.is-today, .pf-tip i.is-today { background: #141414; }
.pf-legend i.is-lw, .pf-tip i.is-lw { background: #d5d9df; }
.pf-chart { position: relative; }
.pf-hours-svg { width: 100%; height: auto; display: block; overflow: visible; }
.pf-hours-svg .pf-grid { stroke: #eef0f3; stroke-width: 1; }
.pf-hours-svg .pf-axis { fill: #8a9099; font-size: 11px; font-weight: 600; font-family: inherit; }
.pf-hours-svg .pf-axis.is-now { fill: #d53c41; font-weight: 800; }
.pf-hours-svg .pf-bar-lw { fill: #e3e6ea; }
.pf-hours-svg .pf-bar-t { fill: #141414; }
.pf-hours-svg .pf-bar-t.is-now { fill: #d53c41; }
.pf-hours-svg .pf-now-line { stroke: #d53c41; stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .55; }
.pf-hours-svg .pf-hit { fill: transparent; cursor: default; }
.pf-hours-svg .pf-hit.is-on { fill: rgba(20, 20, 20, .04); }
.pf-tip { position: absolute; z-index: 3; pointer-events: none; display: flex; flex-direction: column; gap: 3px; min-width: 150px; padding: 9px 12px; border-radius: 12px; background: #141414; color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 12px 28px rgba(0, 0, 0, .22); }
.pf-tip[hidden] { display: none; }
.pf-tip > b { font-size: 12.5px; margin-bottom: 2px; }
.pf-tip span { display: flex; align-items: center; gap: 6px; }
.pf-tip span b { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.pf-tip i.is-lw { background: #9aa0a8; }
.pf-now-list { display: flex; flex-direction: column; gap: 8px; }
.pf-now-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid #eceef1; border-radius: 14px; background: #fff; text-align: start; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.pf-now-item:hover { transform: translateY(-1px); border-color: rgba(213, 60, 65, .35); box-shadow: 0 8px 18px rgba(16, 24, 40, .07); }
.pf-now-item .pf-now-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; background: #141414; padding: 3px; flex: 0 0 auto; }
.pf-now-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-now-txt b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-now-txt small { color: var(--gs-muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-now-n { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 5px 8px; border-radius: 11px; background: #f4f5f7; }
.pf-now-n b { font-size: 17px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pf-now-n small { font-size: 10.5px; color: var(--gs-muted); font-weight: 700; white-space: nowrap; }
.pf-online, .pf-online-s { display: inline-flex; align-items: center; gap: 6px; color: #15803d; font-weight: 800; white-space: nowrap; }
.pf-online-s { font-size: 11.5px; }
.pf-online .gs-live-dot, .pf-online-s .gs-live-dot { width: 7px; height: 7px; }
.pf-offline { color: #9aa0a8; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.pf-sub { display: block; color: var(--gs-muted); font-size: 11.5px; font-weight: 600; margin-top: 2px; white-space: nowrap; }
.pf-big { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; margin-inline-end: 4px; }
.pf-dash-table tr.pf-gym-row { cursor: pointer; }
.pf-dash-table tr.pf-gym-row:focus-visible { outline: 2px solid #d53c41; outline-offset: 2px; }
.pf-day-btn { height: 34px; border-radius: 10px; background: #f4f5f7; border: 0; font-weight: 700; font-size: 12.5px; color: #1d2127; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pf-day-btn:hover { background: #141414; color: #fff; }

/* درج الجيم (من الجنب) */
.pf-drawer .modal-dialog { position: fixed; margin: 0 !important; top: 0; bottom: 0; inset-inline-end: 0; width: 560px; max-width: 100%; height: 100%; height: 100dvh; max-height: none !important; transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1) !important; }
html[dir="rtl"] .pf-drawer .modal-dialog { transform: translateX(-100%); }
.pf-drawer.show .modal-dialog { transform: none !important; }
.pf-drawer .modal-content { height: 100%; max-height: none !important; border: 0; border-radius: 0; display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(0, 0, 0, .18); }
.pf-gp-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #eef0f2; }
.pf-gp-logo img, .pf-gp-logo .pf-gym-mark { width: 46px; height: 46px; border-radius: 13px; object-fit: contain; background: #141414; padding: 4px; font-size: 18px; }
.pf-gp-id { flex: 1 1 auto; min-width: 0; }
.pf-gp-id h4 { margin: 0; font-size: 18px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-gp-id small { color: var(--gs-muted); font-weight: 600; }
.pf-gp-head .close { margin: 0; }
.pf-gp-body { flex: 1 1 auto; overflow-y: auto; padding: 16px 18px 24px; }
.pf-gp-loading { display: flex; align-items: center; justify-content: center; height: 240px; font-size: 26px; color: #d53c41; }
.pf-gp-state { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; }
.pf-gp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pf-gp-kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; background: #f7f8fa; min-width: 0; }
.pf-gp-kpi small { font-size: 11.5px; font-weight: 700; color: var(--gs-muted); }
.pf-gp-kpi > b { font-size: 22px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pf-gp-kpi > span { font-size: 11.5px; color: var(--gs-muted); font-weight: 600; line-height: 1.5; }
.pf-gp-kpi.is-main { grid-column: 1 / -1; background: #141414; color: #fff; }
.pf-gp-kpi.is-main small, .pf-gp-kpi.is-main > span { color: #b9bcc2; }
.pf-gp-kpi.is-main .pf-delta { background: rgba(255, 255, 255, .12); color: #fff; }
.pf-gp-kpi.is-main .pf-delta.is-up { background: rgba(34, 197, 94, .2); color: #86efac; }
.pf-gp-kpi.is-main .pf-delta.is-down { background: rgba(213, 60, 65, .25); color: #fca5a5; }
.pf-gp-h { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin: 22px 0 10px; font-size: 13px; font-weight: 800; color: #1d2127; }
.pf-gp-h .pf-legend { font-size: 11px; }
.pf-days { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; height: 120px; }
.pf-day { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.pf-day-n { font-size: 10.5px; font-weight: 700; color: #6b7280; font-variant-numeric: tabular-nums; }
.pf-day-bar { width: 100%; max-width: 22px; border-radius: 4px 4px 0 0; background: #cfd4db; min-height: 2px; }
.pf-day.is-today .pf-day-bar { background: #d53c41; }
.pf-day.is-today .pf-day-l { color: #d53c41; font-weight: 800; }
.pf-day-l { font-size: 10.5px; color: #8a9099; font-weight: 600; white-space: nowrap; }
.pf-gp-list { display: flex; flex-direction: column; gap: 6px; }
.pf-gp-li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #eef0f2; border-radius: 13px; }
.pf-gp-li.is-on { border-color: #bfe8cc; background: #fbfefc; }
.pf-gp-li-ic { width: 34px; height: 34px; border-radius: 10px; background: #f4f5f7; display: inline-flex; align-items: center; justify-content: center; color: #4b5563; flex: 0 0 auto; }
.pf-gp-li-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pf-gp-li-main b { font-size: 13.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.pf-gp-li-main small { color: var(--gs-muted); font-size: 11.5px; font-weight: 600; }
.pf-gp-li-n { display: flex; flex-direction: column; align-items: center; min-width: 50px; }
.pf-gp-li-n b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pf-gp-li-n small { font-size: 10.5px; color: var(--gs-muted); font-weight: 700; }
.pf-gp-li-seen { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; }
.pf-gp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #eef0f2; }
.pf-gp-upd { display: inline-flex; align-items: center; gap: 8px; color: var(--gs-muted); font-size: 12px; font-weight: 700; }
@media (max-width: 575.98px) {
    .pf-drawer .modal-dialog { width: 100%; }
    .pf-gp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf-days { gap: 3px; }
    .pf-day-n { font-size: 9px; }
}
.pf-hours-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.pf-hours-stats > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 12px 14px; border-radius: 14px; background: #f7f8fa; min-width: 0; }
.pf-hours-stats small { flex: 1 0 100%; font-size: 11.5px; font-weight: 700; color: var(--gs-muted); }
.pf-hours-stats b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pf-gym-br { display: block; color: var(--gs-muted); font-size: 11.5px; font-weight: 600; }
.pf-gym-cell-txt small + .pf-gym-br { margin-top: 1px; }
@media (max-width: 575.98px) { .pf-hours-stats { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 768px) {
    .pf-dash-table .pf-day-btn { width: 36px; height: 36px; padding: 0; justify-content: center; }
    .pf-dash-table .pf-day-btn span { display: none; }
    .pf-dash-table td.pf-actions { width: 1%; }
}
.pf-dash-table .pf-state-cell .gs-pill { white-space: nowrap; }

.pf-dash-table .pf-gym-cell-txt small { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
/* [المنصة] زرار "اختيار" مايتاكلش بعد ما زرار تعديل الصورة (المقص) اتضاف */
.pf-img-btns { flex-wrap: wrap; }
.pf-img-btns .btn { flex: 0 0 auto; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; min-width: 32px; }
.pf-img-btns .pf-img-pick { padding: 0 12px; }
.pf-img-btns .pf-img-edit, .pf-img-btns .pf-img-clear { width: 32px; padding: 0; }
.pf-file-actions { flex-wrap: wrap; }
.pf-file-actions .btn { flex: 0 0 auto; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; min-width: 32px; }
.pf-file-actions .pff-pick { flex: 1 1 100%; }

/* [المنصة] طلب ميداليات جاي من إشعار: الكارت بينور لحظة */
.pf-batch.is-flash { animation: pfFlash 1.1s ease 2; }
@keyframes pfFlash { 0%, 100% { box-shadow: 0 0 0 0 rgba(213, 60, 65, 0); } 50% { box-shadow: 0 0 0 4px rgba(213, 60, 65, .35); } }

/* =====================================================================
   [المنصة] المحرر المرئي للمحتوى (تاب المحتوى)
   ===================================================================== */
.pf-content-panel .gs-panel-head { align-items: center; }
.ct-head-start { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pf-content-panel.is-visual .ct-code-only, .pf-content-panel.is-code .ct-visual-only { display: none !important; }
.ve-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 10px; }
.ve-tb-group { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 12px; background: #f3f4f6; }
.ve-tb { min-width: 36px; height: 34px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: #374151; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.ve-tb:hover:not(:disabled) { background: #fff; color: #111; }
.ve-tb.is-on { background: #141414; color: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.ve-tb:disabled { opacity: .35; cursor: default; }
.ve-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; height: calc(100vh - 250px); min-height: 560px; }
.ve-wrap.is-side-off { grid-template-columns: minmax(0, 1fr); }
.ve-wrap.is-side-off .ve-side { display: none; }
.pf-content-panel.is-full .ve-wrap { height: calc(100vh - 150px); }
.ve-stage { min-width: 0; min-height: 0; overflow: hidden; border-radius: 16px; background: repeating-linear-gradient(45deg, #f4f5f7, #f4f5f7 10px, #eef0f3 10px, #eef0f3 20px); padding: 0; display: flex; justify-content: center; align-items: flex-start; }
.ve-frame-box { position: relative; box-sizing: border-box; flex: 0 0 auto; width: 100%; height: 100%; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 10px 30px rgba(16, 24, 40, .08); }
.ve-frame-box.is-device { margin: 14px auto; border: 8px solid #141414; border-radius: 26px; }
.ve-frame-box iframe { width: 100%; height: 100%; max-width: none; border: 0; display: block; background: #fff; transform-origin: 0 0; }
.ve-loading { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(255, 255, 255, .65); backdrop-filter: blur(2px); }
.ve-frame-box.is-loading .ve-loading { display: flex; }
.ve-side { min-height: 0; overflow: hidden; border: 1px solid var(--gs-border); border-radius: 16px; background: #fbfbfc; padding: 0; display: flex; flex-direction: column; }
.ve-tabs { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 8px; border-bottom: 1px solid #eceef1; background: #fff; }
.ve-tabs button { position: relative; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #4b5563; font-weight: 800; font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; white-space: nowrap; padding: 0 6px; }
.ve-tabs button:hover:not(:disabled) { background: #f3f4f6; color: #111; }
.ve-tabs button.is-on { background: #141414; color: #fff; }
.ve-tabs button:disabled { opacity: .35; cursor: default; }
.ve-tabs button span { overflow: hidden; text-overflow: ellipsis; }
.ve-tab-dot { position: absolute; top: 6px; inset-inline-end: 8px; width: 7px; height: 7px; border-radius: 50%; background: #d53c41; }
.ve-pane { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.ve-zoom { font-size: 11px; font-weight: 800; color: #6b7280; padding: 0 8px 0 4px; min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; }
.ve-tb-end { margin-inline-start: auto; }
.ve-ib { width: 28px; height: 28px; flex: 0 0 auto; border: 0; border-radius: 8px; background: transparent; color: #6b7280; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 12px; transition: background .12s ease, color .12s ease; }
.ve-ib:hover:not(:disabled) { background: #141414; color: #fff; }
.ve-ib.is-danger:hover:not(:disabled) { background: #d53c41; }
.ve-ib:disabled { opacity: .3; cursor: default; }
.ve-search { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid #e3e6ea; border-radius: 11px; background: #fff; color: #9aa0a8; }
.ve-search:focus-within { border-color: #141414; box-shadow: 0 0 0 3px rgba(20, 20, 20, .06); }
.ve-search input { border: 0; outline: 0; background: transparent; flex: 1 1 auto; min-width: 0; font-size: 13px; color: #111; }
.ve-nav-top { display: flex; gap: 6px; align-items: center; position: sticky; top: -12px; z-index: 2; background: #fbfbfc; margin: -12px -12px 0; padding: 12px 12px 6px; }
.ve-nav-acts { display: flex; gap: 2px; }
.ve-tree { display: flex; flex-direction: column; gap: 2px; }
.ve-node { position: relative; display: flex; align-items: center; gap: 2px; min-height: 34px; padding-inline-start: calc(var(--lvl, 0) * 14px); border-radius: 10px; }
.ve-node::before { content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: calc(var(--lvl, 0) * 14px - 6px); border-inline-start: 1px dashed #dfe2e6; display: var(--gs-line, block); }
.ve-node[style*="--lvl:0"]::before { display: none; }
.ve-node:hover { background: #f1f2f4; }
.ve-node.is-path > .ve-node-main em { color: #d53c41; }
.ve-node.is-on { background: #141414; }
.ve-node.is-on .ve-node-main, .ve-node.is-on .ve-node-main em, .ve-node.is-on .ve-caret, .ve-node.is-on .ve-ib { color: #fff; }
.ve-node.is-on .ve-node-main small { color: #c9cdd3; }
.ve-node.is-on .ve-node-main b { background: #d53c41; color: #fff; }
.ve-node.is-root { margin-top: 2px; }
.ve-node.is-root > .ve-node-main em { font-weight: 800; }
.ve-caret { width: 22px; height: 28px; flex: 0 0 auto; border: 0; background: transparent; color: #9aa0a8; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ve-caret .fa { transition: transform .15s ease; }
.ve-caret.is-open .fa { transform: rotate(90deg); }
[dir="rtl"] .ve-caret.is-open .fa { transform: rotate(-90deg) scaleX(-1); }
.ve-node-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 6px 4px; text-align: start; cursor: pointer; color: #1d2127; font-size: 12.5px; }
.ve-node-main > .fa { width: 16px; text-align: center; color: #9aa0a8; flex: 0 0 auto; }
.ve-node-main b { width: 22px; height: 22px; border-radius: 7px; background: #eef0f3; color: #4b5563; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ve-node-main span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.ve-node-main em { font-style: normal; font-weight: 700; }
.ve-node-main small { color: #9aa0a8; font-weight: 600; }
.ve-node.is-hit .ve-node-main span { white-space: normal; }
.ve-hit-in { display: block; font-size: 10.5px; }
.ve-tag-so { text-decoration: none; margin-inline-start: auto; font-size: 11px; color: #9a3412; background: #fff7ed; border-radius: 6px; padding: 1px 6px; flex: 0 0 auto; }
.ve-node-acts { display: none; align-items: center; gap: 1px; padding-inline-end: 4px; }
.ve-node:hover .ve-node-acts, .ve-node.is-on .ve-node-acts, .ve-node:focus-within .ve-node-acts { display: inline-flex; }
.ve-foot-hint { margin: 4px 0 0; font-size: 11.5px; color: #9aa0a8; line-height: 1.6; }
.ve-foot-hint .fa { color: #f59e0b; }
.ve-head-acts { margin-inline-start: auto; display: inline-flex; gap: 2px; }
.ve-inline-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ve-design { display: flex; flex-direction: column; gap: 10px; border-top: 1px dashed #e6e8eb; padding-top: 10px; }
.ve-group > .ve-design:first-child { border-top: 0; padding-top: 0; }
.ve-row2 { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.ve-row2 > span { font-size: 11.5px; font-weight: 700; color: #6b7280; }
.ve-row2 > div { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ve-seg.is-icons button { min-width: 32px; height: 30px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 9px; }
.ve-seg.is-wrap button { padding: 4px 9px; }
.ve-seg button .fa + span { margin-inline-start: 5px; }
.ve-seg button:disabled { opacity: .45; cursor: default; }
.ve-aa { font-size: 10.5px; font-weight: 900; letter-spacing: .5px; }
.ve-radius button[data-v]::before { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; display: inline-block; }
.ve-radius button[data-v=""]::before { display: none; }
.ve-radius button[data-v="12px"]::before { border-radius: 4px; }
.ve-radius button[data-v="24px"]::before { border-radius: 7px; }
.ve-radius button[data-v="50%"]::before { display: none; }
.ve-sw { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ve-sw button, .ve-sw-custom { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .14); background: var(--c, #fff); cursor: pointer; padding: 0; position: relative; margin: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; }
.ve-sw button.is-none { background: linear-gradient(135deg, #fff 45%, #d53c41 45%, #d53c41 55%, #fff 55%); }
.ve-sw button.is-on, .ve-sw-custom.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #141414; }
.ve-sw-custom { background: var(--c, conic-gradient(#e80000, #ffb400, #16a34a, #2563eb, #9333ea, #e80000)); color: #fff; font-size: 11px; overflow: hidden; }
.ve-sw-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.ve-sw-custom .fa { pointer-events: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.ve-step { display: inline-flex !important; align-items: center; gap: 4px; background: #f3f4f6; border-radius: 10px; padding: 2px; }
.ve-step output { min-width: 48px; text-align: center; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ve-step .ve-ib { background: #fff; color: #111; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.ve-looks-t { font-size: 11.5px; font-weight: 800; color: #6b7280; }
.ve-looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ve-looks button { border: 1px solid #e3e6ea; background: #fff; border-radius: 12px; padding: 5px; display: flex; flex-direction: column; gap: 5px; cursor: pointer; font-size: 11px; font-weight: 800; color: #374151; transition: border-color .15s ease, transform .15s ease; }
.ve-looks button:hover { border-color: #141414; transform: translateY(-1px); }
.ve-looks button i { display: block; height: 34px; border-radius: 8px; position: relative; overflow: hidden; }
.ve-looks button i::before, .ve-looks button i::after { content: ''; position: absolute; left: 20%; right: 20%; height: 4px; border-radius: 3px; background: currentColor; opacity: .9; }
.ve-looks button i::before { top: 11px; } .ve-looks button i::after { top: 19px; left: 30%; right: 30%; opacity: .5; }
.lk-dark i { background: linear-gradient(0deg, rgba(0,0,0,.8), rgba(0,0,0,.8)), repeating-linear-gradient(45deg, #666 0 6px, #888 6px 12px); color: #fff; }
.lk-brand i { background: linear-gradient(335deg, #e80000 15%, #191919 100%); color: #fff; }
.lk-tint i { background: #b3261e; color: #fff; }
.lk-soft i { background: #f8f9ff; color: #1d2127; border: 1px solid #eceef1; }
.lk-clean i { background: #fff; color: #1d2127; border: 1px solid #eceef1; }
.lk-motion i { background: #fff; color: #d53c41; border: 1px dashed #f3c9ca; }
.lk-motion i::before { animation: veFloat 1.6s ease-in-out infinite; }
@keyframes veFloat { 0%, 100% { transform: translateY(3px); opacity: .3; } 50% { transform: translateY(0); opacity: 1; } }
.ve-icon-row { display: flex; align-items: center; gap: 12px; }
.ve-icon-row > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.ve-icon-row small { font-size: 11.5px; color: #6b7280; direction: ltr; }
.ve-i5.is-big { width: 54px; height: 54px; border-radius: 14px; background: #141414; color: #fff; font-size: 22px; flex: 0 0 auto; }
.ve-add-where { font-size: 12px; font-weight: 700; color: #374151; background: #fff; border: 1px solid #eceef1; border-radius: 12px; padding: 9px 11px; line-height: 1.6; }
.ve-add-where .fa { color: #d53c41; margin-inline-end: 4px; }
.ve-add-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ve-add-card { display: flex; flex-direction: column; gap: 4px; text-align: start; border: 1px solid #e3e6ea; background: #fff; border-radius: 14px; padding: 8px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.ve-add-card:hover:not(:disabled) { border-color: #141414; box-shadow: 0 8px 20px rgba(16, 24, 40, .08); transform: translateY(-1px); }
.ve-add-card:disabled { opacity: .5; cursor: default; }
.ve-add-card b { font-size: 12.5px; font-weight: 800; color: #111; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.ve-add-card b .fa { color: #d53c41; }
.ve-add-card small { font-size: 11px; color: #6b7280; line-height: 1.45; }
.ve-sk { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 62px; border-radius: 10px; background: #f3f4f6; padding: 6px; overflow: hidden; position: relative; }
.ve-sk i { display: block; border-radius: 3px; background: #c9cdd3; }
.ve-sk .sk-dark { position: absolute; inset: 0; border-radius: 0; background: linear-gradient(0deg, rgba(20,20,20,.85), rgba(20,20,20,.85)), repeating-linear-gradient(45deg, #777 0 6px, #999 6px 12px); }
.ve-sk .sk-dark ~ i { position: relative; background: #fff; }
.ve-sk .sk-title { width: 60%; height: 6px; background: #1d2127; }
.ve-sk .sk-text { width: 75%; height: 4px; }
.ve-sk .sk-btn { width: 28%; height: 9px; border-radius: 999px; background: #e80000 !important; margin-top: 2px; }
.ve-sk .sk-cards4, .ve-sk .sk-cards3, .ve-sk .sk-nums3, .ve-sk .sk-people3 { width: 90%; height: 26px; background: transparent; display: grid; gap: 4px; }
.ve-sk .sk-cards4 { grid-template-columns: repeat(4, 1fr); background: repeating-linear-gradient(90deg, #fff 0 calc(25% - 3px), transparent calc(25% - 3px) 25%); }
.ve-sk .sk-cards3 { background: repeating-linear-gradient(90deg, #fff 0 calc(33.33% - 3px), transparent calc(33.33% - 3px) 33.33%); }
.ve-sk .sk-nums3 { height: 30px; background: radial-gradient(circle at 16% 40%, #1d2127 0 5px, transparent 6px), radial-gradient(circle at 50% 40%, #1d2127 0 5px, transparent 6px), radial-gradient(circle at 84% 40%, #1d2127 0 5px, transparent 6px), repeating-linear-gradient(90deg, #fff 0 calc(33.33% - 3px), transparent calc(33.33% - 3px) 33.33%); }
.ve-sk .sk-people3 { height: 44px; background: radial-gradient(circle at 16% 38%, #9aa0a8 0 7px, transparent 8px), radial-gradient(circle at 50% 38%, #9aa0a8 0 7px, transparent 8px), radial-gradient(circle at 84% 38%, #9aa0a8 0 7px, transparent 8px), repeating-linear-gradient(90deg, #fff 0 calc(33.33% - 3px), transparent calc(33.33% - 3px) 33.33%); }
.ve-sk .sk-img-text { width: 90%; height: 44px; background: linear-gradient(90deg, #9aa0a8 0 44%, transparent 44% 52%, #fff 52%); }
.ve-sk .sk-play { position: relative; width: 22px; height: 22px; border-radius: 50%; background: #e80000 !important; box-shadow: 0 0 0 6px rgba(232, 0, 0, .3); }
.ve-sk .sk-rows { width: 80%; height: 40px; background: repeating-linear-gradient(180deg, #fff 0 8px, transparent 8px 11px); border-radius: 4px; }
.ve-sk .sk-quote { width: 70%; height: 36px; border-radius: 8px; background: #fff; position: relative; }
.ve-sk .sk-quote::before { content: '\201C'; position: absolute; top: -4px; left: 8px; font: 900 28px/1 Georgia, serif; color: #e80000; }
.ve-sk .sk-map { width: 90%; height: 44px; border-radius: 8px; background: linear-gradient(135deg, #dbeafe 25%, #e5f4e3 25% 50%, #dbeafe 50% 75%, #e5f4e3 75%); background-size: 20px 20px; }
.ve-sk .sk-map::after { content: ''; position: absolute; left: 50%; top: 40%; width: 10px; height: 10px; border-radius: 50% 50% 50% 0; background: #e80000; transform: translate(-50%, -50%) rotate(-45deg); }
.ve-ipk { position: fixed; inset: 0; z-index: 2000; background: rgba(17, 17, 17, .45); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 16px; }
.ve-ipk.is-open { display: flex; }
.ve-ipk-box { width: min(760px, 100%); max-height: min(640px, 100%); background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); display: flex; flex-direction: column; overflow: hidden; }
.ve-ipk-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; }
.ve-ipk-head b { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.ve-ipk-head b .fa { color: #d53c41; }
.ve-ipk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 16px 10px; border-bottom: 1px solid #eceef1; }
.ve-ipk-bar .ve-search { flex: 1 1 260px; }
.ve-ipk-grid { flex: 1 1 auto; min-height: 200px; overflow-y: auto; padding: 12px 16px; }
.ve-ipk-foot { padding: 8px 16px 12px; font-size: 11.5px; color: #9aa0a8; border-top: 1px solid #f1f2f4; }
.ve-head { display: flex; align-items: center; gap: 10px; }
.ve-head > div { min-width: 0; display: flex; flex-direction: column; }
.ve-head b { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.ve-head small { color: var(--gs-muted); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ve-back { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; border: 1px solid var(--gs-border); background: #fff; cursor: pointer; }
.ve-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 11.5px; color: #9aa0a8; }
.ve-crumbs button { border: 0; background: #eef0f3; color: #4b5563; font-weight: 700; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; cursor: pointer; }
.ve-crumbs button:hover { background: #e3e6ea; }
.ve-crumbs button.is-on { background: #d53c41; color: #fff; }
.ve-group { background: #fff; border: 1px solid #eceef1; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.ve-group h6 { margin: 0; font-size: 12.5px; font-weight: 800; color: #111; display: flex; align-items: center; gap: 7px; }
.ve-group h6 .fa { width: 22px; height: 22px; border-radius: 7px; background: #fdecec; color: #d53c41; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.ve-group.is-section h6 .fa { background: #eef0f3; color: #374151; }
.ve-hint, .ve-sub, .ve-note, .ve-typing { margin: 0; font-size: 12.5px; color: #4b5563; line-height: 1.6; }
.ve-hint .fa { color: #d53c41; margin-inline-end: 4px; }
.ve-note { font-size: 12px; color: #6b7280; background: #f7f8fa; border-radius: 10px; padding: 8px 10px; }
.ve-note.is-warn { background: #fff7ed; color: #9a3412; }
.ve-typing { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #d53c41; }
.ve-dot { width: 8px; height: 8px; border-radius: 50%; background: #d53c41; animation: gsLive 1.2s ease-out infinite; }
.ve-keys { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11.5px; color: #6b7280; font-weight: 600; }
.ve-keys kbd { background: #fff; color: #111; border: 1px solid #d9dce1; border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; font-size: 11px; font-weight: 700; box-shadow: none; }
.ve-img { display: flex; gap: 10px; align-items: center; }
.ve-img-prev { width: 76px; height: 76px; flex: 0 0 auto; border-radius: 12px; border: 1px dashed #cfd3d9; background: #f7f8fa repeating-conic-gradient(#eef0f3 0 25%, #fff 0 50%) 0 0 / 14px 14px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; padding: 4px; color: #9aa0a8; font-size: 22px; }
.ve-img-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ve-img-acts { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.ve-img-acts small, .ve-file small { font-size: 11.5px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: start; }
.ve-img-acts > div { display: flex; flex-wrap: wrap; gap: 6px; }
.ve-file { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ve-file > .fa { width: 34px; height: 34px; border-radius: 10px; background: #f3f4f6; display: inline-flex; align-items: center; justify-content: center; color: #374151; }
.ve-file small { flex: 1 1 120px; }
.ve-btn { height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid #e3e6ea; background: #fff; color: #1d2127; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; white-space: nowrap; }
.ve-btn:hover:not(:disabled) { background: #141414; border-color: #141414; color: #fff; }
.ve-btn.is-main { background: #141414; border-color: #141414; color: #fff; }
.ve-btn.is-main:hover:not(:disabled) { background: #d53c41; border-color: #d53c41; }
.ve-btn.is-danger { color: #d53c41; border-color: #f3c9ca; background: #fff; }
.ve-btn.is-danger:hover:not(:disabled) { background: #d53c41; color: #fff; border-color: #d53c41; }
.ve-btn:disabled { opacity: .4; cursor: default; }
.ve-struct { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ve-struct .ve-btn { justify-content: center; }
.ve-field { display: flex !important; flex-direction: column; gap: 4px; margin: 0 !important; }
.ve-field > span { font-size: 11.5px; font-weight: 700; color: #6b7280; }
.ve-field .form-control { height: 38px; border-radius: 10px; font-size: 13px; }
.ve-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.ve-seg button { border: 1px solid #e3e6ea; background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 11.5px; font-weight: 700; color: #374151; cursor: pointer; }
.ve-seg button.is-on { background: #141414; color: #fff; border-color: #141414; }
.ve-switch { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; font-size: 12.5px; font-weight: 700; color: #374151; cursor: pointer; }
.ve-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ve-switch span { position: relative; width: 36px; height: 21px; border-radius: 999px; background: #cfd3d9; transition: background .15s ease; flex: 0 0 auto; }
.ve-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .15s ease; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.ve-switch input:checked + span { background: #16a34a; }
.ve-switch input:checked + span::after { transform: translateX(15px); }
.ve-empty { text-align: center; padding: 14px 10px 6px; color: #6b7280; }
.ve-empty > .fa { font-size: 26px; color: #d53c41; margin-bottom: 8px; }
.ve-empty .ve-btn { margin-top: 14px; }
.ve-empty p { margin: 0 0 4px; font-weight: 800; color: #111; font-size: 14px; }
.ve-empty small { font-size: 12px; line-height: 1.6; display: block; }
.ve-outline { display: flex; flex-direction: column; gap: 4px; }
.ve-outline button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; padding: 7px 8px; border-radius: 10px; text-align: start; cursor: pointer; font-size: 12.5px; font-weight: 700; color: #1d2127; }
.ve-outline button:hover { background: #f3f4f6; }
.ve-outline button b { width: 20px; height: 20px; border-radius: 6px; background: #eef0f3; font-size: 10.5px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #6b7280; }
.ve-outline button > .fa { color: #9aa0a8; width: 14px; text-align: center; }
.ve-outline button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ve-outline small { color: #9aa0a8; font-weight: 600; }
@media (max-width: 1199.98px) {
    .ve-wrap { grid-template-columns: minmax(0, 1fr); height: auto; }
    .ve-stage { height: 70vh; min-height: 460px; }
    .ve-side { max-height: 75vh; min-height: 420px; }
}
@media (max-width: 575.98px) { .ve-toolbar .ve-tb.is-text span { display: none; } }

/* ------------------------------------------------------------ الرئيسية: محتاج انتباهك + آخر العمليات + أزرار سريعة في درج الجيم */
.pf-attn-gyms { display: block; font-size: 11.5px; color: #6b7280; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-pulse-grid > .pf-recent { grid-column: 1 / -1; }
.pf-recent-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
@media (max-width: 767.98px) { .pf-recent-list { grid-template-columns: minmax(0, 1fr); } }
.pf-recent-li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px dashed #eef0f2; min-width: 0; }
.pf-recent-ic { width: 32px; height: 32px; border-radius: 10px; background: #f3f4f6; color: #374151; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pf-recent-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pf-recent-main b { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-recent-main small { font-size: 11.5px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-recent-t { font-size: 11.5px; color: #9aa0a8; white-space: nowrap; flex: 0 0 auto; }
.pf-gp-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; padding: 10px 18px; border-top: 1px solid #eef0f2; }
.pf-gp-act { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 6px; border-radius: 12px; border: 1px solid #eceef1; background: #fff; color: #1d2127 !important; text-decoration: none !important; font-size: 11.5px; font-weight: 700; text-align: center; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.pf-gp-act .fa { font-size: 16px; color: #d53c41; }
.pf-gp-act:hover { background: #141414; border-color: #141414; color: #fff !important; }
.pf-gp-act:hover .fa { color: #fff; }
.pf-gp-act.is-wait { opacity: .45; pointer-events: none; }

/* [المنصة] الإحصائيات */
.pi-custom { display: inline-flex; gap: 6px; }
.pi-custom[hidden] { display: none; }
.pi-custom input { height: 40px; border: 1px solid var(--gs-border); border-radius: 12px; padding: 0 12px; background: #fff; }
.pi-body.is-loading { opacity: .55; pointer-events: none; transition: opacity .2s; }
#piRevenue { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
#piRevenue[hidden] { display: none; }
.pf-table td.is-num, .pf-table th.is-num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pi-gym { display: inline-flex; align-items: center; gap: 8px; color: inherit !important; text-decoration: none !important; }
.pi-gym img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; }
.pi-gym:hover b { color: var(--gs-red); }
.pi-empty { text-align: center; color: var(--gs-muted); padding: 24px !important; }
@media (max-width: 991.98px) { #piApp .gs-dash-grid { grid-template-columns: minmax(0, 1fr); } #piApp .gs-span-2, #piApp .gs-span-3 { grid-column: auto; } }

/* [المنصة] كشف حساب الجيم (الاشتراك + الميداليات) */
.pf-stmt { margin-bottom: 18px; }
.pf-stmt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pf-stmt-kpis > div { background: #f7f8fa; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; border-top: 3px solid #e1e3e8; }
.pf-stmt-kpis small { color: var(--gs-muted); font-weight: 700; font-size: 11.5px; }
.pf-stmt-kpis b { font-size: 20px; font-weight: 800; direction: ltr; text-align: start; font-variant-numeric: tabular-nums; }
.pf-stmt-kpis b em { font-style: normal; font-size: 11px; color: var(--gs-muted); font-weight: 700; }
.pf-stmt-kpis span { color: var(--gs-muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-stmt-kpis .is-open { border-top-color: #d97706; }
.pf-stmt-kpis .is-late { border-top-color: #d53c41; }
.pf-stmt-kpis .is-late b { color: #b4262b; }
.pf-stmt-kpis .is-wait { border-top-color: #1d4fb8; }
.pf-stmt-kpis .is-paid { border-top-color: #16a34a; }
.pf-stmt-h { font-size: 12.5px; font-weight: 800; color: var(--gs-muted); margin: 14px 0 8px; text-transform: none; }
.pf-stmt-h small { font-weight: 600; margin-inline-start: 6px; }
.pf-stmt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #eef0f2; border-radius: 12px; margin-bottom: 6px; color: inherit !important; text-decoration: none !important; transition: border-color .15s ease, background .15s ease; }
.pf-stmt-row:hover { border-color: #d7dae0; background: #fafbfc; }
.pf-stmt-row.is-late { border-color: rgba(213,60,65,.35); background: #fdf6f6; }
.pf-stmt-row > div:first-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-stmt-row b .fa { color: #8a909a; margin-inline-end: 4px; }
.pf-stmt-row small { color: var(--gs-muted); font-size: 12px; }
.pf-stmt-end { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.pf-stmt-end b { font-variant-numeric: tabular-nums; }
@media (max-width: 767px) { .pf-stmt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* [المنصة] قوالب المواقع (الاختيار + المكتبة + مودال الجيم) */
.pf-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pf-tpl-grid.is-lib { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pf-tpl-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #e6e8ec; border-radius: 16px; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.pf-tpl-card:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, .08); }
.pf-tpl-card.is-pick { cursor: pointer; }
.pf-tpl-card.is-pick:focus-visible { outline: 2px solid #d53c41; outline-offset: 2px; }
.pf-tpl-card.is-on { border-color: #d53c41; box-shadow: 0 0 0 3px rgba(213, 60, 65, .16); }
.pf-tpl-card.is-off { opacity: .6; }
.pf-tpl-thumb { position: relative; height: 170px; background: #111; overflow: hidden; }
.pf-tpl-grid.is-lib .pf-tpl-thumb { height: 220px; }
.pf-tpl-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: object-position 3.5s ease; }
.pf-tpl-card:hover .pf-tpl-thumb img { object-position: bottom; }
.pf-tpl-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: rgba(255, 255, 255, .5); background: linear-gradient(135deg, #1d1d1f, #0b0b0c); }
.pf-tpl-ph .fa { font-size: 22px; }
.pf-tpl-ph b { font-size: 34px; color: #fff; font-weight: 800; text-transform: uppercase; }
.pf-tpl-check { position: absolute; top: 10px; inset-inline-end: 10px; width: 28px; height: 28px; border-radius: 50%; background: #d53c41; color: #fff; display: none; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.pf-tpl-card.is-on .pf-tpl-check { display: inline-flex; }
.pf-tpl-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.pf-tpl-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pf-tpl-title b { font-size: 15px; font-weight: 800; }
.pf-tpl-body p { margin: 0; color: var(--gs-muted); font-size: 12.5px; line-height: 1.5; }
.pf-tpl-meta { color: var(--gs-muted); font-size: 11.5px; }
.pf-tpl-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.pf-tpl-acts .btn { border-radius: 10px; font-weight: 700; font-size: 12.5px; }
.pf-tpl-acts .dropdown-menu { border-radius: 12px; box-shadow: 0 12px 28px rgba(0, 0, 0, .12); border-color: #e6e8ec; }
.pf-tpl-pagelinks { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 12px; }
.pf-tpl-pagelinks span { color: var(--gs-muted); font-weight: 700; }
.pf-tpl-pagelinks a { padding: 3px 9px; border-radius: 999px; background: #f3f4f6; color: #3a404a !important; font-weight: 700; text-decoration: none !important; transition: background .15s ease, color .15s ease; }
.pf-tpl-pagelinks a:hover { background: #141414; color: #fff !important; }
.pf-tpl-box { margin: 10px 0 8px; max-height: 470px; overflow: auto; padding: 2px; }
.pf-site-mode { margin-bottom: 6px; }
.pf-tpl-tabs { margin-bottom: 14px; flex-wrap: wrap; }
.pf-tpl-intro { margin: 0; max-width: 900px; }
.pf-tpl-intro span { display: block; margin-top: 2px; }
@media (max-width: 575px) { .pf-tpl-grid { grid-template-columns: 1fr; } }

/* [الديمو] ملو داتا الديمو (جيم الديمو بس) */
.pf-demo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-inline-start: 4px solid #7c3aed; }
.pf-demo-main { display: flex; align-items: flex-start; gap: 14px; flex: 1 1 420px; min-width: 0; }
.pf-demo-ic { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; background: #f1ebfe; color: #7c3aed; }
.pf-demo-title { font-weight: 800; font-size: 16px; }
.pf-demo-sub { color: var(--gs-muted); font-size: 13px; margin-top: 2px; line-height: 1.6; }
.pf-demo-state { flex: 1 1 100%; order: 3; background: #faf8ff; border: 1px solid #ece4fd; border-radius: 12px; padding: 12px 14px; }
.pf-demo-state.is-err { background: #fff7f7; border-color: #f7d4d5; }
.pf-demo-state.is-err .pf-demo-head { color: #b42318; }
.pf-demo-head { font-weight: 700; font-size: 14px; }
.pf-demo-head small { font-weight: 500; color: var(--gs-muted); margin-inline-start: 6px; }
.pf-demo-bar { height: 8px; background: #ece4fd; border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.pf-demo-bar span { display: block; height: 100%; background: linear-gradient(90deg, #7c3aed, #a855f7); border-radius: 99px; transition: width .4s ease; }
.pf-demo-meta { font-size: 12px; color: var(--gs-muted); }
.pf-demo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pf-demo-chip { background: #fff; border: 1px solid #ece4fd; border-radius: 99px; padding: 3px 10px; font-size: 12px; color: #4b5563; }
.pf-demo-chip b { color: #111; }
@media (max-width: 575px) { .pf-demo #dmFill { width: 100%; } }

/* [الموقع الرئيسي] شاشة إدارة الموقع */
.ps-top { flex-wrap: wrap; gap: 10px; }
.ps-top .gs-tabs em { font-style: normal; background: #d53c41; color: #fff; border-radius: 99px; padding: 0 7px; font-size: 11px; margin-inline-start: 4px; }
.ps-tab .gs-panel { margin-bottom: 16px; }
.ps-tab .gs-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ps-field { padding: 12px 0; border-top: 1px dashed #eceef1; }
.ps-field:first-child { border-top: 0; padding-top: 0; }
.ps-field-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ps-field-head label { font-weight: 800; margin: 0; }
.ps-reset { border: 0; background: none; color: #8a909b; font-size: 12px; font-weight: 700; cursor: pointer; }
.ps-reset:hover { color: #d53c41; }
.ps-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ps-pair small { display: block; font-size: 11px; font-weight: 800; color: #8a909b; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.ps-pair [dir=rtl] { font-family: "Cairo", system-ui, sans-serif; }
.ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 16px; }
.ps-img-row { display: flex; gap: 8px; align-items: center; }
.ps-img-row .form-control { flex: 1; min-width: 0; }
.ps-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ps-shot { border: 1px solid #eceef1; border-radius: 14px; overflow: hidden; background: #fff; }
.ps-shot-img { aspect-ratio: 16 / 10; background: #f3f4f6; overflow: hidden; }
.ps-shot-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ps-shot-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ps-shot-body b { font-size: 14px; }
.ps-serp { margin-top: 14px; display: grid; gap: 10px; }
.ps-serp label { font-weight: 800; }
.ps-serp-item { border: 1px solid #eceef1; border-radius: 12px; padding: 12px 14px; background: #fff; }
.ps-serp-item small { color: #188038; font-size: 12.5px; display: block; }
.ps-serp-item b { color: #1a0dab; font-size: 17px; font-weight: 500; display: block; margin: 2px 0; }
.ps-serp-item p { color: #4d5156; font-size: 13.5px; margin: 0; }
.ps-serp-item span { font-size: 11.5px; color: #8a909b; }
.ps-serp-item span.is-warn { color: #d53c41; font-weight: 700; }
.ps-demo-state { display: grid; gap: 8px; margin-bottom: 16px; }
.ps-st { padding: 10px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; background: #f6f7f9; }
.ps-st.is-ok { background: #e9f8ef; color: #15803d; } .ps-st.is-bad { background: #fdecee; color: #b42318; } .ps-st.is-warn { background: #fff4e5; color: #b45309; } .ps-st.is-off { color: #6b7280; }
.ps-st.is-link .btn-link { padding: 0 6px; font-weight: 800; }
.ps-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.ps-leads { display: grid; gap: 12px; margin-top: 12px; }
.ps-lead { border: 1px solid #eceef1; border-radius: 16px; background: #fff; padding: 16px; }
.ps-lead.is-new { border-inline-start: 4px solid #d53c41; }
.ps-lead-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ps-lead-top b { font-size: 16px; }
.ps-lead-top small { color: #8a909b; margin-inline-start: auto; }
.ps-lead-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0; font-size: 13.5px; color: #4b5563; }
.ps-lead-meta a { color: #111; font-weight: 700; }
.ps-lead-msg { background: #f6f7f9; border-radius: 12px; padding: 10px 12px; margin: 8px 0; white-space: pre-wrap; font-size: 14px; }
.ps-lead-edit { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.ps-lead-edit select { max-width: 190px; }
.ps-lead-edit input { flex: 1; min-width: 0; }
@media (max-width: 767px) { .ps-pair { grid-template-columns: 1fr; } .ps-lead-edit { flex-wrap: wrap; } .ps-lead-edit select { max-width: none; flex: 1 1 100%; } .ps-lead-top small { margin-inline-start: 0; flex-basis: 100%; } }

/* [لينك فاتورة] فلتر فاتورة واحدة */
.pf-only-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #141414; color: #fff; margin-bottom: 12px; font-weight: 600; }
.pf-only-bar span { flex: 1; }

/* [الباقات] لينكات الجيم وأكواد QR */
.pf-qr-list { display: grid; gap: 12px; }
.pf-qr-item { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid #eceef1; border-radius: 14px; background: #fff; }
.pf-qr-code { width: 132px; height: 132px; flex: 0 0 auto; padding: 6px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #eceef1; }
.pf-qr-code img, .pf-qr-code canvas { width: 100% !important; height: 100% !important; image-rendering: pixelated; }
.pf-qr-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pf-qr-meta b { font-size: 14.5px; }
.pf-qr-meta b .fa { color: #d53c41; }
.pf-qr-kind { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #6b7280; }
.pf-qr-kind .fa { color: #d53c41; }
.pf-qr-meta a { font-size: 13px; color: #1d4fb8; word-break: break-all; text-align: left; }
html[dir="rtl"] .pf-qr-meta a { text-align: right; }
.pf-qr-meta small { color: #8a909b; font-size: 12px; }
.pf-qr-acts { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.pf-qr-br { display: inline-block; margin-inline-start: 4px; padding: 1px 8px; border-radius: 999px; background: #f1f2f4; color: #4b5563; font-size: 11.5px; font-weight: 700; vertical-align: 1px; }
@media (max-width: 480px) { .pf-qr-item { flex-direction: column; align-items: flex-start; } }

/* [عزل الديمو] بادج DEMO */
.pf-demo-tag { display: inline-flex; align-items: center; vertical-align: middle; margin-inline-start: 6px; padding: 1px 7px; border-radius: 6px; background: #7c3aed; color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; line-height: 1.6; font-style: normal; }
.pf-demo-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 14px; border-radius: 12px; background: #f3eefe; color: #5b21b6; border: 1px solid #e3d8fc; font-size: 13.5px; }
.pf-demo-banner .fa { font-size: 16px; }
.gs-kpi.is-demo { border-color: #e3d8fc; }
.gs-kpi.is-demo .gs-kpi-ic { background: #f3eefe; color: #7c3aed; }
.gs-kpi.is-demo .gs-kpi-sub a { color: #7c3aed; font-weight: 700; }
@media (min-width: 1400px) { .pf-kpis:has(.is-demo) { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .pf-kpis .gs-kpi.is-demo { grid-column: 1 / -1; } }
.pf-lead-origin { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; background: #eefaf2; color: #15803d; font-size: 12.5px; font-weight: 700; margin-inline-start: 8px; text-decoration: none; }
a.pf-lead-origin:hover { background: #dcf5e5; color: #15803d; text-decoration: none; }

/* ================= [CRM] متابعة العملاء ================= */
.gs-pill.is-purple { background: #f3eefe; color: #6d28d9; }
.crm-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) repeat(2, minmax(0, 2fr)); gap: 12px; margin-bottom: 16px; }
.crm-kpi { background: #fff; border: 1px solid var(--gs-border); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.crm-kpi small { font-size: 12px; font-weight: 700; color: var(--gs-muted); }
.crm-kpi > b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.crm-kpi > b.is-green { color: #15803d; }
.crm-kpi.is-hero { background: linear-gradient(135deg, #141414, #2a1215); color: #fff; border: 0; }
.crm-kpi.is-hero small { color: rgba(255, 255, 255, .65); }
.crm-src-bars { display: flex; flex-wrap: wrap; gap: 6px; }
.crm-src-bars span { display: inline-flex; align-items: center; gap: 6px; background: #f6f7f9; border-radius: 99px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; }
.crm-src-bars b { font-weight: 800; }
.crm-src-bars em { color: var(--gs-muted); font-style: normal; }
.crm-top { margin-bottom: 10px; }
.crm-stages { flex-wrap: wrap; gap: 6px; }
.pf-fchip.is-due:not(.is-on) { border-color: #f3b4b8; color: #b91c1c; }
.pf-fchip.is-due:not(.is-on) .fa, .pf-fchip.is-due:not(.is-on) b { color: #d53c41; }
.crm-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.crm-filters .pf-search { flex: 1 1 260px; }
.crm-filters .pf-search input { width: 100%; height: 40px; border: 1px solid var(--gs-border); border-radius: 12px; padding-inline-start: 36px; padding-inline-end: 12px; }
.crm-filters select { width: auto; min-width: 170px; height: 40px; border-radius: 12px; }
.crm-list { display: flex; flex-direction: column; gap: 10px; }
.crm-list.is-loading { opacity: .55; }
.crm-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--gs-border); border-radius: 16px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.crm-row:hover, .crm-row:focus { border-color: #c9ccd2; box-shadow: 0 8px 20px rgba(0, 0, 0, .06); outline: 0; }
.crm-row.is-due { border-inline-start: 4px solid #d53c41; }
.crm-src-ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: #f6f7f9; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: #3a404a; }
.crm-row-main { flex: 1 1 auto; min-width: 0; }
.crm-row-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.crm-row-top b { font-size: 15px; }
.crm-row-top small { color: var(--gs-muted); font-size: 12.5px; }
.crm-no { font-family: Consolas, monospace; font-size: 12px; font-weight: 700; color: #8a9099; background: #f3f4f6; border-radius: 6px; padding: 1px 6px; }
.crm-row-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 12.5px; color: var(--gs-muted); }
.crm-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; text-align: end; }
.crm-row-side small { font-size: 12px; color: var(--gs-muted); }
.crm-next-at.is-due { color: #d53c41 !important; font-weight: 700; }
.crm-won { color: #15803d !important; font-weight: 700; }
.crm-row-acts { display: flex; gap: 6px; flex: 0 0 auto; }
.crm-ic { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--gs-border); display: inline-flex; align-items: center; justify-content: center; color: #3a404a; background: #fff; }
.crm-ic:hover { border-color: #141414; color: #141414; text-decoration: none; }
.crm-ic.is-wa { color: #16a34a; }
@media (max-width: 991.98px) { .crm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .crm-kpi.is-wide { grid-column: 1 / -1; } }
@media (max-width: 767.98px) {
    .crm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .crm-kpi.is-hero { grid-column: 1 / -1; }
    .crm-row { flex-wrap: wrap; } .crm-row-main { flex-basis: calc(100% - 60px); } .crm-row-side { align-items: flex-start; text-align: start; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; gap: 6px 12px; } .crm-row-acts { position: absolute; inset-inline-end: 12px; }
    .crm-row { position: relative; } .crm-filters select { flex: 1 1 45%; min-width: 0; }
}
/* التيكيت */
.crm-lead-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.crm-lead-head small { flex-basis: 100%; color: var(--gs-muted); font-size: 12.5px; }
.crm-stepper { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 2px; }
.crm-step { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--gs-border); background: #fff; font-weight: 700; font-size: 12.5px; color: #636b78; cursor: pointer; white-space: nowrap; }
.crm-step.is-past { background: #f6f7f9; color: #3a404a; }
.crm-step.is-on { border-color: transparent; box-shadow: 0 8px 18px rgba(0, 0, 0, .1); }
.crm-step.is-on.is-blue { background: var(--gs-blue, #1d4fb8); color: #fff; }
.crm-step.is-on.is-orange { background: #ea580c; color: #fff; }
.crm-step.is-on.is-purple { background: #7c3aed; color: #fff; }
.crm-step.is-on.is-dark { background: #141414; color: #fff; }
.crm-step.is-on.is-green { background: #16a34a; color: #fff; }
.crm-step.is-on.is-gray { background: #636b78; color: #fff; }
.crm-step.is-won:not(.is-on) { color: #15803d; border-color: #bfe8cd; }
.crm-step.is-lost:not(.is-on) { color: #9aa0a8; }
.crm-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.crm-side, .crm-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.crm-box { background: #fff; border: 1px solid var(--gs-border); border-radius: 16px; padding: 16px; }
.crm-box h6 { font-weight: 800; font-size: 14px; margin: 0 0 12px; }
.crm-box-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.crm-box-h h6 { margin: 0; }
.crm-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13.5px; }
.crm-dl dt { color: var(--gs-muted); font-weight: 600; }
.crm-dl dd { margin: 0; font-weight: 600; word-break: break-word; }
.crm-contact { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.crm-msg { margin-top: 12px; background: #f6f7f9; border-radius: 12px; padding: 10px 12px; }
.crm-msg small { color: var(--gs-muted); font-weight: 700; font-size: 12px; }
.crm-msg p { margin: 4px 0 0; font-size: 13.5px; white-space: pre-wrap; }
.crm-others { margin-top: 10px; font-size: 12.5px; color: var(--gs-muted); }
.crm-owner-name { font-weight: 700; }
.crm-won-box, .crm-lost-box { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; margin-top: 12px; }
.crm-won-box { background: #eefaf2; color: #15803d; }
.crm-lost-box { background: #f6f7f9; color: #636b78; }
.crm-won-box .fa, .crm-lost-box .fa { font-size: 20px; margin-top: 2px; }
.crm-won-box small, .crm-lost-box small { display: block; }
.crm-won-box a { display: block; font-weight: 700; color: #15803d; }
#crmOwnerBox .btn-block { margin-top: 12px; }
#crmOwnerBox .crm-next-at { margin: 12px 0 0; font-size: 13px; color: #3a404a; }
.crm-del { margin-top: 8px; padding: 0; }
.crm-acts, .crm-srcs, .crm-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.crm-acts button, .crm-srcs button, .crm-quick button { border: 1px solid var(--gs-border); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; color: #3a404a; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.crm-acts button.is-on, .crm-srcs button.is-on, .crm-quick button.is-on { background: #141414; border-color: #141414; color: #fff; }
.crm-follow textarea { margin-bottom: 10px; }
.crm-next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.crm-next > span { font-size: 12.5px; font-weight: 700; color: var(--gs-muted); }
.crm-next .crm-quick { margin: 0; }
.crm-next input { width: auto; height: 36px; border-radius: 10px; }
.crm-follow-end { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crm-follow-end select, .crm-follow-end input { width: auto; flex: 1 1 180px; height: 38px; border-radius: 10px; }
.crm-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-height: 460px; overflow: auto; }
.crm-timeline li { display: flex; gap: 10px; }
.crm-tl-ic { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; background: #f3f4f6; display: inline-flex; align-items: center; justify-content: center; color: #3a404a; }
.crm-timeline li.is-won .crm-tl-ic { background: #eefaf2; color: #16a34a; }
.crm-timeline li.is-stage .crm-tl-ic { background: #f3eefe; color: #7c3aed; }
.crm-timeline li.is-whatsapp .crm-tl-ic { color: #16a34a; }
.crm-timeline li b { font-size: 13.5px; }
.crm-timeline li p { margin: 3px 0; font-size: 13px; white-space: normal; }
.crm-timeline li small { display: block; color: var(--gs-muted); font-size: 12px; }
.crm-tl-empty { color: var(--gs-muted); font-size: 13px; }
.crm-label { font-size: 12.5px; font-weight: 700; color: var(--gs-muted); }
.crm-gyms { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; max-height: 280px; overflow: auto; }
.crm-gym { text-align: start; border: 1px solid var(--gs-border); background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.crm-gym b { display: block; font-size: 14px; }
.crm-gym small { color: var(--gs-muted); }
.crm-gym em { display: block; font-style: normal; font-size: 12px; color: #b35c00; }
.crm-gym.is-on { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); }
@media (max-width: 991.98px) { .crm-grid { grid-template-columns: 1fr; } }
.ps-tab-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; font-weight: 700; font-size: 13px; color: #3a404a; text-decoration: none; }
.ps-tab-link:hover { background: #f3f4f6; color: #141414; text-decoration: none; }
.ps-tab-link .fa-external-link { font-size: 11px; opacity: .6; }

/* [بحث شامل] Ctrl+K */
.pf-search-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--gs-border); border-radius: 12px; background: #fff; color: #636b78; font-size: 13px; font-weight: 600; cursor: pointer; }
.pf-search-btn:hover { border-color: #c9ccd2; color: #141414; }
.pf-search-btn kbd { font-family: inherit; font-size: 11px; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 6px; padding: 1px 6px; color: #636b78; box-shadow: none; }
@media (max-width: 767.98px) { .pf-search-btn span, .pf-search-btn kbd { display: none; } .pf-search-btn { width: 40px; justify-content: center; padding: 0; } }
.pf-cmdk .modal-dialog { max-width: 620px; margin-top: 10vh; }
.pf-cmdk .modal-content { border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.pf-cmdk-in { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--gs-border); }
.pf-cmdk-in .fa { color: #9aa0a8; font-size: 16px; }
.pf-cmdk-in input { flex: 1; border: 0; outline: 0; font-size: 16px; font-weight: 600; background: none; }
.pf-cmdk kbd { font-family: inherit; font-size: 11px; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 6px; padding: 1px 6px; color: #636b78; box-shadow: none; }
.pf-cmdk-res { max-height: 56vh; overflow: auto; padding: 8px; }
.pf-cmdk-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: none; border-radius: 12px; text-align: start; cursor: pointer; }
.pf-cmdk-item.is-on, .pf-cmdk-item:hover { background: #f3f4f6; }
.pf-cmdk-ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: #141414; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.pf-cmdk-t { flex: 1; min-width: 0; }
.pf-cmdk-t b, .pf-cmdk-t small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-cmdk-t small { color: var(--gs-muted); font-size: 12.5px; }
.pf-cmdk-item em { font-style: normal; font-size: 11.5px; font-weight: 700; color: #9aa0a8; }
.pf-cmdk-empty { color: var(--gs-muted); font-size: 13px; padding: 14px 10px; margin: 0; }
.pf-cmdk-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--gs-border); font-size: 12px; color: #9aa0a8; }

/* [الديمو] البادج دايماً أبيض على بنفسجي مهما كان المكان اللي جواه (كانت بتاخد لون الرمادي من العناصر اللي حواليها) */
.pf-demo-tag, span.pf-demo-tag, b .pf-demo-tag, small .pf-demo-tag { color: #fff !important; background: #7c3aed !important; font-size: 10.5px !important; font-weight: 800 !important; letter-spacing: .06em !important; line-height: 1.6 !important; padding: 1px 7px !important; border-radius: 6px !important; display: inline-flex !important; width: auto !important; direction: ltr; text-transform: uppercase; }
/* [CRM] لوحة المراحل */
.crm-view button { display: inline-flex; align-items: center; gap: 6px; }
.crm-board { display: grid; grid-template-columns: repeat(6, minmax(230px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.crm-board.is-loading { opacity: .55; }
.crm-col { background: #f6f7f9; border: 1px solid var(--gs-border); border-radius: 16px; display: flex; flex-direction: column; min-height: 200px; transition: box-shadow .15s, border-color .15s; }
.crm-col.is-over { border-color: #141414; box-shadow: 0 0 0 3px rgba(20, 20, 20, .08); }
.crm-col header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 800; font-size: 13.5px; border-bottom: 1px solid var(--gs-border); flex-wrap: wrap; }
.crm-col header b { margin-inline-start: auto; background: #fff; border-radius: 99px; padding: 1px 9px; font-size: 12px; }
.crm-col header small { flex-basis: 100%; font-size: 11px; color: var(--gs-muted); font-weight: 600; }
.crm-col.is-blue header .fa { color: #1d4fb8; } .crm-col.is-orange header .fa { color: #ea580c; } .crm-col.is-purple header .fa { color: #7c3aed; }
.crm-col.is-dark header .fa { color: #141414; } .crm-col.is-green header .fa { color: #16a34a; } .crm-col.is-gray header .fa { color: #9aa0a8; }
.crm-col-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow: auto; }
.crm-card { background: #fff; border: 1px solid var(--gs-border); border-radius: 12px; padding: 10px 12px; cursor: grab; display: flex; flex-direction: column; gap: 3px; transition: box-shadow .15s; }
.crm-card:hover { box-shadow: 0 8px 18px rgba(0, 0, 0, .08); }
.crm-card.is-drag { opacity: .5; }
.crm-card.is-due { border-inline-start: 3px solid #d53c41; }
.crm-card-top { display: flex; align-items: center; justify-content: space-between; color: #9aa0a8; }
.crm-card b { font-size: 14px; }
.crm-card small { font-size: 12px; color: var(--gs-muted); }
.crm-col-empty { color: #b3b8c0; font-size: 12.5px; text-align: center; padding: 18px 0; margin: 0; border: 2px dashed #e3e5e9; border-radius: 12px; }
.crm-col-more { border: 0; background: none; color: var(--gs-red, #d53c41); font-weight: 700; font-size: 12.5px; padding: 6px; cursor: pointer; }

/* [مصطلح] البادج بالعربي "نسخة تجريبية": من غير مسافات بين الحروف (بتقطّع الحروف العربي) */
html[dir="rtl"] .gs-demo-tag, html[dir="rtl"] span.gs-demo-tag, html[dir="rtl"] .pf-demo-tag, html[dir="rtl"] span.pf-demo-tag { letter-spacing: 0 !important; direction: rtl !important; }
/* [استوديو الموقع] "كل صوري" أول فولدر ومميز */
.pf-folder.is-site { border-color: var(--gs-red); color: var(--gs-red); }
.pf-folder.is-site .fa { color: var(--gs-red); }
.pf-prefix-ro { background: #f6f7f9 !important; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .04em; cursor: default; max-width: 200px; }

/* [سجل العمليات] الفلاتر + التفاصيل الطويلة */
.pf-log-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 0 0 14px; }
.pf-log-date { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: #6b7280; font-weight: 600; }
.pf-log-date input { height: 38px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 0 10px; background: #fff; font-size: 13px; color: #111827; }
.pf-log-clear { border: 0; background: transparent; color: #d53c41; font-weight: 700; font-size: 12.5px; padding: 6px 4px; }
.pf-log-row.is-long { cursor: pointer; }
.pf-log-row.is-long .pf-log-d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-log-row.is-open .pf-log-d { display: block; -webkit-line-clamp: unset; white-space: pre-wrap; }
.pf-log-more { display: inline-block; margin-top: 4px; color: #d53c41; font-weight: 700; font-size: 11.5px; }
.pf-log-row.is-open { background: #fafafb; }
@media (max-width: 767px) { .pf-log-filters > * { flex: 1 1 46%; } .pf-log-date input { width: 100%; } }

/* ================= [صحة الجيمات] الدايرة + البادج + الكارت + لوحة الرئيسية */
.pf-hr { --hc: #9aa0a6; position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; vertical-align: middle; }
.pf-hr svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pf-hr-bg { fill: none; stroke: #eef0f3; stroke-width: 4; }
.pf-hr-fg { fill: none; stroke: var(--hc); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.pf-hr b { position: relative; font-size: 11px; font-weight: 800; color: #1f2329; font-variant-numeric: tabular-nums; }
.pf-hr[style*="56px"] b { font-size: 17px; } .pf-hr[style*="84px"] b { font-size: 24px; } .pf-hr[style*="40px"] b { font-size: 12.5px; }
.pf-hr.is-good { --hc: #16a34a; } .pf-hr.is-watch { --hc: #e08a00; } .pf-hr.is-risk { --hc: #d53c41; }
.pf-hr.is-none { width: 30px; height: 30px; border-radius: 50%; background: #f1f2f4; color: #9aa0a6; font-weight: 800; }
.pf-hl { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 3px 10px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.pf-hl.is-good { background: var(--gs-green-soft); color: #177245; } .pf-hl.is-watch { background: var(--gs-orange-soft); color: #9a5200; }
.pf-hl.is-risk { background: var(--gs-red-soft); color: #b3262b; } .pf-hl.is-stopped { background: #f1f2f4; color: #636b78; }
.pf-state-cell { white-space: nowrap; } .pf-state-hr { display: inline-block; margin-inline-end: 8px; vertical-align: middle; }

.pf-health-body { display: grid; grid-template-columns: minmax(250px, 320px) 1fr; gap: 20px; align-items: start; }
.pf-health-sum { background: linear-gradient(160deg, #fbfbfc, #f4f5f7); border: 1px solid #eef0f3; border-radius: 18px; padding: 18px; display: grid; gap: 14px; }
.pf-health-avg { display: flex; align-items: center; gap: 14px; }
.pf-health-avg > div small { display: block; color: #6b7280; font-weight: 700; font-size: 12px; }
.pf-health-avg > div b { display: block; font-size: 15px; color: #111827; }
.pf-health-avg > div span { display: block; color: #9a5200; font-size: 12px; font-weight: 700; margin-top: 2px; }
.pf-health-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 3px; background: #eef0f3; }
.pf-health-bar i { display: block; min-width: 6px; border-radius: 99px; }
.pf-health-bar .is-good, .pf-hleg.is-good i { background: #16a34a; } .pf-health-bar .is-watch, .pf-hleg.is-watch i { background: #f0a020; } .pf-health-bar .is-risk, .pf-hleg.is-risk i { background: #d53c41; }
.pf-health-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pf-hleg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5260; font-weight: 600; }
.pf-hleg i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.pf-hleg b { color: #111827; }
.pf-health-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pf-health-li { display: flex; align-items: center; gap: 12px; text-align: start; width: 100%; background: #fff; border: 1px solid #eef0f3; border-radius: 14px; padding: 10px 12px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pf-health-li:hover, .pf-health-li:focus-visible { border-color: #e1e3e8; box-shadow: 0 8px 22px rgba(16, 24, 40, .07); transform: translateY(-1px); outline: 0; }
.pf-health-li.is-risk { border-inline-start: 3px solid #d53c41; } .pf-health-li.is-watch { border-inline-start: 3px solid #f0a020; }
.pf-health-li-main { flex: 1; min-width: 0; }
.pf-health-li-main b { display: block; font-size: 13.5px; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-health-li-main small { display: block; font-size: 12px; color: #6b7280; line-height: 1.45; }
.pf-health-li .pf-hl { display: none; }
.pf-health-empty { padding: 28px 10px; }
@media (max-width: 991px) { .pf-health-body { grid-template-columns: 1fr; } }

.pf-hc { border: 1px solid #eef0f3; border-radius: 18px; padding: 16px; margin-bottom: 16px; background: #fff; }
.pf-hc.is-risk { background: linear-gradient(180deg, #fff6f6, #fff 60%); border-color: #f6d9da; }
.pf-hc.is-watch { background: linear-gradient(180deg, #fffaf1, #fff 60%); border-color: #f5e6c8; }
.pf-hc-top { display: flex; align-items: center; gap: 14px; }
.pf-hc-id small { display: block; font-size: 11.5px; font-weight: 800; color: #6b7280; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
.pf-hc-meta { display: block; font-size: 12px; color: #6b7280; margin-top: 6px; }
.pf-hc-why { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.pf-hc-why li { font-size: 13px; color: #3a404a; font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.pf-hc-why li .fa { color: #d53c41; }
.pf-hc-ok { margin: 12px 0 0; color: #177245; font-weight: 700; font-size: 13px; }
.pf-hc-steps { margin-top: 14px; border-top: 1px dashed #e5e7eb; padding-top: 12px; }
.pf-hc-sh { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 8px; }
.pf-hc-sh span { font-weight: 800; color: #6b7280; font-variant-numeric: tabular-nums; }
.pf-hc-bar { height: 6px; background: #eef0f3; border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.pf-hc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #16a34a, #34c26a); border-radius: 99px; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.pf-hc-steps ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; }
.pf-hc-steps li { font-size: 12.5px; color: #4b5260; display: flex; gap: 7px; align-items: center; }
.pf-hc-steps li .fa { color: #c2c6cd; } .pf-hc-steps li.is-done { color: #8b9098; } .pf-hc-steps li.is-done .fa { color: #16a34a; }
.pf-hc-steps li a { color: #b3262b; font-weight: 700; }
.pf-gym-state .pf-hr { margin-inline-end: 6px; }

/* ================= [لوحة الإيرادات] */
.pf-rev .gs-panel-head .btn .fa { margin-inline-end: 4px; }
.pf-rev-kpis { margin-bottom: 16px; }
.pf-rev-load { height: 92px; border-radius: 16px; grid-column: 1 / -1; background: linear-gradient(90deg, #f1f2f4 25%, #f8f9fa 50%, #f1f2f4 75%); background-size: 200% 100%; animation: pfShim 1.2s infinite linear; }
@keyframes pfShim { to { background-position: -200% 0; } }
.pf-rev-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 20px; }
.pf-rev-grid h6 { font-size: 12px; font-weight: 800; color: #6b7280; text-transform: uppercase; letter-spacing: .4px; margin: 0 0 10px; }
.pf-rev-side h6 + div { margin-bottom: 18px; }
.pf-aging { display: grid; gap: 10px; }
.pf-aging-row { display: grid; grid-template-columns: minmax(110px, 1fr) 1.2fr auto; gap: 10px; align-items: center; font-size: 13px; }
.pf-aging-l { font-weight: 700; color: #3a404a; line-height: 1.25; }
.pf-aging-l small { display: block; font-weight: 600; color: #8b9098; font-size: 11.5px; }
.pf-aging-bar { height: 8px; border-radius: 99px; background: #f1f2f4; overflow: hidden; }
.pf-aging-bar i { display: block; height: 100%; border-radius: 99px; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.pf-aging-row.is-ok i { background: #9aa0a8; } .pf-aging-row.is-warn i { background: #f0a020; } .pf-aging-row.is-bad i { background: #e2575b; } .pf-aging-row.is-worst i { background: #a3161b; }
.pf-aging-row b { font-variant-numeric: tabular-nums; color: #111827; }
.pf-owing { display: grid; gap: 6px; }
.pf-owing-li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid #eef0f3; color: inherit !important; text-decoration: none !important; transition: background .15s, border-color .15s; }
.pf-owing-li:hover { background: #fafafb; border-color: #e1e3e8; }
.pf-owing-li img, .pf-owing-li .pf-gym-mark { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; }
.pf-owing-main { flex: 1; min-width: 0; }
.pf-owing-main b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-owing-main small { font-size: 11.5px; color: #8b9098; }
.pf-owing-n { font-variant-numeric: tabular-nums; font-size: 13.5px; }
@media (max-width: 991px) { .pf-rev-grid { grid-template-columns: 1fr; } }

/* ================= [تحليلات الاستخدام] خريطة الحضور + الشاشات */
.pi-heat-box { overflow-x: auto; }
.pi-heat { display: grid; grid-template-columns: 74px repeat(var(--cols), minmax(16px, 1fr)); gap: 3px; min-width: 520px; align-items: center; }
.pi-heat-h { font-size: 10.5px; color: #8b9098; text-align: center; white-space: nowrap; height: 16px; }
.pi-heat-d { font-size: 12px; font-weight: 700; color: #4b5260; white-space: nowrap; }
.pi-heat-c { height: 24px; border-radius: 5px; background: rgba(213, 60, 65, var(--a)); box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .04); transition: transform .12s; }
.pi-heat-c.is-zero { background: #f4f5f7; }
.pi-heat-c:hover { transform: scale(1.18); position: relative; z-index: 1; box-shadow: 0 4px 10px rgba(0, 0, 0, .12); }
.pi-heat-leg { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 11.5px; color: #8b9098; margin-top: 10px; }
.pi-heat-leg i { width: 110px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, rgba(213, 60, 65, .1), rgba(213, 60, 65, 1)); }
[dir=rtl] .pi-heat-leg i { background: linear-gradient(270deg, rgba(213, 60, 65, .1), rgba(213, 60, 65, 1)); }
.pi-scr { display: grid; gap: 9px; }
.pi-scr-row { display: grid; grid-template-columns: minmax(110px, 1fr) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.pi-scr-name { font-weight: 700; color: #1f2329; line-height: 1.25; }
.pi-scr-name small { display: block; font-weight: 600; font-size: 11px; color: #8b9098; }
.pi-scr-bar { height: 8px; border-radius: 99px; background: #f1f2f4; overflow: hidden; }
.pi-scr-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #141414, #4b5260); }
[dir=rtl] .pi-scr-bar i { background: linear-gradient(270deg, #141414, #4b5260); }
.pi-scr-row b { font-variant-numeric: tabular-nums; }
.pi-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e5e7eb; }

/* ================= [إيه الجديد] شاشة التحديثات */
.pf-news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.pf-news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #eef0f3; border-radius: 18px; padding: 18px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); animation: pfUp .35s cubic-bezier(.2, .8, .2, 1) both; }
.pf-news-card.is-draft { border-style: dashed; background: #fcfcfd; }
.pf-news-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pf-news-top time { margin-inline-start: auto; font-size: 12px; color: #9aa0a6; font-weight: 600; }
.pf-news-card h4 { font-size: 16px; font-weight: 800; margin: 0 0 6px; color: #111827; }
.pf-news-body { flex: 1; font-size: 13.5px; max-height: 160px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }
.pf-news-one { font-size: 12px; color: #9a5200; font-weight: 700; margin: 6px 0 0; }
.pf-news-foot { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid #f1f2f4; flex-wrap: wrap; }
.pf-news-reach { flex: 1; min-width: 140px; }
.pf-news-reach small { display: block; font-size: 11.5px; color: #6b7280; margin-top: 4px; }
.pf-news-bar { display: block; height: 6px; background: #eef0f3; border-radius: 99px; overflow: hidden; }
.pf-news-bar i { display: block; height: 100%; background: linear-gradient(90deg, #16a34a, #34c26a); border-radius: 99px; }
.pf-news-acts { display: flex; gap: 6px; }
.pf-news-form { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); gap: 18px; }
.pf-news-prev { background: #f6f7f9; border-radius: 16px; padding: 14px; align-self: start; position: sticky; top: 0; }
.pf-news-prev > small { display: block; font-size: 11px; font-weight: 800; color: #8b9098; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.pf-news-prev .gs-wn-item { background: #fff; border-radius: 12px; padding: 14px; border: 0; }
.pf-news-hint { font-size: 12.5px; margin: 0; }
@media (max-width: 767px) { .pf-news-list { grid-template-columns: 1fr; } .pf-news-form { grid-template-columns: 1fr; } }

/* ================= [أوامر جماعية] اختيار الجيمات + الشريط اللي تحت */
.pf-gym-card { position: relative; }
.pf-gym-check { position: absolute; top: 12px; inset-inline-end: 12px; width: 24px; height: 24px; border-radius: 8px; border: 2px solid #d4d7dd; background: #fff; display: none; align-items: center; justify-content: center; color: #fff; font-size: 12px; z-index: 2; transition: background .15s, border-color .15s; }
.pf-selecting .pf-gym-check { display: inline-flex; }
.pf-selecting .pf-gym-go { visibility: hidden; }
.pf-selecting .pf-gym-card { cursor: pointer; }
.pf-selecting .pf-gym-card[data-demo] { opacity: .55; }
.pf-gym-card.is-sel { box-shadow: 0 0 0 2px #141414, 0 10px 24px rgba(16, 24, 40, .1) !important; }
.pf-gym-card.is-sel .pf-gym-check { background: #141414; border-color: #141414; }
#pfSelect.is-on { background: #141414 !important; color: #fff !important; border-color: #141414 !important; }
.pf-bulk { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; margin-inline: auto; width: max-content; z-index: 1040; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; white-space: nowrap; background: #141414; color: #fff; border-radius: 18px; padding: 10px 12px 10px 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); max-width: calc(100vw - 24px); animation: pfUp .25s cubic-bezier(.2, .8, .2, 1) both; }
.pf-bulk[hidden] { display: none; }
/* [اختيار] مساحة تحت عشان آخر كروت ماتستخباش ورا الشريط */
body.pf-selecting .gs-content { padding-bottom: 120px; }
[dir=rtl] .pf-bulk { padding: 10px 18px 10px 12px; }
.pf-bulk-n { font-size: 13.5px; white-space: nowrap; } .pf-bulk-n b { font-size: 16px; }
.pf-bulk-all { color: #ff9a9d !important; font-weight: 700; font-size: 12.5px; padding: 4px 6px; }
.pf-bulk-sp { flex: 1; min-width: 8px; }
.pf-bulk .btn-light { background: rgba(255, 255, 255, .1) !important; border-color: rgba(255, 255, 255, .14) !important; color: #fff !important; }
.pf-bulk .btn-light:hover:not(:disabled) { background: rgba(255, 255, 255, .18) !important; }
.pf-bulk .btn-light.pf-danger-txt { color: #ff9a9d !important; }
.pf-bulk .btn:disabled { opacity: .45; }
.pf-bulk .gs-icon-btn { color: #c2c6cd; background: transparent; }
.pf-bulk-to { background: #f6f7f9; border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #3a404a; font-weight: 600; }
body.pf-selecting .pf-pager.is-float { bottom: 86px; }
/* [آيباد + موبايل] الشريط سطرين: (العدد + اختيار الكل + إلغاء) فوق ، والأوامر تحت بعرض متساوي */
@media (max-width: 991.98px) {
    .pf-bulk, [dir=rtl] .pf-bulk { width: min(560px, calc(100vw - 24px)); flex-wrap: wrap; row-gap: 0; gap: 0 8px; padding: 10px 12px 12px; border-radius: 16px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
    .pf-bulk-n { order: 1; } .pf-bulk-all { order: 2; } .pf-bulk-sp { order: 3; display: block; flex: 1 1 auto; } #pfBulkClose { order: 4; flex: 0 0 auto; }
    .pf-bulk::after { content: ''; order: 5; flex: 0 0 100%; height: 0; }
    .pf-bulk .pf-btn { order: 6; flex: 1 1 0; min-width: 0; margin-top: 10px; justify-content: center; white-space: normal; line-height: 1.2; height: auto; min-height: 42px; padding: 8px 6px; font-size: 13px; }
    body.pf-selecting .gs-content { padding-bottom: 150px; }
}
@media (max-width: 400px) { .pf-bulk .pf-btn { font-size: 12px; gap: 4px; } .pf-bulk-all { font-size: 12px; } }

/* ================= [التحقق بخطوتين] صفحة الأمان + خطوة الدخول */
.pf-tfa { max-width: 860px; }
.pf-tfa-card { padding: 0 !important; overflow: hidden; }
.pf-tfa-hero { display: flex; align-items: flex-start; gap: 16px; padding: 24px; background: radial-gradient(520px 180px at 100% 0, rgba(213, 60, 65, .1), transparent 70%), linear-gradient(180deg, #fff, #fafafb); border-bottom: 1px solid #f0f1f3; }
.pf-tfa-ic { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; background: linear-gradient(135deg, #2a2d33, #0b0b0c); box-shadow: 0 12px 26px rgba(0, 0, 0, .22); flex: 0 0 auto; }
.pf-tfa-hero h3 { margin: 0 0 4px; font-size: 19px; font-weight: 800; }
.pf-tfa-hero p { margin: 0; color: #6b7280; font-size: 13.5px; line-height: 1.6; max-width: 560px; }
.pf-tfa-state { margin-inline-start: auto; }
#tfaBody { padding: 22px 24px 24px; }
.pf-tfa-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 18px; }
.pf-tfa-step { display: flex; gap: 10px; align-items: flex-start; background: #f7f8fa; border-radius: 14px; padding: 12px; font-size: 13.5px; font-weight: 700; color: #1f2329; }
.pf-tfa-step b { width: 26px; height: 26px; border-radius: 50%; background: #141414; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: 0 0 auto; }
.pf-tfa-step small { display: block; font-weight: 600; color: #8b9098; font-size: 11.5px; margin-top: 3px; }
.pf-tfa-setup { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.pf-tfa-qr { background: #fff; border: 1px solid #eef0f3; border-radius: 18px; padding: 16px; text-align: center; box-shadow: 0 10px 30px rgba(16, 24, 40, .06); }
.pf-tfa-qr #tfaQr { display: inline-block; } .pf-tfa-qr img, .pf-tfa-qr canvas { display: block; margin: 0 auto; }
.pf-tfa-qr small { display: block; margin-top: 10px; color: #8b9098; font-size: 11px; line-height: 1.5; }
.pf-tfa-key { display: flex; align-items: center; gap: 8px; background: #f6f7f9; border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; }
.pf-tfa-key code { flex: 1; font-size: 14px; letter-spacing: 1px; color: #111827; background: none; word-break: break-all; }
.pf-tfa-acc { font-size: 12.5px; }
.pf-tfa-form label { font-weight: 700; font-size: 13px; margin-top: 6px; }
.pf-tfa-code { height: 52px; font-size: 22px; letter-spacing: 6px; text-align: center; font-weight: 800; border-radius: 14px; max-width: 240px; font-variant-numeric: tabular-nums; }
.pf-tfa-code.is-lg { max-width: none; height: 58px; font-size: 26px; }
.pf-tfa-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.pf-tfa-go { height: 46px; padding: 0 22px; font-weight: 800; }
.pf-tfa-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.pf-tfa-info > div { background: #f7f8fa; border-radius: 14px; padding: 12px 14px; }
.pf-tfa-info small { display: block; color: #8b9098; font-size: 12px; font-weight: 700; }
.pf-tfa-info b { font-size: 18px; }
.pf-tfa-codes-wrap h4 { font-size: 16px; font-weight: 800; margin: 14px 0 4px; }
.pf-tfa-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 420px; margin-top: 12px; }
.pf-tfa-codes code { display: block; text-align: center; padding: 10px; border-radius: 10px; background: #f6f7f9; border: 1px dashed #d4d7dd; font-size: 15px; letter-spacing: 1px; color: #111827; }
.pf-tfa-ask { text-align: start; } .pf-tfa-ask label { display: block; font-weight: 700; font-size: 13px; margin: 10px 0 4px; } .pf-tfa-ask .pf-tfa-code { max-width: none; }
.pf-alert.is-ok { background: #e9f7ef; color: #11683a; }
.pf-2fa-ic { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; background: linear-gradient(135deg, #e0474c, #b52f34); box-shadow: 0 12px 26px rgba(213, 60, 65, .32); margin-bottom: 14px; }
#pf2fa .pf-auth-link { background: none; border: 0; width: 100%; }
@media (max-width: 767px) { .pf-tfa-setup { grid-template-columns: 1fr; } .pf-tfa-qr { max-width: 240px; margin: 0 auto; } .pf-tfa-hero { flex-wrap: wrap; } }
.pf-rev-kpis .gs-kpi-val small { font-size: 13px; font-weight: 700; opacity: .65; }
.pf-log-table td:nth-child(2) bdi { white-space: nowrap; }

/* ================= [ديزاين المنصة] لمسات عامة (المنصة بس) */
.gs-platform { font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
.gs-platform ::selection { background: rgba(213, 60, 65, .18); }
.gs-platform .gs-content > * { animation: pfPage .35s cubic-bezier(.2, .8, .2, 1) both; }
.gs-platform .gs-content > *:nth-child(2) { animation-delay: .03s; } .gs-platform .gs-content > *:nth-child(3) { animation-delay: .06s; } .gs-platform .gs-content > *:nth-child(n+4) { animation-delay: .09s; }
@keyframes pfPage { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gs-platform .gs-panel { transition: box-shadow .2s ease, border-color .2s ease; }
.gs-platform .gs-panel:hover { box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .06); }
.gs-platform .gs-kpi { transition: transform .2s ease, box-shadow .2s ease; }
.gs-platform .gs-kpi:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(16, 24, 40, .09); }
.gs-platform :focus-visible { outline: 2px solid rgba(213, 60, 65, .55); outline-offset: 2px; }
.gs-platform .btn:focus-visible { box-shadow: 0 0 0 3px rgba(213, 60, 65, .22) !important; }
.gs-platform *::-webkit-scrollbar { width: 10px; height: 10px; }
.gs-platform *::-webkit-scrollbar-thumb { background: #d4d7dd; border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
.gs-platform *::-webkit-scrollbar-thumb:hover { background-color: #b8bcc4; }
.gs-platform *::-webkit-scrollbar-track { background: transparent; }
/* شريط التحميل */
.pf-topbar-load { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 2000; pointer-events: none; opacity: 0; transition: opacity .25s; }
.pf-topbar-load i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #d53c41, #ff7a7e); box-shadow: 0 0 10px rgba(213, 60, 65, .6); }
[dir=rtl] .pf-topbar-load i { margin-inline-start: 0; background: linear-gradient(270deg, #d53c41, #ff7a7e); }
.pf-topbar-load.is-on { opacity: 1; } .pf-topbar-load.is-on i { animation: pfLoad 8s cubic-bezier(.1, .7, .2, 1) forwards; }
.pf-topbar-load.is-done i { width: 100% !important; animation: none; transition: width .2s; }
@keyframes pfLoad { from { width: 0; } 20% { width: 45%; } to { width: 88%; } }
/* الاختصارات */
.pf-keys .modal-title .fa { color: #d53c41; margin-inline-end: 6px; }
.pf-keys h6 { font-size: 11.5px; font-weight: 800; color: #8b9098; text-transform: uppercase; letter-spacing: .4px; margin: 16px 0 6px; }
.pf-keys-list { list-style: none; padding: 0; margin: 0; }
.pf-keys-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f1f2f4; font-size: 13.5px; font-weight: 600; color: #1f2329; }
.pf-keys-list li:last-child { border-bottom: 0; }
.pf-keys-k { display: inline-flex; gap: 4px; direction: ltr; }
.pf-keys kbd, .pf-menu-kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; background: #fff; color: #3a404a; border: 1px solid #e1e3e8; box-shadow: 0 2px 0 #e1e3e8; font: 700 11.5px/1 inherit; }
.pf-menu-kbd { float: inline-end; height: 20px; min-width: 20px; font-size: 11px; margin-top: 1px; }
@media (prefers-reduced-motion: reduce) { .gs-platform .gs-content > *, .gs-platform .gs-kpi { animation: none !important; transition: none !important; } }
.pf-hl.is-new { background: var(--gs-blue-soft); color: var(--gs-blue); }

/* ================= [دومينات الجيمات] كارت الدومين والأمان */
.pf-ok { color: #177245; font-weight: 700; }
.pf-dom-empty { display: flex; gap: 12px; align-items: center; color: #6b7280; font-size: 13.5px; }
.pf-dom-empty .fa { font-size: 22px; color: #c2c6cd; } .pf-dom-empty p { margin: 0; }
.pf-dom-start { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: #f7f8fa; border-radius: 14px; padding: 14px 16px; }
.pf-dom-start b { display: block; font-size: 16px; } .pf-dom-start small { display: block; color: #6b7280; font-size: 12.5px; }
.pf-dom-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.pf-dom-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #eef0f3; border-radius: 14px; background: #fff; }
.pf-dom-row.is-active { border-color: #cdebd8; background: linear-gradient(90deg, #f3fbf6, #fff 60%); }
[dir=rtl] .pf-dom-row.is-active { background: linear-gradient(270deg, #f3fbf6, #fff 60%); }
.pf-dom-row.is-error { border-color: #f6d9da; }
.pf-dom-ic { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; background: #f1f2f4; color: #6b7280; }
.pf-dom-row.is-active .pf-dom-ic { background: #e3f5ea; color: #16a34a; } .pf-dom-row.is-dns .pf-dom-ic { background: #fff3e2; color: #d97706; }
.pf-dom-row.is-ssl .pf-dom-ic { background: #eaf1fd; color: #1d4fb8; } .pf-dom-row.is-error .pf-dom-ic { background: #fdecec; color: #d53c41; }
.pf-dom-main { flex: 1; min-width: 0; }
.pf-dom-main b { display: block; font-size: 14.5px; text-align: start; overflow-wrap: anywhere; }
.pf-dom-main small { display: block; font-size: 12px; color: #6b7280; }
.pf-dom-err { color: #b3262b !important; margin-top: 2px; text-align: start; overflow-wrap: anywhere; }
.pf-dom-guide { margin-top: 14px; border: 1px dashed #e1e3e8; border-radius: 14px; padding: 14px; }
.pf-dom-guide h6 { font-size: 13.5px; font-weight: 800; margin: 0 0 4px; } .pf-dom-guide h6 .fa { color: #1d4fb8; }
.pf-dom-guide > p { font-size: 12.5px; margin: 0 0 10px; }
.pf-dom-rec { display: grid; grid-template-columns: 70px 1fr 1.4fr; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #f1f2f4; }
.pf-dom-type { font-size: 11.5px; font-weight: 800; background: #141414; color: #fff; border-radius: 7px; padding: 4px 0; text-align: center; }
.pf-dom-kv { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pf-dom-kv small { color: #8b9098; font-size: 11px; flex: 0 0 auto; }
.pf-dom-kv code { background: #f6f7f9; padding: 4px 8px; border-radius: 8px; font-size: 12.5px; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pf-dom-copy { border: 0; background: transparent; color: #8b9098; padding: 4px; } .pf-dom-copy:hover { color: #d53c41; }
.pf-dom-note { font-size: 12px; margin: 8px 0 0; }
.pf-dom-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
@media (max-width: 767px) {
    .pf-dom-rec { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .pf-dom-type { justify-self: start; padding: 3px 12px; }
    /* [موبايل] الحالة تنزل تحت اسم الدومين بدل ما تزق الكارت بره الشاشة */
    .pf-dom-row { flex-wrap: wrap; align-items: flex-start; }
    .pf-dom-main { flex: 1 1 calc(100% - 52px); }
    .pf-dom-row > .gs-pill { margin-inline-start: 48px; }
    .pf-dom-start .btn, .pf-dom-acts .btn { flex: 1 1 auto; }
    .pf-dom .gs-panel-tools, .pf-dom .gs-panel-tools .btn { width: 100%; }
}

/* [التحقق بخطوتين للجيمات] كارت السياسة في تاب اليوزرز */
.pf-gtf-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.pf-gtf-opts { display: grid; gap: 8px; }
.pf-gtf-opt { display: flex; align-items: flex-start; gap: 12px; text-align: start; padding: 12px 14px; border-radius: 14px; border: 1.5px solid #eceef1; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.pf-gtf-opt:hover:not(:disabled) { border-color: #cfd3da; }
.pf-gtf-opt.is-on { border-color: #141414; box-shadow: 0 8px 20px rgba(0, 0, 0, .08); }
.pf-gtf-opt:disabled { cursor: default; opacity: .75; } .pf-gtf-opt.is-on:disabled { opacity: 1; }
.pf-gtf-opt > .fa { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #f3f4f6; color: #4b5260; flex: 0 0 auto; }
.pf-gtf-opt.is-on > .fa { background: #141414; color: #fff; }
.pf-gtf-opt b { display: block; font-size: 14px; } .pf-gtf-opt small { display: block; color: #6b7280; font-size: 12.5px; line-height: 1.5; }
.pf-gtf-stats { background: #f7f8fa; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.pf-gtf-now small { display: block; color: #8b9098; font-size: 12px; font-weight: 700; } .pf-gtf-now b { font-size: 15px; }
.pf-gtf-bar { height: 8px; border-radius: 99px; background: #e5e7eb; overflow: hidden; } .pf-gtf-bar span { display: block; height: 100%; background: linear-gradient(90deg, #16a34a, #22c55e); border-radius: inherit; }
.pf-gtf-nums { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: #4b5260; } .pf-gtf-nums b { color: #111827; }
.pf-link-btn { border: 0; background: transparent; color: #8b9098; padding: 2px 6px; border-radius: 8px; } .pf-link-btn:hover { color: #d53c41; background: #fdf0f0; }
@media (max-width: 991px) { .pf-gtf-grid { grid-template-columns: minmax(0, 1fr); } }

/* [التنقل بين الجيمات] صفحة الجيم: اسم الجيم بيفتح اختيار سريع + قبله / بعده */
.pf-gsw-name { cursor: pointer; border-radius: 12px; padding: 4px 8px; margin: -4px -8px; transition: background .15s ease; outline: none; }
.pf-gsw-name:hover, .pf-gsw-name:focus-visible { background: rgba(17, 24, 39, .05); }
.pf-gsw-name:focus-visible { box-shadow: 0 0 0 3px rgba(213, 60, 65, .25); }
.pf-gsw-caret { margin-inline-start: 8px; font-size: 16px; color: #9aa0a8; vertical-align: middle; transition: transform .15s ease; }
.pf-gsw-name:hover .pf-gsw-caret { color: #141414; transform: translateY(1px); }
.pf-gsw { display: inline-flex; align-items: center; gap: 2px; background: #fff; border: 1px solid #eceef1; border-radius: 12px; padding: 3px; }
.pf-gsw .gs-icon-btn { width: 32px; height: 32px; border: 0; box-shadow: none; }
.pf-gsw .gs-icon-btn:disabled { opacity: .35; }
.pf-gsw-pos { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; border-radius: 9px; height: 32px; font-size: 12px; font-weight: 700; color: #6b7280; padding: 0 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pf-gsw-pos:hover { background: #f4f5f7; color: #141414; }
.pf-gsw-pos b { font-weight: 800; color: #1f2329; }
.pf-gsw-pos-t, .pf-gsw-pos .fa { display: none; }
.pf-gsw-pop { position: absolute; z-index: 1060; background: #fff; border: 1px solid #e7e9ee; border-radius: 18px; box-shadow: 0 24px 60px rgba(16, 24, 40, .18), 0 2px 6px rgba(16, 24, 40, .06); overflow: hidden; animation: pfGswIn .16s ease both; }
@keyframes pfGswIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.pf-gsw-search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #f0f1f3; }
.pf-gsw-search .fa { color: #9aa0a8; }
.pf-gsw-search input, .pf-gsw-search input:focus { flex: 1; border: 0 !important; outline: none; box-shadow: none !important; font-size: 15px; font-weight: 600; background: transparent; min-width: 0; padding: 0; height: auto; }
.pf-gsw-pop kbd { font-family: inherit; font-size: 11px; font-weight: 700; color: #6b7280; background: #f3f4f6; border: 1px solid #e5e7eb; border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; margin-inline-end: 2px; }
.pf-gsw-list { max-height: min(420px, 60vh); overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.pf-gsw-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: inherit; text-decoration: none !important; }
.pf-gsw-item.is-sel { background: #f4f5f7; }
.pf-gsw-item.is-cur .pf-gsw-txt b { color: #d53c41; }
.pf-gsw-logo { width: 36px; height: 36px; border-radius: 10px; background: #141414; color: #fff; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto; font-weight: 800; }
.pf-gsw-logo img { width: 100%; height: 100%; object-fit: cover; }
.pf-gsw-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pf-gsw-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-gsw-txt small { font-size: 12px; color: #8b9098; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: start; }
.pf-gsw-item .gs-pill { flex: 0 0 auto; font-size: 11px; }
.pf-gsw-cur { color: #d53c41; flex: 0 0 auto; }
.pf-gsw-empty { padding: 26px; text-align: center; color: #8b9098; font-weight: 600; }
.pf-gsw-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 9px 14px; border-top: 1px solid #f0f1f3; background: #fafbfc; font-size: 11.5px; color: #8b9098; }
@media (max-width: 767px) {
    .pf-gsw-foot { display: none; }
    /* [موبايل] سطر 1: رجوع + اللوجو + الاسم والدومين ، سطر 2: شريط التنقل (قبله · الترتيب والاختيار · بعده) ، سطر 3: فتح دخول الجيم */
    .pf-gym-head { gap: 10px 12px; }
    .pf-gym-head .pf-gym-logo img, .pf-gym-head .pf-gym-mono { width: 44px; height: 44px; border-radius: 12px; font-size: 18px; }
    .pf-gym-head .pf-gym-id { flex: 1 1 0; min-width: 0; }
    .pf-gym-head .pf-gym-id b { font-size: 17px; }
    .pf-gym-head > .pf-gsw { order: 5; flex: 1 1 100%; justify-content: space-between; padding: 4px; border-radius: 14px; }
    .pf-gym-head > .pf-gsw .gs-icon-btn { width: 40px; height: 38px; background: #f6f7f9; border-radius: 10px; }
    .pf-gym-head > .pf-gsw .pf-gsw-pos { flex: 1 1 auto; justify-content: center; height: 38px; font-size: 13px; }
    .pf-gsw-pos-t, .pf-gsw-pos .fa { display: inline; }
    .pf-gsw-pos b::after { content: "·"; margin-inline-start: 6px; color: #c2c6cd; }
    .pf-gym-head > .pf-head-links { order: 6; }
    .pf-gym-head > .pf-head-links .btn { width: 100%; justify-content: center; }
    .pf-gsw-caret { display: none; }
}

/* [الباقات] شاشة الباقات */
.pf-pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: stretch; }
.pf-pkg { position: relative; display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid #eceef1; border-radius: 20px; padding: 20px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); animation: pfUp .35s ease both; }
.pf-pkg.is-pop { border-color: #141414; box-shadow: 0 18px 40px rgba(16, 24, 40, .12); }
.pf-pkg.is-off { opacity: .62; }
.pf-pkg-tags { display: flex; gap: 6px; flex-wrap: wrap; min-height: 0; }
.pf-pkg-tags:empty { display: none; }
.pf-pkg-tag { font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: #f1f2f4; color: #4b5260; }
.pf-pkg-tag.is-pop { background: #141414; color: #fff; } .pf-pkg-tag.is-pop .fa { color: #ffd166; }
.pf-pkg-tag.is-off { background: #fdecec; color: #b3262b; }
.pf-pkg-top h3 { margin: 6px 0 4px; font-size: 19px; font-weight: 800; }
.pf-pkg-top p { margin: 0; color: #6b7280; font-size: 13px; line-height: 1.55; }
.pf-pkg-price { display: flex; align-items: baseline; gap: 6px; padding: 6px 0 2px; }
.pf-pkg-price b { font-size: 34px; font-weight: 900; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.pf-pkg-price b.is-contact { font-size: 22px; }
.pf-pkg-price span { color: #6b7280; font-weight: 700; font-size: 13px; }
.pf-pkg-incl { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-pkg-incl span { display: inline-flex; align-items: center; gap: 6px; background: #f6f7f9; border-radius: 10px; padding: 6px 10px; font-size: 12.5px; font-weight: 700; }
.pf-pkg-incl .fa { color: #d53c41; }
.pf-pkg-extra { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: #6b7280; }
.pf-pkg-extra b { color: #111827; }
.pf-pkg-disc { display: flex; flex-wrap: wrap; gap: 6px; } .pf-pkg-disc span { font-size: 11.5px; font-weight: 800; color: #177245; background: #e7f6ec; border-radius: 99px; padding: 3px 10px; }
.pf-pkg-feat { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px dashed #eceef1; display: grid; gap: 7px; flex: 1 1 auto; align-content: start; }
.pf-pkg-feat li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 600; }
.pf-pkg-feat li .fa { color: #16a34a; margin-top: 3px; } .pf-pkg-feat li.is-off { color: #a0a5ad; } .pf-pkg-feat li.is-off .fa { color: #c2c6cd; }
.pf-pkg-max { margin: 0; font-size: 12px; color: #6b7280; }
.pf-pkg-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-top: 1px solid #f0f1f3; padding-top: 12px; }
.pf-pkg-gyms { border: 0; background: #f3f4f6; border-radius: 10px; padding: 6px 10px; font-weight: 700; font-size: 12.5px; color: #374151; }
.pf-pkg-gyms:disabled { opacity: .6; }
.pf-pkg-acts { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.pf-pkg-acts .gs-icon-btn { width: 32px; height: 32px; border: 0; box-shadow: none; background: transparent; }
.pf-pkg-acts .gs-icon-btn:hover { background: #f3f4f6; }
.pf-pkg-legend { min-width: 0; }
.pf-pkg-form { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.pf-pkg-h { font-size: 13px; font-weight: 800; margin: 6px 0 10px; color: #111827; } .pf-pkg-h .fa { color: #d53c41; margin-inline-end: 4px; }
.pf-pkg-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.pf-pkg-fopt { position: relative; display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1.5px solid #eceef1; border-radius: 14px; padding: 12px 14px; cursor: pointer; margin: 0; transition: border-color .15s, background .15s, box-shadow .15s; }
.pf-pkg-fopt:hover { border-color: #d5d8de; }
.pf-pkg-fopt:has(input:checked) { border-color: #141414; background: #fafafa; }
.pf-pkg-fopt:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(188, 24, 35, .2); }
.pf-pkg-fopt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.pf-pkg-ftx { min-width: 0; }
.pf-pkg-fck { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #d5d8de; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: transparent; transition: .15s; align-self: start; margin-top: 5px; }
.pf-pkg-fopt:has(input:checked) .pf-pkg-fck { background: #141414; border-color: #141414; color: #fff; }
.pf-pkg-fic { width: 32px; height: 32px; border-radius: 10px; background: #f3f4f6; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pf-pkg-fopt:has(input:checked) .pf-pkg-fic { background: #141414; color: #fff; }
.pf-pkg-fopt b { display: block; font-size: 13px; } .pf-pkg-fopt small { display: block; color: #8b9098; font-size: 11.5px; line-height: 1.45; }
.pf-pkg-prev { position: sticky; top: 0; display: flex; flex-direction: column; gap: 10px; }
.pf-pkg-prev > small, .pf-pkg-try > small { color: #8b9098; font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.pf-pkg-prev .pf-pkg { animation: none; }
.pf-pkg-try { background: #f7f8fa; border-radius: 16px; padding: 12px; display: grid; gap: 8px; }
.pf-pkg-try-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .pf-pkg-try-row label { margin: 0; font-size: 12px; font-weight: 700; } .pf-pkg-try-row span { display: block; margin-bottom: 4px; color: #6b7280; }
.pf-pkg-try-rows { display: grid; gap: 4px; } .pf-pkg-try-rows div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; } .pf-pkg-try-rows b { font-variant-numeric: tabular-nums; }
.pf-pkg-glist { display: grid; gap: 6px; text-align: start; max-height: 50vh; overflow: auto; } .pf-pkg-glist a { padding: 8px 12px; border-radius: 10px; background: #f6f7f9; font-weight: 700; color: #111827; }
@media (max-width: 991.98px) { .pf-pkg-form { grid-template-columns: minmax(0, 1fr); } .pf-pkg-prev { position: static; } }
@media (max-width: 575.98px) { .pf-pkg-feats { grid-template-columns: minmax(0, 1fr); } }

/* [الباقات] كارت الباقة والمميزات في صفحة الجيم */
.pf-gpk-cur { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #f7f8fa; border-radius: 16px; }
.pf-gpk-cur > div { min-width: 0; display: flex; flex-direction: column; }
.pf-gpk-cur small { color: #8b9098; font-weight: 800; font-size: 11.5px; }
.pf-gpk-cur b { font-size: 17px; }
.pf-gpk-cur .pf-muted { font-size: 12.5px; }
.pf-gpk-ic { width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: #141414; color: #fff; font-size: 18px; flex: 0 0 auto; }
.pf-gpk-ic.is-none { background: #e5e7eb; color: #4b5260; }
.pf-gpk-pick { display: flex; gap: 8px; margin-top: 10px; }
.pf-gpk-pick select { flex: 1 1 auto; min-width: 0; }
.pf-gpk-pick .btn { white-space: nowrap; flex: 0 0 auto; }
.pf-gpk-feats { display: grid; gap: 8px; margin-top: 14px; }
.gs-admin .pf-gpk-f { display: flex !important; flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #eef0f3; border-radius: 14px; margin: 0; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.pf-gpk-f.is-on { border-color: #cdebd8; background: #f6fcf8; }
.pf-gpk-fic { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #f1f2f4; color: #6b7280; flex: 0 0 auto; }
.pf-gpk-f.is-on .pf-gpk-fic { background: #e3f5ea; color: #16a34a; }
.pf-gpk-ft { flex: 1 1 auto; min-width: 0; }
.pf-gpk-ft b { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13.5px; }
.pf-gpk-ft small { display: block; color: #8b9098; font-size: 12px; line-height: 1.45; }
.pf-gpk-custom { font-style: normal; font-size: 10.5px; font-weight: 800; color: #b45309; background: #fff3e2; border-radius: 99px; padding: 2px 8px; }
.pf-gpk-f .pf-switch { margin: 0; flex: 0 0 auto; }
.pf-bi-pkg { margin: -4px 0 6px; font-size: 12.5px; } .pf-bi-pkg:empty { display: none; }
@media (max-width: 575.98px) { .pf-gpk-pick { flex-direction: column; } }

/* [Access Keys السوفت] الأنواع والأسعار */
.pf-pt-list { display: grid; gap: 10px; }
.pf-pt-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--gs-border); border-radius: 14px; background: #fff; }
.pf-pt-row.is-off { opacity: .7; background: #fafafb; }
.pf-pt-ic { width: 40px; height: 40px; border-radius: 12px; background: #141414; color: #fff; display: grid; place-items: center; font-size: 17px; flex: 0 0 auto; }
.pf-pt-main { flex: 1; min-width: 0; }
.pf-pt-main > b { font-size: 15px; }
.pf-pt-price { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; font-weight: 700; font-size: 13px; }
.pf-pt-tier { padding: 2px 9px; border-radius: 999px; background: #f3f4f6; font-size: 12px; white-space: nowrap; }
.pf-pt-kind { display: flex; width: 100%; }
.pf-pt-kind button { flex: 1 1 0; }
.pf-pt-box { padding: 14px; border-radius: 14px; background: #f7f8fa; margin-bottom: 12px; }
.pf-pt-box[hidden] { display: none; }
.pf-pt-box p { margin: 0; font-size: 12.5px; }
.pf-pt-tiers-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.pf-pt-trow { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; gap: 8px; align-items: end; margin-bottom: 8px; }
.pf-pt-trow label { margin: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 700; color: var(--gs-muted); min-width: 0; }
.pf-pt-trow .btn { height: 38px; }
@media (max-width: 575px) {
    .pf-pt-row { flex-wrap: wrap; }
    .pf-pt-row > .btn { width: 100%; }
    .pf-pt-trow { grid-template-columns: 1fr 1fr; }
    .pf-pt-trow label:nth-child(3) { grid-column: 1 / 2; }
    .pf-pt-kind { flex-direction: column; }
}

/* [الدومين الرئيسي @ بـ A record] */
.pf-dom-prov { margin: 0 0 8px; font-size: 12.5px; color: var(--gs-muted); }
.pf-dom-alt { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 10px; padding: 5px 12px; border-radius: 999px; border: 1px dashed #c9cdd4; background: #fff; color: #374151; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.pf-dom-alt:hover { border-color: #141414; color: #141414; }
.pf-apex-test { display: grid; gap: 6px; margin-top: 12px; }
.pf-apex-test > div { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.pf-apex-test .fa-check-circle { color: #16a34a; } .pf-apex-test .fa-times-circle { color: #d53c41; }

/* [صلاحيات مفصلة] الأدوار: المستوى + الشرح + القوالب + "الدور ده هيشوف إيه" */
.pf-perm-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.pf-lvl { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pf-lvl.is-view { background: #eef4ff; color: #1d4fb8; }
.pf-lvl.is-edit { background: #f1f2f4; color: #374151; }
.pf-lvl.is-sensitive { background: #fdf0ee; color: #b42318; }
.pf-lvl-pill.is-view { background: #eef4ff !important; color: #1d4fb8 !important; }
.pf-lvl-pill.is-sensitive { background: #fdf0ee !important; color: #b42318 !important; }
.pf-role-warn { font-size: 12.5px; font-weight: 700; color: #b42318; }
.pf-role-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.pf-role-side { position: sticky; top: 0; background: #f7f8fa; border-radius: 14px; padding: 14px; max-height: 70vh; overflow: auto; }
.pf-role-side h6 { font-weight: 800; font-size: 13.5px; margin: 0 0 10px; }
.pf-prev-sec { margin-bottom: 12px; }
.pf-prev-sec > small { display: inline-flex; font-size: 11.5px; font-weight: 800; color: var(--gs-muted); margin-bottom: 6px; }
.pf-prev-screens { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pf-prev-screens li { background: #fff; border: 1px solid var(--gs-border); border-radius: 10px; padding: 4px 9px; font-size: 12.5px; font-weight: 700; }
.pf-prev-screens .fa { color: #d53c41; margin-inline-end: 4px; }
.pf-prev-list { margin: 0; padding-inline-start: 18px; font-size: 12.5px; color: #374151; }
.pf-prev-list li { margin-bottom: 3px; }
.pf-prev-note { font-size: 12px; font-weight: 700; color: #b42318; margin: 8px 0 0; }
.pf-prev-note.is-muted { color: var(--gs-muted); font-weight: 600; }
.pf-role-tpl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.pf-role-tpl:empty { display: none; }
.pf-role-tpl small { font-weight: 700; color: var(--gs-muted); margin-inline-end: 4px; }
.pf-tpl-chip { border: 1px dashed #c9cdd4; background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.pf-tpl-chip:hover, .pf-tpl-chip.is-on { border-style: solid; border-color: #141414; background: #141414; color: #fff; }
.pf-perm-group h6 { display: flex; align-items: center; gap: 6px; }
.pf-perm-n:not(:empty) { background: #141414; color: #fff; border-radius: 999px; font-size: 11px; padding: 0 7px; line-height: 18px; }
.gs-admin .pf-perm { display: flex !important; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; margin: 0; }
.pf-perm:hover { background: #f3f4f6; }
.pf-perm input { width: 18px; height: 18px; margin-top: 2px; accent-color: #d53c41; flex: 0 0 auto; }
.pf-perm-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-perm-txt b { font-size: 13.5px; }
.pf-perm-txt small { font-size: 12px; color: var(--gs-muted); font-weight: 500; line-height: 1.45; }
.pf-perm .pf-lvl { padding: 3px 7px; }
.pf-perm input:checked ~ .pf-perm-txt b { color: #141414; }
/* [نطاق البيانات] */
.pf-scope-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pf-scope-opts.is-off { opacity: .5; pointer-events: none; }
.gs-admin .pf-scope-opt { display: flex !important; gap: 8px; align-items: flex-start; padding: 10px; border: 1px solid var(--gs-border); border-radius: 12px; cursor: pointer; margin: 0; }
.pf-scope-opt.is-on { border-color: #141414; box-shadow: 0 0 0 1px #141414 inset; }
.pf-scope-opt input { margin-top: 3px; accent-color: #d53c41; }
.pf-scope-opt span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-scope-opt b { font-size: 13px; }
.pf-scope-opt small { font-size: 11.5px; color: var(--gs-muted); line-height: 1.4; }
.pf-scope-gyms { margin-top: 10px; }
.pf-scope-gyms small { display: block; margin-top: 6px; }
@media (max-width: 991px) {
    .pf-role-body { grid-template-columns: minmax(0, 1fr); }
    .pf-role-side { position: static; max-height: none; }
}
@media (max-width: 575px) { .pf-scope-opts { grid-template-columns: minmax(0, 1fr); } }

/* [زوار الموقع الرئيسي] */
.pv-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.6); animation: pvPulse 1.6s infinite; vertical-align: middle; }
@keyframes pvPulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.55); } 70% { box-shadow: 0 0 0 9px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.pv-live:not(.is-on) .pv-dot { background: #9aa0a8; animation: none; }
.pv-live-n { display: inline-block; min-width: 28px; text-align: center; background: #141414; color: #fff; border-radius: 999px; padding: 1px 10px; font-size: 14px; margin-inline-start: 6px; }
.pv-live-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.pv-live-card { display: flex; flex-direction: column; gap: 7px; text-align: start; padding: 12px 14px; border: 1px solid var(--gs-border); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: inherit; min-width: 0; transition: box-shadow .15s ease, transform .15s ease; }
.pv-live-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.07); transform: translateY(-1px); }
.pv-live-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.pv-live-place { font-weight: 800; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-live-page { font-size: 12.5px; color: #1d4fb8; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.pv-live-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--gs-muted); }
.pv-live-lead, .pv-lead { font-size: 12px; font-weight: 700; color: #b45309; }
.pv-live-empty { grid-column: 1 / -1; color: var(--gs-muted); font-weight: 600; padding: 8px 2px; }
.pv-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 12px; }
.pv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.pv-grid .gs-panel { margin: 0; min-width: 0; }
.pv-bar-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; }
.pv-bar-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pv-bar { display: block; height: 8px; border-radius: 99px; background: #f0f1f3; overflow: hidden; margin: 0; }
.pv-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #d53c41, #ff7a59); }
[dir=rtl] .pv-bar i { background: linear-gradient(270deg, #d53c41, #ff7a59); }
.pv-sub-h { font-size: 12px; font-weight: 800; color: var(--gs-muted); text-transform: uppercase; margin: 14px 0 6px; }
.pv-cols { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-bottom: 18px; direction: ltr; }
.pv-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; min-width: 0; }
.pv-col i { display: block; width: 100%; max-width: 28px; background: linear-gradient(180deg, #ff7a59, #d53c41); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.pv-col small { position: absolute; bottom: -18px; font-size: 10.5px; color: var(--gs-muted); white-space: nowrap; }
.pv-cols.is-hours i { background: linear-gradient(180deg, #4b5563, #141414); }
.pv-delta { font-weight: 800; font-size: 12px; }
.pv-delta.is-up { color: #16a34a; } .pv-delta.is-down { color: #d53c41; }
.pv-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.pv-filters .pf-search { flex: 1 1 260px; }
.pv-row { cursor: pointer; }
.pv-row.is-live td:first-child { box-shadow: inset 3px 0 0 #16a34a; }
.pv-lead-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff8ec; border: 1px solid rgba(217,119,6,.3); color: #7a4a00; margin-bottom: 14px; }
.pv-lead-box span { flex: 1; }
.pv-infos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pv-info { display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; background: #f7f8fa; border-radius: 12px; padding: 9px 12px; min-width: 0; }
.pv-info .fa { grid-row: 1 / 3; color: #d53c41; margin-top: 3px; }
.pv-info small { color: var(--gs-muted); font-size: 11.5px; font-weight: 700; }
.pv-info b { font-size: 13px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.pv-wrap { overflow-wrap: anywhere; }
.pv-path { list-style: none; counter-reset: pv; padding: 0; margin: 0; border-inline-start: 2px solid #f0f1f3; }
.pv-path li { counter-increment: pv; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; position: relative; }
.pv-path li::before { content: counter(pv); position: absolute; inset-inline-start: -12px; width: 22px; height: 22px; border-radius: 50%; background: #141414; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.pv-path-t { font-size: 12px; color: var(--gs-muted); padding-inline-start: 10px; }
.pv-path-p { display: flex; flex-direction: column; min-width: 0; }
.pv-path-p b { font-size: 13px; overflow-wrap: anywhere; text-align: left; }
.pv-path-p small { color: var(--gs-muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-path-s { font-size: 12px; font-weight: 700; white-space: nowrap; }
.pv-others { display: grid; gap: 6px; }
.pv-other { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; text-align: start; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--gs-border); background: #fff; font: inherit; font-size: 12.5px; cursor: pointer; }
.pv-other:hover { border-color: #141414; }
.pv-ua { margin-top: 12px; font-size: 12px; }
.pv-ua code { display: block; margin-top: 6px; word-break: break-all; color: #4b5563; }
@media (max-width: 1199px) { .pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .pv-grid, .pv-infos { grid-template-columns: minmax(0, 1fr); }
    .pv-live-list { grid-template-columns: minmax(0, 1fr); }
    .pv-path li { grid-template-columns: minmax(0, 1fr) auto; }
    .pv-path-t { grid-column: 1 / -1; }
    .pv-tools { flex-direction: column; align-items: stretch; }
    .pv-tools .gs-seg { overflow-x: auto; }
}

/* [Ctrl K] عناوين المجموعات + تلميحات + سهم */
.pf-cmdk-h { font-size: 11.5px; font-weight: 800; color: #9aa0a8; padding: 12px 12px 4px; letter-spacing: .02em; }
.pf-cmdk-h:first-child { padding-top: 6px; }
.pf-cmdk-go { color: #c4c8cf; font-size: 15px; opacity: 0; transition: opacity .12s; }
.pf-cmdk-item.is-on .pf-cmdk-go { opacity: 1; }
.pf-cmdk-ic.is-flow { background: var(--gs-red, #bc1823); }
.pf-cmdk-ic.is-page, .pf-cmdk-ic.is-account, .pf-cmdk-ic.is-recent { background: #f3f4f6; color: #374151; }
.pf-cmdk-tips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 10px 6px; border-top: 1px dashed var(--gs-border); margin-top: 6px; }
.pf-cmdk-res > .pf-cmdk-tips:first-child { border-top: 0; margin-top: 0; }
.pf-cmdk-tips span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #4b5563; background: #f6f7f9; border-radius: 999px; padding: 6px 11px; }
.pf-cmdk-tips .fa { color: var(--gs-red, #bc1823); }
.pf-cmdk-foot-end { margin-inline-start: auto; }
@media (max-width: 640px) { .pf-cmdk-foot span:not(.pf-cmdk-foot-end) { display: none; } .pf-cmdk .modal-dialog { margin: 8px; } }

/* [زوار الموقع] قرارات: الرحلة + المهتمين + جودة المصادر */
.pv-ins { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; margin-bottom: 16px; }
.pv-ins .gs-panel { margin: 0; min-width: 0; }
.pv-funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pv-funnel li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; }
.pv-funnel li.is-drop { background: #fff7ed; }
.pv-f-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: #f3f4f6; display: inline-flex; align-items: center; justify-content: center; color: #374151; }
.pv-funnel li:last-child .pv-f-ic { background: #e7f8ee; color: #16a34a; }
.pv-f-main { flex: 1; min-width: 0; display: grid; gap: 5px; }
.pv-f-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13.5px; flex-wrap: wrap; }
.pv-f-top small { color: var(--gs-muted); font-weight: 700; }
.pv-f-note { color: #b45309; font-weight: 700; font-size: 12px; }
.pv-hot { display: grid; gap: 8px; }
.pv-hot-row { display: grid; grid-template-columns: minmax(0, 1.2fr) auto auto; gap: 10px; align-items: center; width: 100%; text-align: start; border: 1px solid var(--gs-border); background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pv-hot-row:hover { border-color: #d5d8de; box-shadow: 0 6px 16px rgba(16, 24, 40, .06); }
.pv-hot-main { min-width: 0; } .pv-hot-main b, .pv-hot-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-hot-main small, .pv-hot-end small { color: var(--gs-muted); font-size: 12px; }
.pv-hot-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.pv-hot-end { text-align: end; } .pv-hot-end b, .pv-hot-end small { display: block; white-space: nowrap; }
.pv-hot-ic { color: #ea580c; }
.pv-src { padding: 7px 0; border-bottom: 1px dashed #eceef1; display: grid; gap: 5px; } .pv-src:last-child { border-bottom: 0; }
.pv-src-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; } .pv-src-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-src-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--gs-muted); font-weight: 600; } .pv-src-meta .is-good { color: #16a34a; font-weight: 800; }
@media (max-width: 991px) { .pv-ins { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575px) { .pv-hot-row { grid-template-columns: minmax(0, 1fr) auto; } .pv-hot-tags { grid-column: 1 / -1; justify-content: flex-start; order: 3; } }
.pf-kpi-link { display: block; color: inherit !important; text-decoration: none !important; border-radius: 18px; }
.pf-kpi-link > .gs-kpi { height: 100%; transition: transform .15s, box-shadow .15s; }
.pf-kpi-link:hover > .gs-kpi { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(16, 24, 40, .08); }
.pf-kpi-go { font-weight: 800; color: #7c3aed; white-space: nowrap; }

/* [الاشتراك المفتوح + أكتر من اشتراك] تحكم المنصة في الجيم */
.pf-subs-grid { display: flex; flex-direction: column; gap: 0; margin: 0 0 10px; }
.pf-subs-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 18px; align-items: center; padding: 12px 0; border-top: 1px solid #eef0f3; }
.pf-subs-row:first-child { border-top: 0; }
.pf-subs-row[hidden] { display: none; }
.pf-subs-row select { width: auto; min-width: 180px; grid-column: 2 / 4; }
.pf-subs-t b { display: block; font-size: 13.5px; }
.pf-subs-t b .fa { color: #d53c41; margin-inline-end: 4px; }
.pf-subs-t small { display: block; color: #6b7280; font-size: 12px; margin-top: 2px; }
.pf-subs .pf-switch.is-off { opacity: .45; }
@media (max-width: 575.98px) { .pf-subs-row { grid-template-columns: 1fr 1fr; } .pf-subs-t { grid-column: 1 / -1; } .pf-subs-row select { grid-column: 1 / -1; width: 100%; } }

/* [ثيمات السيستم] ثيم شاشات الموظفين للجيم (تاب الشكل) */
.pf-theme { margin-bottom: 16px; }
.pf-theme-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }
.pf-theme-i { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--gs-border, #e1e3e8); background: #fff; border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 13px; }
.pf-theme-i.is-on { border-color: #141414; box-shadow: 0 0 0 2px rgba(20, 20, 20, .12); }
.pf-theme-i:disabled { opacity: .6; cursor: default; }
.pf-theme-sw { display: inline-flex; gap: 3px; }
.pf-theme-sw i { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .06); }

/* [الإرشادات] جولة الشاشات للجيم: شغالة / مقفولة */
.pf-tips { margin-bottom: 16px; }
.pf-tips-row { padding: 0 16px 16px; }
.pf-tips-row .pf-muted { margin: 8px 0 0; font-size: 13px; line-height: 1.6; }

/* [إشعار لفئة] لمين يوصل: كل الجيمات / فئة / أختار جيمات / جيم واحد */
.pn-to { display: flex; width: 100%; }
.pn-to button { flex: 1 1 0; min-width: 0; justify-content: center; }
.pn-box[hidden] { display: none; }
.pn-segs { display: flex; flex-wrap: wrap; gap: 8px; }
.pn-seg { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--gs-border, #e1e3e8); background: #fff; color: #374151; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; }
.pn-seg .fa { color: #9aa1ab; }
.pn-seg em { font-style: normal; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: #f1f2f4; color: #4b5563; font-size: 11.5px; display: inline-flex; align-items: center; justify-content: center; }
.pn-seg.is-on { border-color: #d53c41; background: #fbeced; color: #b52f34; }
.pn-seg.is-on .fa { color: #d53c41; }
.pn-seg.is-on em { background: #d53c41; color: #fff; }
.pn-seg:disabled { opacity: .5; cursor: default; }
.pn-pick-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.pn-pick-bar .pf-search { flex: 1 1 200px; }
.pn-pick-bar .pf-search input { width: 100%; }
.pn-pick { max-height: 260px; overflow-y: auto; border: 1px solid var(--gs-border, #e1e3e8); border-radius: 12px; padding: 4px; }
.pn-pick .pn-pick-i { display: flex !important; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; margin: 0; border-radius: 10px; cursor: pointer; }
.pn-pick-i:hover { background: #f6f7f9; }
.pn-pick-i input { width: 17px; height: 17px; accent-color: #d53c41; flex-shrink: 0; }
.pn-pick-i > span:not(.gs-pill) { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.pn-pick-i b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-pick-i small { color: #8a909b; font-size: 11.5px; text-align: start; }
html[dir="rtl"] .pn-pick-i small { text-align: right; }
.pn-reach:empty { display: none; }
.pn-reach { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; background: #eff8ff; color: #175cd3; font-size: 13px; }
.pn-reach small { flex: 1 1 100%; color: #4b5563; overflow-wrap: anywhere; }
@media (max-width: 991.98px) { .pn-to button { flex: 0 0 auto; } }

/* [شكل] لوجوهات الجيمات في المنصة (كروت الجيمات / الجدول / لوحة التحكم / صفحة الجيم / تبديل الجيم / التحليلات / المتأخرات):
   اللوجو كامل زي ما هو (من غير قص) بحواف مدورة خفيفة — من غير فريم ولا خلفية ولا مسافة حواليه. الحرف (لو مفيش لوجو) مربع بحواف مدورة خفيفة */
.pf-gym-cell img, .pf-gym-top img, .pf-gp-logo img, .pf-gym-logo img, .pf-now-item .pf-now-logo, .pi-gym img, .pf-owing-li img, .pf-gsw-logo img,
.gs-admin table.pf-table.gs-cards .pf-gym-cell img {
    border-radius: 22% !important; padding: 0 !important; background: transparent !important; object-fit: contain !important; box-shadow: none !important; border: 0 !important;
}
.pf-gym-mark, .pf-gym-mono, .pf-gsw-logo { border-radius: 22% !important; padding: 0 !important; box-shadow: none !important; }
/* [شكل] كروت الجيمات: "2 / 2" في سطر واحد (الـ / 2 كانت بتنزل سطر لوحدها) */
.pf-gym-stats .pf-limit { display: inline-block; direction: ltr; unicode-bidi: isolate; white-space: nowrap; font-size: 15px; }
.pf-gym-stats .pf-limit small { display: inline; font-size: 12px; margin: 0; }
.pf-gsw-logo:has(img) { background: transparent !important; }

/* =====================================================================
   [شكل — موبايل المنصة] زراير الكروت ماتتقصّش + البحث بعرض السطر + الفلاتر مترتبة
   ===================================================================== */
@media (max-width: 767.98px) {
    /* زراير الكارت: اتنين في السطر بمسافة واضحة (كانت 4 لازقين في سطر والكلام بيتقص) — زرار واحد = السطر كله */
    .gs-admin table.pf-table.gs-cards > tbody > tr > td.gs-td-actions {
        display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 12px !important; margin-top: 4px; border-top: 1px solid #eef0f2 !important;
    }
    .gs-admin table.pf-table.gs-cards > tbody > tr > td.gs-td-actions > .btn:only-child,
    .gs-admin table.pf-table.gs-cards > tbody > tr > td.gs-td-actions > .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .gs-admin table.pf-table.gs-cards td.gs-td-actions .btn {
        width: 100%; height: 40px; padding: 0 10px; border-radius: 12px; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #f6f7f9; border: 1px solid #e6e8ec; color: #1d2127;
    }
    .gs-admin table.pf-table.gs-cards td.gs-td-actions .btn .fa { flex: 0 0 auto; }
    /* البحث بعرض السطر كله (كان واخد جزء وجنبه فاضي) */
    .pf-sum-tools { gap: 10px; }
    .pf-sum-tools .pf-search, .gs-platform .gs-toolbar .pf-search { flex: 1 1 100%; min-width: 0; }
    .pf-sum-tools .pf-search input, .gs-platform .gs-toolbar .pf-search input { width: 100%; height: 44px; border-radius: 14px; }
    /* صفوف الفلاتر اللي بتتسحب بالعرض: الطرف بيبهت شوية عشان يبان إن فيه باقي (بدل ما الكلام يبان مقصوص) */
    .pf-sum-tools .pf-filters { flex: 1 1 100%; }
    html[dir="rtl"] .gs-admin .pf-filters { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px); mask-image: linear-gradient(to right, transparent 0, #000 28px); }
    html[dir="ltr"] .gs-admin .pf-filters { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 28px); mask-image: linear-gradient(to left, transparent 0, #000 28px); }
}

/* [إصلاح — موبايل] درج تفاصيل الجيم (لوحة التحكم): قاعدة "المودال من تحت" العامة كانت بتخلي طوله على قد المحتوى
   فكان بياخد الشاشة كلها ومابيعملش اسكرول — هنا بيفضل بطول الشاشة بالظبط والجزء اللي في النص بس هو اللي بيسكرول */
@media (max-width: 767.98px) {
    /* زي باقي المودالات على الموبايل: بيطلع من تحت وفوقه جزء فاضي باين منه الشاشة اللي ورا */
    .gs-admin .modal.pf-drawer:not(.gs-member-modal) .modal-dialog { top: auto !important; bottom: 0 !important; width: 100% !important; height: calc(100vh - 44px) !important; height: calc(100dvh - 44px - env(safe-area-inset-top, 0px)) !important; max-height: none !important; }
    .gs-admin .modal.pf-drawer:not(.gs-member-modal) .modal-content { height: 100% !important; max-height: none !important; border-radius: 22px 22px 0 0 !important; overflow: hidden; box-shadow: 0 -12px 40px rgba(0, 0, 0, .25); }
    .gs-admin .modal.pf-drawer .pf-gp-body { min-height: 0; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
    .gs-admin .modal.pf-drawer .pf-gp-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}

/* ================= [CRM + الإعلانات] مصدر الإعلان + سرعة الرد + أداء السيلز + الإعدادات ================= */
.crm-row-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.crm-ad, .crm-wait { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 700; line-height: 1.5; background: #f3f4f6; color: #3a404a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-ad bdi { overflow: hidden; text-overflow: ellipsis; }
.crm-ad.is-paid { background: #eef2ff; color: #3730a3; }
.crm-wait { background: #fff7ed; color: #c2410c; }
.crm-wait.is-late { background: #fef2f2; color: #b91c1c; animation: crmPulse 1.6s ease-in-out infinite; }
@keyframes crmPulse { 50% { box-shadow: 0 0 0 4px rgba(213, 60, 65, .12); } }
@media (prefers-reduced-motion: reduce) { .crm-wait.is-late { animation: none; } }
.crm-card .crm-row-tags { margin: 6px 0 2px; }
.crm-card .crm-ad, .crm-card .crm-wait { font-size: 11px; padding: 2px 8px; }
.crm-replied { color: #15803d; font-weight: 700; }
.crm-replied.is-late { color: #c2410c; }
.crm-lead-head .crm-wait { vertical-align: middle; }
.crm-adbox { margin-top: 12px; border: 1px solid var(--gs-border); border-radius: 12px; padding: 10px 12px; }
.crm-adbox.is-paid { border-color: #c7d2fe; background: linear-gradient(180deg, #f5f7ff, #fff); }
.crm-adbox > small { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12px; color: var(--gs-muted); margin-bottom: 8px; }
.crm-adbox > small em { font-style: normal; background: #3730a3; color: #fff; border-radius: 99px; padding: 0 8px; font-size: 11px; }
.crm-adbox .crm-dl { font-size: 13px; }
.crm-contact .btn.crm-tpl-btn.is-on, .crm-contact .btn.crm-tpl-btn.is-on:hover { background: #141414 !important; border-color: #141414 !important; color: #fff !important; }
.crm-tpl-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.crm-tpl-list button { text-align: start; border: 1px solid var(--gs-border); background: #fff; border-radius: 12px; padding: 9px 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.crm-tpl-list button:hover, .crm-tpl-list button:focus-visible { border-color: #16a34a; background: #f3fbf6; outline: 0; }
.crm-tpl-list b { display: block; font-size: 13px; }
.crm-tpl-list b .fa { color: #16a34a; }
.crm-tpl-list small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--gs-muted); font-size: 12px; white-space: pre-line; margin-top: 2px; }
/* أداء السيلز */
.crm-perf.is-loading { opacity: .55; }
.crm-perf-days { margin-bottom: 16px; }
.crm-perf-h { font-weight: 800; font-size: 14px; margin: 22px 0 12px; display: flex; align-items: center; gap: 8px; }
.crm-funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.crm-fstep { position: relative; background: #fff; border: 1px solid var(--gs-border); border-radius: 16px; padding: 14px 16px 16px; min-width: 0; }
.crm-fstep small { display: block; font-size: 12px; font-weight: 700; color: var(--gs-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-fstep b { font-size: 26px; font-weight: 800; line-height: 1.2; }
.crm-fstep em { font-style: normal; font-weight: 800; font-size: 12.5px; color: #636b78; margin-inline-start: 6px; }
.crm-fstep.is-s0 { background: linear-gradient(135deg, #141414, #2a1215); border: 0; color: #fff; }
.crm-fstep.is-s0 small { color: rgba(255, 255, 255, .65); }
.crm-fstep.is-s3 b { color: #15803d; }
.crm-fbar { display: block; height: 6px; border-radius: 99px; background: #f0f1f3; margin-top: 10px; overflow: hidden; }
.crm-fbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d53c41, #f2777b); }
.crm-fstep.is-s0 .crm-fbar { background: rgba(255, 255, 255, .15); }
.crm-fstep.is-s0 .crm-fbar i { background: #fff; }
.crm-fstep.is-s3 .crm-fbar i { background: linear-gradient(90deg, #16a34a, #4ade80); }
.crm-speed { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.crm-speed > div { flex: 1 1 140px; background: #f6f7f9; border-radius: 14px; padding: 10px 14px; min-width: 0; }
.crm-speed small { display: block; font-size: 12px; font-weight: 700; color: var(--gs-muted); }
.crm-speed b { font-size: 18px; font-weight: 800; }
.crm-perf .is-green { color: #15803d; } .crm-perf .is-warn { color: #c2410c; } .crm-perf .is-bad { color: #b91c1c; }
.crm-scards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.crm-scard { background: #fff; border: 1px solid var(--gs-border); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.crm-scard.is-none { background: #fafafa; border-style: dashed; }
.crm-scard header { display: flex; align-items: center; gap: 10px; }
.crm-scard header > div { flex: 1; min-width: 0; }
.crm-scard header b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-scard header small { color: var(--gs-muted); font-size: 12px; }
.crm-av { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; background: #141414; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.crm-rank { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 3px 10px; font-weight: 800; font-size: 12px; background: #f3f4f6; color: #636b78; }
.crm-rank.is-r0 { background: #fef3c7; color: #a16207; } .crm-rank.is-r1 { background: #eef0f3; color: #4b5563; } .crm-rank.is-r2 { background: #fdeee4; color: #9a4d1c; }
.crm-sbig { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.crm-sbig > div { background: #f6f7f9; border-radius: 12px; padding: 8px 12px; }
.crm-sbig small, .crm-smetrics small { display: block; font-size: 11.5px; font-weight: 700; color: var(--gs-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-sbig b { font-size: 22px; font-weight: 800; }
.crm-smetrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.crm-smetrics b { font-size: 14px; font-weight: 800; }
.crm-camps { display: flex; flex-direction: column; gap: 8px; }
.crm-camp { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--gs-border); border-radius: 14px; padding: 10px 14px; }
.crm-camp.is-paid { border-color: #c7d2fe; }
.crm-camp-ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; background: #f3f4f6; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; color: #3a404a; }
.crm-camp.is-paid .crm-camp-ic { background: #eef2ff; color: #3730a3; }
.crm-camp-t { flex: 1 1 auto; min-width: 0; }
.crm-camp-t b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-camp-t small { color: var(--gs-muted); font-size: 12px; }
.crm-camp-t .crm-fbar { margin-top: 6px; height: 5px; }
.crm-camp.is-paid .crm-fbar i { background: linear-gradient(90deg, #4f46e5, #818cf8); }
.crm-camp-n { flex: 0 0 auto; display: flex; gap: 16px; text-align: center; }
.crm-camp-n small { display: block; font-size: 11px; font-weight: 700; color: var(--gs-muted); }
.crm-camp-n b { font-size: 15px; font-weight: 800; }
.crm-perf-note { margin-top: 10px; font-size: 12.5px; }
/* الإعدادات */
.crm-set { border: 1px solid var(--gs-border); border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.crm-set-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.crm-set-h h6 { font-weight: 800; font-size: 14.5px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.crm-set-h p { margin: 0; color: var(--gs-muted); font-size: 12.5px; }
.crm-set-h select { width: auto; min-width: 150px; height: 38px; border-radius: 10px; flex: 0 0 auto; }
.crm-set-users { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; transition: opacity .2s; }
.crm-set-users.is-off { opacity: .45; pointer-events: none; }
.crm-set-user { display: inline-flex !important; align-items: center; gap: 8px; border: 1px solid var(--gs-border); border-radius: 99px; padding: 4px 12px 4px 4px; margin: 0; font-weight: 700; font-size: 13px; cursor: pointer; }
html[dir="rtl"] .crm-set-user { padding: 4px 4px 4px 12px; }
.crm-set-user input { position: absolute; opacity: 0; pointer-events: none; }
.crm-set-user .crm-av { width: 28px; height: 28px; border-radius: 99px; font-size: 12px; background: #e5e7eb; color: #3a404a; }
.crm-set-user:has(input:checked) { border-color: #141414; background: #141414; color: #fff; }
.crm-set-user:has(input:checked) .crm-av { background: #fff; color: #141414; }
.crm-set-user:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(20, 20, 20, .2); }
.crm-tpl-keys { font-size: 12.5px; color: var(--gs-muted); margin: 12px 0 8px; }
.crm-tpl-keys code { background: #f3f4f6; color: #141414; border-radius: 6px; padding: 1px 6px; font-size: 12px; }
.crm-tpl-edit { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.crm-tpl-row { background: #f8f9fa; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.crm-tpl-row-h { display: flex; gap: 6px; align-items: center; }
.crm-tpl-row-h input { font-weight: 700; height: 36px; border-radius: 10px; }
.crm-tpl-row textarea { border-radius: 10px; font-size: 13px; }
@media (max-width: 991.98px) { .crm-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
    .crm-camp { flex-wrap: wrap; } .crm-camp-t { flex-basis: calc(100% - 52px); } .crm-camp-n { flex-basis: 100%; justify-content: space-between; gap: 6px; }
    .crm-set-h { flex-wrap: wrap; } .crm-set-h select { flex: 1 1 100%; }
    .crm-scards { grid-template-columns: 1fr; }
    .crm-row .crm-row-acts { top: 14px; } .crm-row .crm-row-main { padding-inline-end: 84px; } .crm-row .crm-row-tags { margin-inline-end: -84px; }
    .gs-platform .crm-top .gs-toolbar-end .pf-btn { width: auto; flex: 1 1 0; min-width: 0; white-space: nowrap; }
    .gs-platform .crm-top .gs-toolbar-end #crmSet { flex: 0 0 46px; padding: 0; }
    .gs-platform .crm-top .gs-toolbar-end .crm-view, .gs-platform .crm-top .gs-toolbar-end #crmAdd { flex: 1 1 100%; }
}

/* [شكل] تنبيهات المنصة (متأخرين في الدفع / وصلوا للحد الأقصى / ...): كل سطر مليان على طول — الكروت اللي في آخر سطر بتتمد تاخد المساحة كلها (كمبيوتر وموبايل) */
.gs-platform .pf-attn:not([hidden]) { display: flex; flex-wrap: wrap; }
.gs-platform .pf-attn > .pf-attn-item { flex: 1 1 260px; min-width: 0; grid-column: auto !important; }
@media (max-width: 767.98px) { .gs-platform .pf-attn > .pf-attn-item { flex: 1 1 calc(50% - 4px); } }
/* [شكل] الفاتورة في المودال (أو لوحدها في الليستة) بتاخد العرض كله */
.modal .pf-inv-grid { grid-template-columns: minmax(0, 1fr); }

/* [شكل] أرقام الداشبورد: آخر سطر مليان على طول بالـ CSS (من غير ما نعتمد على الجافاسكريبت)
   موبايل: الكارت الكبير لوحده فوق وبعده اتنين اتنين ⇒ لو الباقي فردي آخر كارت بياخد السطر كله (زي "بيجربوا النسخة التجريبية") */
@media (max-width: 767.98px) { .gs-platform .pf-kpis > :last-child:nth-child(even) { grid-column: 1 / -1 !important; } }
/* تابلت / لابتوب صغير (3 أعمدة) */
@media (min-width: 768px) and (max-width: 1399.98px) {
    .gs-platform .pf-kpis > :last-child:nth-child(3n+2) { grid-column: span 2 !important; }
    .gs-platform .pf-kpis > :last-child:nth-child(3n+1) { grid-column: 1 / -1 !important; }
}

/* [موبايل] شريط المنصة اللي تحت (نفس شريط الجيم من gs-pages.css): وقت اختيار الجيمات بيختفي عشان شريط الإجراءات ، والرسايل الصغيرة بتطلع فوقه */
@media (max-width: 991.98px) {
    body.pf-selecting .pf-bottom-nav { transform: translateY(110%); }
    body:has(.pf-bottom-nav) .pf-toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}
