/* ============================================================
   IranRadyab - onboarding tour (desktop + mobile)
   Shared by tracking.php and mobile/tracking.php
   ============================================================ */

.gs-tour,
.gs-tour * {
    box-sizing: border-box;
}

.gs-tour {
    display: none;
}

.gs-tour.is-active {
    display: block;
}

/* click blocker: the page must not be used while the tour is open */
.gs-tour-blocker {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483000;
    background: transparent;
    cursor: default;
}

/* full dim used on steps without a target */
.gs-tour-dim {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483001;
    display: none;
    background: rgba(8, 14, 26, 0.62);
    pointer-events: none;
}

.gs-tour-dim.is-on {
    display: block;
}

/* highlight cutout: huge shadow dims everything except the target */
.gs-tour-spot {
    position: fixed;
    z-index: 2147483002;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 0 0 9999px rgba(8, 14, 26, 0.62),
                0 0 0 2px rgba(255, 255, 255, 0.92),
                0 0 0 6px rgba(43, 130, 212, 0.45);
    transition: left 0.22s ease, top 0.22s ease, width 0.22s ease, height 0.22s ease, opacity 0.18s ease;
}

.gs-tour-spot.is-on {
    opacity: 1;
}

.gs-tour-arrow {
    position: fixed;
    z-index: 2147483002;
    display: none;
    width: 14px;
    height: 14px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow: -3px -3px 8px rgba(15, 23, 42, 0.08);
}

.gs-tour-arrow.is-on {
    display: block;
}

/* tooltip / dialog */
.gs-tour-tip {
    position: fixed;
    z-index: 2147483003;
    width: 372px;
    max-width: calc(100vw - 24px);
    padding: 16px 18px 14px;
    border-radius: 16px;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 18px 50px rgba(2, 8, 20, 0.32);
    direction: rtl;
    text-align: right;
    font-family: 'Shabnam', 'Segoe UI', Tahoma, Arial, sans-serif;
}

.gs-tour-tip:focus {
    outline: none;
}

/* the page is locked, but the card itself may still need to scroll */
.gs-tour-tip {
    touch-action: pan-y;
    overscroll-behavior: contain;
}

.gs-tour-tip:focus-visible {
    outline: 2px solid #2b82d4;
    outline-offset: 3px;
}

.gs-tour-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.gs-tour-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eaf4ff;
    color: #1f6fb8;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
}

.gs-tour-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: #f1f5f9;
    color: #475569;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.gs-tour-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.gs-tour-title {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    unicode-bidi: plaintext;
}

.gs-tour-body {
    margin: 0;
    color: #475569;
    font-size: 13.5px;
    line-height: 1.9;
    unicode-bidi: plaintext;
}

.gs-tour-check {
    display: none;
    align-items: flex-start;
    gap: 9px;
    margin-top: 13px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-size: 12.5px;
    line-height: 1.75;
    cursor: pointer;
}

.gs-tour-check.is-on {
    display: flex;
}

.gs-tour-check input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    accent-color: #2b82d4;
    cursor: pointer;
}

.gs-tour-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 13px 0 11px;
}

.gs-tour-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gs-tour-dot:hover {
    background: #94a3b8;
}

.gs-tour-dot[aria-current="true"] {
    width: 20px;
    background: #2b82d4;
}

.gs-tour-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gs-tour-skip {
    padding: 6px 2px;
    border: 0;
    background: none;
    color: #64748b;
    font-family: inherit;
    font-size: 12.5px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.gs-tour-skip:hover {
    color: #334155;
}

.gs-tour-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gs-tour-btn {
    min-width: 72px;
    padding: 8px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.gs-tour-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.gs-tour-btn--primary {
    border-color: #2b82d4;
    background: #2b82d4;
    color: #ffffff;
}

.gs-tour-btn--primary:hover {
    border-color: #1f6fb8;
    background: #1f6fb8;
    color: #ffffff;
}

.gs-tour-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.gs-tour-btn:focus-visible,
.gs-tour-close:focus-visible,
.gs-tour-skip:focus-visible,
.gs-tour-dot:focus-visible {
    outline: 2px solid #2b82d4;
    outline-offset: 2px;
}

.gs-tour-live {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* small screens and the mobile app: bottom sheet instead of a floating card */
.gs-tour.is-sheet .gs-tour-tip {
    right: 10px;
    left: 10px !important;
    top: auto !important;
    bottom: 10px;
    width: auto;
    max-width: none;
    max-height: 60vh;
    overflow-y: auto;
    border-radius: 18px;
    padding: 16px 16px 14px;
}

.gs-tour.is-sheet.is-sheet-top .gs-tour-tip {
    top: 10px !important;
    bottom: auto;
}

.gs-tour.is-sheet .gs-tour-arrow {
    display: none !important;
}

.gs-tour.is-sheet .gs-tour-title {
    font-size: 15.5px;
}

.gs-tour.is-sheet .gs-tour-body {
    font-size: 13px;
    line-height: 1.85;
}

.gs-tour.is-sheet .gs-tour-btn {
    padding: 9px 14px;
}

/* keep the page still while the tour is open */
html.gs-tour-lock,
body.gs-tour-lock {
    overflow: hidden !important;
    touch-action: none;
}

/* replay buttons */
#top_panel .tour-btn a {
    padding-top: 8px;
    padding-bottom: 8px;
    color: #2b82d4;
}

#top_panel .tour-btn svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.mobile-tour-btn .badge-tour-dot {
    position: absolute;
    top: 6px;
    left: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffd166;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}
