/* Shell سایت (برگرفته از pure-version navbar + sidenav) */

.site-beta-banner {
    border-bottom: 1px solid rgb(51 65 85 / 0.35);
    background:
        radial-gradient(circle at 15% 50%, rgb(234 88 12 / 0.18), transparent 42%),
        radial-gradient(circle at 85% 50%, rgb(37 99 235 / 0.16), transparent 40%),
        linear-gradient(90deg, rgb(15 23 42), rgb(30 41 59) 50%, rgb(15 23 42));
    padding: 0.5rem 0;
}

.site-beta-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

.site-beta-banner__content {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

.site-beta-banner__pulse {
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: rgb(251 191 36);
    box-shadow: 0 0 0 0 rgb(251 191 36 / 0.55);
    animation: siteBetaPulse 2.4s ease-out infinite;
}

@keyframes siteBetaPulse {
    0% {
        box-shadow: 0 0 0 0 rgb(251 191 36 / 0.55);
    }

    70% {
        box-shadow: 0 0 0 0.45rem rgb(251 191 36 / 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgb(251 191 36 / 0);
    }
}

.site-beta-banner__badge {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.35rem;
    border-radius: 9999px;
    border: 1px solid rgb(251 191 36 / 0.45);
    background: rgb(251 191 36 / 0.12);
    padding: 0.2rem 0.65rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: rgb(253 230 138);
}

.site-beta-banner__badge-icon {
    width: 0.875rem;
    height: 0.875rem;
    color: rgb(251 191 36);
}

.site-beta-banner__divider {
    flex-shrink: 0;
    width: 1px;
    height: 0.875rem;
    background: rgb(148 163 184 / 0.35);
}

.site-beta-banner__message {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgb(203 213 225);
}

.site-beta-banner__link {
    flex-shrink: 0;
    border-radius: 9999px;
    border: 1px solid rgb(148 163 184 / 0.35);
    background: rgb(255 255 255 / 0.06);
    padding: 0.25rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgb(226 232 240);
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-beta-banner__link:hover {
    border-color: rgb(251 191 36 / 0.55);
    background: rgb(251 191 36 / 0.12);
    color: rgb(255 251 235);
}

@media (max-width: 639px) {
    .site-beta-banner__message {
        display: none;
    }

    .site-beta-banner__divider {
        display: none;
    }

    .site-beta-banner__inner {
        padding-inline: 0.75rem;
    }
}

@media (max-width: 420px) {
    .site-beta-banner__link {
        padding-inline: 0.55rem;
        font-size: 0.625rem;
    }
}

html,
body {
    max-width: 100%;
}

.navbar-services-scroll,
.navbar-search-menu-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgb(148 163 184) transparent;
}

.navbar-services-scroll::-webkit-scrollbar,
.navbar-search-menu-scroll::-webkit-scrollbar {
    width: 6px;
}

.navbar-services-scroll::-webkit-scrollbar-thumb,
.navbar-search-menu-scroll::-webkit-scrollbar-thumb {
    background-color: rgb(148 163 184);
    border-radius: 6px;
}

#website-sidenav {
    scrollbar-width: thin;
    scrollbar-color: rgb(148 163 184) transparent;
    inset-inline-start: 0;
    transform: translateX(100%);
}

#website-sidenav.translate-x-0 {
    transform: translateX(0);
}

#website-sidenav.translate-x-full {
    transform: translateX(100%);
}

#website-sidenav::-webkit-scrollbar {
    width: 6px;
}

#website-sidenav::-webkit-scrollbar-thumb {
    background-color: rgb(148 163 184);
    border-radius: 6px;
}

/* منوی پروفایل دسکتاپ */
[data-site-profile-menu] {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

[data-site-profile-menu].is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* دکمه‌های اکشن هدر موبایل */
.site-mobile-header-actions {
    min-width: 0;
}

.site-mobile-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 2.25rem;
    min-width: 2.25rem;
    padding: 0.4375rem 0.6875rem;
    border: 0;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.site-mobile-header-btn:active {
    transform: scale(0.98);
}

.site-mobile-header-btn__icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.site-mobile-header-btn--dashboard {
    background: linear-gradient(135deg, rgb(37 99 235), rgb(29 78 216));
    color: rgb(255 255 255);
}

.site-mobile-header-btn--dashboard:hover {
    box-shadow: 0 4px 12px rgb(37 99 235 / 0.28);
}

.site-mobile-header-btn--auth {
    background: linear-gradient(135deg, rgb(234 88 12), rgb(194 65 12));
    color: rgb(255 255 255);
}

.site-mobile-header-btn--auth:hover {
    box-shadow: 0 4px 12px rgb(234 88 12 / 0.28);
}

.site-mobile-header-btn--search {
    padding: 0.5rem;
    border: 1px solid rgb(226 232 240);
    background: rgb(255 255 255);
    color: rgb(51 65 85);
}

.site-mobile-header-btn--search:hover {
    border-color: rgb(147 197 253);
    background: rgb(239 246 255);
    color: rgb(29 78 216);
}

.site-mobile-header-btn__label--full {
    display: none;
}

@media (min-width: 420px) {
    .site-mobile-header-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.875rem;
    }

    .site-mobile-header-btn__label--short {
        display: none;
    }

    .site-mobile-header-btn__label--full {
        display: inline;
    }
}

@media (min-width: 640px) {
    .site-mobile-header-btn {
        font-size: 0.8125rem;
    }
}

.site-footer {
    word-break: break-word;
}

.site-footer a[dir="ltr"],
.site-footer [dir="ltr"] {
    overflow-wrap: anywhere;
}

/* Issue report modal */
.issue-report-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    padding-top: max(1rem, 8vh);
}

.issue-report-modal.hidden {
    display: none;
}

.issue-report-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(15 23 42 / 0.45);
    backdrop-filter: blur(4px);
}

.issue-report-modal__panel {
    position: relative;
    width: min(100%, 32rem);
    border-radius: 1rem;
    border: 1px solid rgb(226 232 240);
    background: rgb(255 255 255);
    box-shadow: 0 24px 60px rgb(15 23 42 / 0.18);
    animation: siteSearchIn 0.2s ease-out;
}

.issue-report-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid rgb(241 245 249);
}

.issue-report-modal__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: rgb(15 23 42);
}

.issue-report-modal__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: rgb(100 116 139);
}

.issue-report-modal__close {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: rgb(100 116 139);
    cursor: pointer;
}

.issue-report-modal__close:hover {
    background: rgb(241 245 249);
    color: rgb(15 23 42);
}

.issue-report-modal__close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.issue-report-modal__form {
    padding: 1rem;
}

.issue-report-modal__field + .issue-report-modal__field {
    margin-top: 0.875rem;
}

.issue-report-modal__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgb(51 65 85);
}

.issue-report-modal__required {
    color: rgb(220 38 38);
}

.issue-report-modal__page-url,
.issue-report-modal__textarea {
    width: 100%;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.625rem;
    background: rgb(255 255 255);
    padding: 0.65rem 0.75rem;
    font-size: 0.875rem;
    color: rgb(15 23 42);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.issue-report-modal__page-url {
    background: rgb(248 250 252);
    font-size: 0.75rem;
    color: rgb(71 85 105);
}

.issue-report-modal__page-url:focus,
.issue-report-modal__textarea:focus {
    border-color: rgb(37 99 235);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.12);
}

.issue-report-modal__textarea {
    resize: vertical;
    min-height: 7rem;
    line-height: 1.7;
}

.issue-report-modal__error {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: rgb(220 38 38);
}

.issue-report-modal__success {
    margin: 0.75rem 0 0;
    border-radius: 0.5rem;
    background: rgb(240 253 244);
    padding: 0.65rem 0.75rem;
    font-size: 0.8125rem;
    color: rgb(21 128 61);
}

.issue-report-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.issue-report-modal__btn {
    border-radius: 0.625rem;
    padding: 0.55rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.issue-report-modal__btn--ghost {
    border: 1px solid rgb(226 232 240);
    background: rgb(255 255 255);
    color: rgb(51 65 85);
}

.issue-report-modal__btn--ghost:hover {
    background: rgb(248 250 252);
}

.issue-report-modal__btn--primary {
    border: 0;
    background: rgb(234 88 12);
    color: rgb(255 255 255);
}

.issue-report-modal__btn--primary:hover:not(:disabled) {
    background: rgb(194 65 12);
}

.issue-report-modal__btn--primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

button.site-beta-banner__link {
    margin: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
