/* =====================================================================
   [أول ساعة للجيم الجديد] كارت "ابدأ من هنا" + سؤال "جيمك شغال إزاي؟" + سطر "ضيف ... الأول" + الشاشات الفاضية
   أسود وأحمر (لون الثيم) — الوضع الغامق تحت
   ===================================================================== */

/* ---------- سطر "لسه مفيش ... — ضيف ... الأول" ---------- */
.gs-need { width: 100%; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 4px; padding: 10px 12px; border-radius: 12px;
    background: rgba(var(--gs-red-rgb, 213, 60, 65), .07); border: 1px solid rgba(var(--gs-red-rgb, 213, 60, 65), .22); color: #3a2a2b; font-size: 13px; line-height: 1.7; }
.gs-need > .fa { color: var(--gs-red, #d53c41); }
.gs-need > span { flex: 1 1 200px; min-width: 0; }
.gs-need-go { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--gs-red, #d53c41); color: #fff !important; font-weight: 700; font-size: 12.5px; text-decoration: none !important; white-space: nowrap; }
.gs-need-go:hover, .gs-need-go:focus-visible { filter: brightness(1.06); }

/* ---------- الشاشات الفاضية: زرار الإضافة ---------- */
.gs-empty-add { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 18px; border: 0; border-radius: 12px; background: var(--gs-red, #d53c41); color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; text-decoration: none !important; }
.gs-empty-add:hover, .gs-empty-add:focus-visible { filter: brightness(1.06); color: #fff; }
.gs-empty-tip { display: block; margin-top: 6px; color: var(--gs-muted, #636b78); font-size: 12.5px; }

/* ---------- كارت "ابدأ من هنا" (الرئيسية + فوق كل الصفحات لأدمن الإدارة العامة): شريط خطوات أفقي + الخطوة الجاية وهديتها ---------- */
.gs-setup { --gs-gold: #b7791f; --gs-gold-bg: #fff7e6; --gs-ok: #16a34a; --gs-ok-bg: rgba(22, 163, 74, .12);
    margin: 0 0 18px; padding: 16px 18px 10px; border-radius: 16px; background: var(--gs-surface, #fff); border: 1px solid var(--gs-border, #eceef1);
    box-shadow: 0 6px 20px rgba(16, 24, 40, .05); position: relative; }
.gs-setup.is-fresh { animation: gsSetupIn .45s ease both; }
@keyframes gsSetupIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gs-setup.is-fresh { animation: none; } }
.gs-setup-head { display: flex; align-items: center; gap: 12px; }
.gs-setup-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--gs-red-rgb, 213, 60, 65), .1); color: var(--gs-red, #d53c41); font-size: 17px; }
.gs-setup-ht { flex: 1 1 auto; min-width: 0; }
.gs-setup-ht h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--gs-text, #1d2127); }
.gs-setup-ht p { margin: 2px 0 0; font-size: 13px; color: var(--gs-muted, #636b78); }
.gs-setup-prog { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.4; }
.gs-setup-prog b { font-size: 15px; font-weight: 800; color: var(--gs-text, #1d2127); white-space: nowrap; }
.gs-setup-prog span { font-size: 12px; color: var(--gs-muted, #636b78); white-space: nowrap; }
.gs-setup-min { flex: 0 0 auto; width: 32px; height: 32px; border: 1px solid var(--gs-border, #eceef1); border-radius: 9px; background: transparent; color: var(--gs-muted, #636b78); cursor: pointer; }
.gs-setup-min:hover, .gs-setup-min:focus-visible { background: rgba(127, 127, 127, .12); color: var(--gs-text, #1d2127); }
.gs-setup-bar { height: 4px; margin: 14px 0 12px; border-radius: 999px; background: rgba(127, 127, 127, .14); overflow: hidden; }
.gs-setup-bar i { display: block; height: 100%; border-radius: 999px; background: var(--gs-red, #d53c41); transition: width .5s ease; }
.gs-setup.is-min { padding-bottom: 16px; }
.gs-setup.is-min .gs-setup-body, .gs-setup.is-min .gs-setup-bar { display: none; }

/* شريط الخطوات */
.gs-setup-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 9), minmax(0, 1fr)); gap: 4px; }
.gs-st { position: relative; text-align: center; }
.gs-st:not(:last-child)::after { content: ""; position: absolute; top: 14px; inset-inline-start: calc(50% + 17px); inset-inline-end: calc(-50% + 17px); height: 2px; border-radius: 2px; background: var(--gs-border, #eceef1); }
.gs-st.is-done:not(:last-child)::after { background: var(--gs-red, #d53c41); }
.gs-st-in { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none !important; color: inherit; }
.gs-st-dot { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
    border: 2px solid var(--gs-border-strong, #cfd3da); color: var(--gs-muted, #636b78); background: var(--gs-surface, #fff); position: relative; z-index: 1; }
.gs-st.is-done .gs-st-dot { background: var(--gs-red, #d53c41); border-color: var(--gs-red, #d53c41); color: #fff; }
.gs-st.is-now .gs-st-dot { border-color: var(--gs-red, #d53c41); color: var(--gs-red, #d53c41); box-shadow: 0 0 0 4px rgba(var(--gs-red-rgb, 213, 60, 65), .14); }
.gs-st-lbl { font-size: 12px; font-weight: 700; line-height: 1.35; color: var(--gs-text, #1d2127); }
.gs-st.is-todo .gs-st-lbl { font-weight: 600; color: var(--gs-muted, #636b78); }
a.gs-st-in:hover .gs-st-lbl, a.gs-st-in:focus-visible .gs-st-lbl { color: var(--gs-red, #d53c41); }
.gs-st-gift { font-size: 11px; font-weight: 700; color: var(--gs-gold); background: var(--gs-gold-bg); border-radius: 999px; padding: 0 7px; white-space: nowrap; }
.gs-st-gift.is-got { color: var(--gs-ok); background: var(--gs-ok-bg); }
/* انت هنا: خطوة الشاشة المفتوحة (أخضر) */
.gs-st.is-here .gs-st-dot { box-shadow: 0 0 0 3px var(--gs-surface, #fff), 0 0 0 5px var(--gs-ok); }
.gs-st-here { font-size: 11px; font-weight: 800; color: #fff; background: var(--gs-ok); border-radius: 999px; padding: 0 8px; white-space: nowrap; }
.gs-sn-here { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 14px; border-radius: 10px; font-weight: 800; font-size: 13.5px;
    color: var(--gs-ok); background: var(--gs-ok-bg); white-space: nowrap; }
.gs-so-i.is-here, .gs-so-i.is-here.is-done { color: #fff !important; background: var(--gs-ok); border-color: var(--gs-ok); }
.gs-setup.is-page { margin-bottom: 14px; }

/* الخطوة الجاية */
.gs-setup-next { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(127, 127, 127, .06); border: 1px dashed var(--gs-border-strong, #cfd3da); }
.gs-sn-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.gs-sn-tx small { font-size: 12px; font-weight: 700; color: var(--gs-red, #d53c41); }
.gs-sn-tx b { font-size: 15px; color: var(--gs-text, #1d2127); }
.gs-sn-tx span { font-size: 13px; line-height: 1.7; color: var(--gs-muted, #636b78); }
.gs-sn-gift { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; color: var(--gs-gold); background: var(--gs-gold-bg); }
.gs-sn-gift > .fa { font-size: 20px; }
.gs-sn-gift div { display: flex; flex-direction: column; line-height: 1.35; }
.gs-sn-gift b { font-size: 13px; white-space: nowrap; }
.gs-sn-gift small { font-size: 11.5px; opacity: .9; white-space: nowrap; }
.gs-sn-go { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 16px; border: 0; border-radius: 10px; cursor: pointer;
    background: var(--gs-red, #d53c41) !important; color: #fff !important; font-weight: 800; font-size: 14px; white-space: nowrap; text-decoration: none !important; }
.gs-sn-go:hover, .gs-sn-go:focus-visible { filter: brightness(1.06); }
.gs-setup-no { font-size: 12px; color: var(--gs-muted, #636b78); }

/* اختياري: التدريب الخاص (الجيم الشهري) */
.gs-setup-opt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--gs-border, #eceef1); }
.gs-so-t { display: flex; flex-direction: column; line-height: 1.4; }
.gs-so-t b { font-size: 13px; color: var(--gs-text, #1d2127); }
.gs-so-t small { font-size: 11.5px; color: var(--gs-muted, #636b78); }
.gs-so-list { display: flex; flex-wrap: wrap; gap: 6px; }
.gs-so-i { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--gs-border-strong, #cfd3da); font-size: 12.5px; font-weight: 700;
    color: var(--gs-text, #1d2127) !important; text-decoration: none !important; }
a.gs-so-i:hover, a.gs-so-i:focus-visible { border-color: var(--gs-red, #d53c41); }
.gs-so-i.is-done { color: var(--gs-ok) !important; border-color: var(--gs-ok-bg); background: var(--gs-ok-bg); }

.gs-setup-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 10px; font-size: 12.5px; line-height: 1.7; color: var(--gs-muted, #636b78); }
.gs-setup-foot a { flex: 0 0 auto; font-weight: 800; color: var(--gs-ok) !important; white-space: nowrap; }

/* ---------- إرشاد الشاشة على حسب نوع الجيم ---------- */
.gs-setup-hint { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; padding: 9px 12px; border-radius: 12px; background: #fff7e6; border: 1px solid #f6e3bd; color: #5b4a2a; font-size: 13px; line-height: 1.7; }
.gs-setup-hint > .fa { color: #b7791f; font-size: 15px; margin-top: 3px; }

/* ---------- رسالة "مبروك! نزلك ..." ---------- */
.gs-gift-toast { position: fixed; z-index: 2000; bottom: 24px; left: 50%; transform: translate(-50%, 20px); opacity: 0; transition: opacity .25s ease, transform .25s ease;
    display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); width: max-content; padding: 12px 14px 12px 18px; border-radius: 14px;
    background: #141414; color: #fff; border: 1px solid #2c2c30; box-shadow: 0 12px 32px rgba(0, 0, 0, .28); font-family: inherit; }
[dir="rtl"] .gs-gift-toast { padding: 12px 18px 12px 14px; }
.gs-gift-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.gs-gift-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gs-red, #d53c41); font-size: 18px; }
.gs-gift-toast div { display: flex; flex-direction: column; min-width: 0; }
.gs-gift-toast b { font-size: 15px; }
.gs-gift-toast small { font-size: 12.5px; opacity: .82; }
.gs-gift-x { flex: 0 0 auto; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #aaa; cursor: pointer; }
.gs-gift-x:hover, .gs-gift-x:focus-visible { color: #fff; background: rgba(255, 255, 255, .1); }
@media (prefers-reduced-motion: reduce) { .gs-gift-toast { transition: none; } }

/* ---------- المقاسات: التابلت والشاشات الصغيرة = الخطوات على سطرين ، الموبايل = سطرين بدواير أصغر وكل جزء تحت التاني ---------- */
@media (max-width: 1199.98px) {
    .gs-setup-track.is-long { grid-template-columns: repeat(var(--h, 5), minmax(0, 1fr)); row-gap: 14px; }
    .gs-setup-track.is-long .gs-st.is-row-end::after { display: none; }
}
@media (max-width: 767.98px) {
    .gs-setup { padding: 14px 12px 10px; border-radius: 14px; }
    .gs-setup-head { gap: 10px; align-items: flex-start; }
    .gs-setup-prog { padding-top: 2px; }
    .gs-setup-ic { width: 36px; height: 36px; font-size: 15px; }
    .gs-setup-ht h3 { font-size: 16px; }
    .gs-setup-ht p { font-size: 12px; line-height: 1.6; }
    .gs-setup-prog span { display: none; }
    .gs-setup-bar { margin: 12px 0 12px; }
    .gs-setup-track { gap: 2px; row-gap: 14px; }
    .gs-st:not(:last-child)::after { top: 12px; inset-inline-start: calc(50% + 15px); inset-inline-end: calc(-50% + 15px); }
    .gs-st-dot { width: 26px; height: 26px; font-size: 12px; }
    .gs-st-lbl { font-size: 11px; line-height: 1.3; padding: 0 1px; overflow-wrap: anywhere; }
    .gs-st-in { gap: 3px; }
    .gs-st-gift, .gs-st-here { font-size: 10px; padding: 0 6px; }
    .gs-setup-next { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
    .gs-sn-gift { justify-content: center; }
    .gs-sn-go, .gs-sn-here { width: 100%; justify-content: center; }
    .gs-setup-opt { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; }
    .gs-setup-foot { flex-direction: column; gap: 6px; }
    .gs-gift-toast { bottom: 76px; width: calc(100% - 32px); }
}
@media (max-width: 379.98px) { .gs-st-lbl { font-size: 10px; } .gs-st-dot { width: 24px; height: 24px; } .gs-st-here { padding: 0 4px; font-size: 9.5px; } .gs-st-here .fa { display: none; } }
/* الطباعة (التقارير): الكارت مابيتطبعش */
@media print { .gs-setup, .gs-setup-hint, .gs-gift-toast { display: none !important; } }


/* ---------- سؤال "جيمك شغال إزاي؟" ---------- */
.gs-ask-modal .modal-content { border: 0; border-radius: 20px; overflow: hidden; }
.gs-ask-modal .modal-body { padding: 26px 24px 22px; text-align: center; }
.gs-ask-ic { display: inline-flex; width: 54px; height: 54px; border-radius: 16px; align-items: center; justify-content: center; background: #141414; color: #fff; font-size: 22px; box-shadow: 0 0 0 6px rgba(var(--gs-red-rgb, 213, 60, 65), .14); }
.gs-ask-t { margin: 14px 0 6px; font-size: 20px; font-weight: 800; color: var(--gs-text, #1d2127); }
.gs-ask-sub { margin: 0 auto 16px; max-width: 420px; font-size: 13.5px; line-height: 1.8; color: var(--gs-muted, #636b78); }
.gs-ask-opts { display: flex; flex-direction: column; gap: 10px; text-align: start; }
.gs-admin .modal-body label.gs-ask-opt, .gs-ask-opt { display: grid !important; grid-template-columns: 44px minmax(0, 1fr) 24px; gap: 12px; align-items: center; margin: 0; padding: 12px 14px; border-radius: 14px;
    border: 2px solid var(--gs-border, #eceef1); cursor: pointer; font-weight: 400; transition: border-color .15s ease, background .15s ease; }
.gs-ask-opt:hover { border-color: var(--gs-border-strong, #cfd3da); }
.gs-ask-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.gs-ask-opt:focus-within { outline: 3px solid rgba(var(--gs-red-rgb, 213, 60, 65), .3); outline-offset: 2px; }
.gs-ask-oic { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(127, 127, 127, .1); color: var(--gs-text, #1d2127); font-size: 18px; }
.gs-ask-otx b { display: block; font-size: 15px; color: var(--gs-text, #1d2127); }
.gs-ask-otx small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.7; color: var(--gs-muted, #636b78); }
.gs-ask-ock { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--gs-border-strong, #cfd3da); display: inline-flex; align-items: center; justify-content: center; color: transparent; font-size: 12px; }
.gs-ask-opt.is-on { border-color: var(--gs-red, #d53c41); background: rgba(var(--gs-red-rgb, 213, 60, 65), .05); }
.gs-ask-opt.is-on .gs-ask-oic { background: var(--gs-red, #d53c41); color: #fff; }
.gs-ask-opt.is-on .gs-ask-ock { background: var(--gs-red, #d53c41); border-color: var(--gs-red, #d53c41); color: #fff; }
.gs-admin .modal-body label.gs-ask-cur, .gs-ask-cur { display: block; margin: 14px 0 0; text-align: start; font-weight: 400; }
.gs-ask-cur > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--gs-text, #1d2127); }
.gs-ask-err { margin: 12px 0 0; color: var(--gs-red, #d53c41); font-size: 13px; font-weight: 700; }
.gs-admin .gs-ask-go, .gs-ask-go { margin-top: 18px; width: 100%; min-height: 48px; border-radius: 14px; font-weight: 800; font-size: 15px; background: var(--gs-red, #d53c41) !important; border: 0 !important; color: #fff !important; }
.gs-admin .gs-ask-go:disabled, .gs-ask-go:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 575.98px) { .gs-ask-modal .modal-body { padding: 30px 16px 18px; } .gs-ask-opt { grid-template-columns: 40px minmax(0, 1fr) 22px; padding: 10px 12px; } }

/* ---------- الوضع الغامق ---------- */
html[data-mode="dark"] .gs-need { color: var(--gd-text-2, #cacace); background: rgba(var(--gs-red-rgb, 213, 60, 65), .12); border-color: rgba(var(--gs-red-rgb, 213, 60, 65), .3); }
html[data-mode="dark"] .gs-setup { background: var(--gd-surface, #131316); border-color: var(--gd-border, #24242a); box-shadow: none; --gs-gold: #f0b44c; --gs-gold-bg: rgba(240, 180, 76, .14); --gs-ok-bg: rgba(22, 163, 74, .2); }
html[data-mode="dark"] .gs-ask-ic { background: var(--gd-surface-3, #222227); }
html[data-mode="dark"] .gs-setup-ht h3, html[data-mode="dark"] .gs-setup-prog b, html[data-mode="dark"] .gs-st-lbl, html[data-mode="dark"] .gs-sn-tx b, html[data-mode="dark"] .gs-so-t b,
html[data-mode="dark"] .gs-ask-t, html[data-mode="dark"] .gs-ask-otx b, html[data-mode="dark"] .gs-ask-cur > span { color: var(--gd-text, #f1f1f3) !important; }
html[data-mode="dark"] .gs-st.is-todo .gs-st-lbl { color: var(--gd-text-3, #9a9aa3) !important; }
html[data-mode="dark"] .gs-st-dot { background: var(--gd-surface, #131316); border-color: var(--gd-border-3, #4a4a53); }
html[data-mode="dark"] .gs-st.is-done .gs-st-dot { background: var(--gs-red, #d53c41); border-color: var(--gs-red, #d53c41); }
html[data-mode="dark"] .gs-st:not(:last-child)::after { background: var(--gd-border-2, #33333a); }
html[data-mode="dark"] .gs-st.is-done:not(:last-child)::after { background: var(--gs-red, #d53c41); }
html[data-mode="dark"] .gs-setup-next { background: var(--gd-surface-2, #1a1a1e); border-color: var(--gd-border-2, #33333a); }
html[data-mode="dark"] .gs-setup-opt, html[data-mode="dark"] .gs-setup-min { border-color: var(--gd-border-2, #33333a); }
html[data-mode="dark"] .gs-so-i { color: var(--gd-text, #f1f1f3) !important; border-color: var(--gd-border-3, #4a4a53); }
html[data-mode="dark"] .gs-so-i.is-done { color: #4ade80 !important; }
html[data-mode="dark"] .gs-so-i.is-here, html[data-mode="dark"] .gs-so-i.is-here.is-done { color: #fff !important; background: #16a34a; border-color: #16a34a; }
html[data-mode="dark"] .gs-st.is-here .gs-st-dot { box-shadow: 0 0 0 3px var(--gd-surface, #131316), 0 0 0 5px #16a34a; }
html[data-mode="dark"] .gs-setup-hint { background: rgba(240, 180, 76, .1); border-color: rgba(240, 180, 76, .25); color: var(--gd-text-2, #cacace); }
html[data-mode="dark"] .gs-setup-hint > .fa { color: #f0b44c; }
html[data-mode="dark"] .gs-ask-modal .modal-content { background: var(--gd-surface, #131316); }
html[data-mode="dark"] .gs-ask-opt { border-color: var(--gd-border-2, #33333a); }
html[data-mode="dark"] .gs-ask-oic { background: var(--gd-surface-3, #222227); color: var(--gd-text, #f1f1f3); }
html[data-mode="dark"] .gs-ask-ock { border-color: var(--gd-border-3, #4a4a53); }
