/* =====================================================================
   [الإرشادات] جولة خطوات الشاشة: الخلفية الغامقة + النور على الجزء + الكارت العايم + "؟" جنب العنوان
   بياخد لون ثيم الجيم (--gs-red)
   ===================================================================== */

/* "؟" جنب العنوان */
.gs-title.gs-has-tip .gs-page-title { display: inline-block; max-width: calc(100% - 38px); vertical-align: middle; }
.gs-tip-q {
    display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
    width: 24px; height: 24px; margin-inline-start: 8px; padding: 0; border-radius: 50%;
    border: 1px solid rgba(var(--gs-red-rgb, 213, 60, 65), .3); background: rgba(var(--gs-red-rgb, 213, 60, 65), .08);
    color: var(--gs-red, #d53c41); font-size: 12px; cursor: pointer; transition: background .15s, color .15s;
}
.gs-tip-q:hover { background: var(--gs-red, #d53c41); color: #fff; border-color: transparent; }
.gs-tip-q:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--gs-accent-ring, rgba(213, 60, 65, .18)); }
.gs-tip-q.is-new { animation: gsTipPulse 1.3s ease-out; }
@keyframes gsTipPulse {
    0% { transform: scale(.5); box-shadow: 0 0 0 0 rgba(var(--gs-red-rgb, 213, 60, 65), .5); }
    35% { transform: scale(1.15); }
    60% { transform: scale(1); }
    100% { box-shadow: 0 0 0 12px rgba(var(--gs-red-rgb, 213, 60, 65), 0); }
}

/* الخلفية الغامقة (SVG فيه فتحة على الجزء) — وكمان بتمنع الضغط على الشاشة وقت الجولة */
.gs-tour-back { position: fixed; inset: 0; z-index: 1070; visibility: hidden; opacity: 0; transition: opacity .28s ease, visibility 0s linear .28s; }
.gs-tour-back.is-on { visibility: visible; opacity: 1; transition: opacity .28s ease; }
.gs-tour-back svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gs-tour-back path { fill: rgba(12, 16, 24, .64); }

/* الإطار حوالين الجزء المنور (ماشي مع الفتحة) */
.gs-tour-spot {
    position: fixed; z-index: 1071; pointer-events: none; border-radius: 12px; opacity: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .92), 0 0 0 7px rgba(var(--gs-red-rgb, 213, 60, 65), .32);
    transition: opacity .25s ease;
}
.gs-tour-spot.is-on { opacity: 1; }

/* الكارت */
.gs-tour-card {
    position: fixed; z-index: 1072; top: -9999px; left: 0;
    background: #fff; color: #344054; border-radius: 16px; padding: 16px 18px 14px;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .08);
    opacity: 0; transform: translateY(8px) scale(.98); pointer-events: none;
    transition: opacity .22s ease, transform .26s cubic-bezier(.2, .8, .2, 1), top .32s cubic-bezier(.2, .8, .2, 1), left .32s cubic-bezier(.2, .8, .2, 1);
}
.gs-tour-card:empty { display: none; }
.gs-tour-in { max-height: calc(100vh - 54px); overflow-y: auto; overscroll-behavior: contain; }
.gs-tour-card.is-moving { transition: opacity .22s ease, transform .26s cubic-bezier(.2, .8, .2, 1); }
.gs-tour-card.is-in { opacity: 1; transform: none; pointer-events: auto; }
.gs-tour-card[data-pos="center"] { transition: opacity .22s ease, transform .26s cubic-bezier(.2, .8, .2, 1); }

.gs-tour-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.gs-tour-badge {
    display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
    background: rgba(var(--gs-red-rgb, 213, 60, 65), .1); color: var(--gs-red, #d53c41); font-size: 11.5px; font-weight: 700;
}
.gs-tour-step { font-size: 12px; color: #98a2b3; font-weight: 600; }
.gs-tour-x {
    margin-inline-start: auto; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #98a2b3;
    display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s;
}
.gs-tour-x:hover { background: #f2f4f7; color: #344054; }

.gs-tour-card h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 700; color: #101828; line-height: 1.4; }
.gs-tour-card p { margin: 0; font-size: 14px; line-height: 1.7; color: #475467; }
.gs-tour-card ul { list-style: none; margin: 10px 0 0; padding: 0; }
.gs-tour-card li { position: relative; padding-inline-start: 16px; margin-bottom: 6px; font-size: 13.5px; line-height: 1.65; color: #475467; }
.gs-tour-card li::before {
    content: ""; position: absolute; inset-inline-start: 2px; top: .66em; width: 6px; height: 6px; border-radius: 50%;
    background: rgba(var(--gs-red-rgb, 213, 60, 65), .6);
}

.gs-tour-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.gs-tour-dots { display: flex; align-items: center; gap: 5px; margin-inline-end: auto; flex-wrap: wrap; max-width: 45%; }
.gs-tour-dots i { width: 6px; height: 6px; border-radius: 999px; background: #e4e7ec; transition: width .25s, background .25s; }
.gs-tour-dots i.is-done { background: rgba(var(--gs-red-rgb, 213, 60, 65), .35); }
.gs-tour-dots i.is-on { width: 18px; background: var(--gs-red, #d53c41); }
.gs-tour-skip, .gs-tour-prev, .gs-tour-next {
    height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; border: 0; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px; transition: background .15s, color .15s, box-shadow .15s;
}
.gs-tour-skip { background: transparent; color: #98a2b3; padding: 0 8px; }
.gs-tour-skip:hover { color: #344054; }
.gs-tour-prev { background: #f2f4f7; color: #344054; }
.gs-tour-prev:hover { background: #e9ecf1; }
.gs-tour-next { background: var(--gs-red, #d53c41); color: #fff; box-shadow: 0 6px 16px -6px rgba(var(--gs-red-rgb, 213, 60, 65), .6); }
.gs-tour-next:hover { background: var(--gs-red-dark, #b52f34); }
.gs-tour-card button:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--gs-accent-ring, rgba(213, 60, 65, .22)); }

/* السهم ناحية الجزء */
.gs-tour-arrow { position: absolute; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 3px; display: none; }
.gs-tour-card[data-pos="bottom"] .gs-tour-arrow { display: block; top: -6px; }
.gs-tour-card[data-pos="top"] .gs-tour-arrow { display: block; bottom: -6px; }
.gs-tour-card[data-pos="right"] .gs-tour-arrow { display: block; left: -6px; }
.gs-tour-card[data-pos="left"] .gs-tour-arrow { display: block; right: -6px; }

/* الموبايل: الكارت بعرض الشاشة */
@media (max-width: 575.98px) {
    .gs-tour-card { padding: 14px 16px 12px; border-radius: 16px; }
    .gs-tour-card h3 { font-size: 16px; }
    .gs-tour-card p { font-size: 13.5px; }
    .gs-tour-skip { display: none; }
    .gs-tour-dots { max-width: 40%; }
}

@media (prefers-reduced-motion: reduce) {
    .gs-tour-spot, .gs-tour-card, .gs-tour-back, .gs-tour-back.is-on { transition: none; }
    .gs-tip-q.is-new { animation: none; }
}
@media print { .gs-tour-back, .gs-tour-spot, .gs-tour-card, .gs-tip-q { display: none !important; } }
