/* ==========================================================
   KIAN DEZH - SIDE PANEL
   مرحله اصلاح: بک‌گراند سفید + کادرهای Fade + آیتم‌های سفید
   + بک‌دراپ فقط Blur بدون تغییر رنگ صفحه
   ========================================================== */

.side-panel,
.side-panel *,
.side-panel *::before,
.side-panel *::after {
    box-sizing: border-box;
}

html body .side-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(430px, 92vw) !important;
    height: 100vh !important;
    min-height: 100vh !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 14px !important;
    padding: 24px 34px 30px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    color: #151515 !important;
    background: #ffffff !important;
    background-image: none !important;
    border-left: 1px solid rgba(0, 0, 0, .045) !important;
    box-shadow: -24px 0 62px rgba(0, 0, 0, .105) !important;
    transform: translateX(110%) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform .55s cubic-bezier(.16, 1, .3, 1) !important;
}

html[dir="ltr"] body .side-panel {
    right: auto !important;
    left: 0 !important;
    border-left: none !important;
    border-right: 1px solid rgba(0, 0, 0, .045) !important;
    box-shadow: 24px 0 62px rgba(0, 0, 0, .105) !important;
    transform: translateX(-110%) !important;
}

html body .side-panel.is-open,
html body .side-panel.open {
    transform: translateX(0) !important;
}

/* =========================
   BACKDROP - BLUR ONLY
   ========================= */

html body .backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999998 !important;
    background: rgba(255, 255, 255, 0) !important;
    background-image: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    backdrop-filter: blur(0) !important;
    -webkit-backdrop-filter: blur(0) !important;
    transition:
        opacity .35s ease,
        visibility .35s ease,
        backdrop-filter .35s ease,
        -webkit-backdrop-filter .35s ease !important;
}

html body .backdrop.is-open,
html body .backdrop.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: rgba(255, 255, 255, 0) !important;
    background-image: none !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

body.panel-open {
    overflow: hidden !important;
}

/* =========================
   CLOSE BUTTON
   ========================= */

html body .side-panel .panel-close {
    position: absolute !important;
    top: 22px !important;
    left: 22px !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(0, 0, 0, .075) !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .045) !important;
    font-size: 28px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition:
        transform .22s ease,
        border-color .22s ease,
        color .22s ease,
        box-shadow .22s ease !important;
}

html[dir="ltr"] body .side-panel .panel-close {
    left: auto !important;
    right: 22px !important;
}

html body .side-panel .panel-close:hover,
html body .side-panel .panel-close:focus-visible {
    transform: rotate(90deg) scale(1.03) !important;
    color: #9b741f !important;
    border-color: rgba(155, 116, 31, .18) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .06) !important;
}

/* =========================
   LOGO / TITLE
   ========================= */

html body .side-panel .panel-logo-wrap {
    text-align: center !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
}

html body .side-panel .panel-logo-image-box {
    width: auto !important;
    height: auto !important;
    margin: 0 auto 12px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

html body .side-panel .panel-logo,
html body .side-panel .panel-logo-image-box {
    background: transparent !important;
    background-image: none !important;
}

html body .side-panel .panel-logo-img {
    width: 118px !important;
    max-width: 118px !important;
    max-height: 104px !important;
    object-fit: contain !important;
    display: block !important;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .07)) !important;
}

html body .side-panel .panel-title {
    margin: 4px 0 2px !important;
    color: #17120b !important;
    font-size: 24px !important;
    line-height: 1.35 !important;
    font-weight: 950 !important;
}

html body .side-panel .panel-subtitle {
    margin: 0 !important;
    color: #5f5344 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    font-weight: 850 !important;
}

/* =========================
   SEPARATOR
   ========================= */

html body .side-panel .panel-separator {
    width: 100% !important;
    height: 1px !important;
    margin: 12px 0 !important;
    background: linear-gradient(to left,
            transparent,
            rgba(0, 0, 0, .055),
            transparent) !important;
    opacity: 1 !important;
}

/* =========================
   INFO CARD
   ========================= */

html body .side-panel .panel-info-card {
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(0, 0, 0, .045) !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, .025),
        inset 0 1px 0 rgba(255, 255, 255, .80) !important;
}

html body .side-panel .panel-info-title {
    margin: 0 0 12px !important;
    color: #8f6321 !important;
    font-size: 17px !important;
    line-height: 1.5 !important;
    font-weight: 950 !important;
    text-align: center !important;
}

html body .side-panel .info-row {
    display: grid !important;
    grid-template-columns: 26px 1fr auto !important;
    gap: 8px !important;
    align-items: center !important;
    padding: 9px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, .055) !important;
}

html body .side-panel .info-row:last-child {
    border-bottom: none !important;
}

html body .side-panel .info-row i {
    color: #9b741f !important;
    font-size: 17px !important;
    line-height: 1 !important;
}

html body .side-panel .info-label {
    color: #6f6459 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    font-weight: 850 !important;
}

html body .side-panel .info-value {
    direction: ltr !important;
    color: #151515 !important;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

/* =========================
   QUICK MENU
   ========================= */

html body .side-panel .panel-quick-menu {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body .side-panel .panel-quick-menu a {
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(0, 0, 0, .045) !important;
    background: #ffffff !important;
    background-image: none !important;
    color: #282018 !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .018) !important;
    text-decoration: none !important;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
    transition:
        transform .22s ease,
        color .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        background-color .22s ease !important;
}

html body .side-panel .panel-quick-menu a:hover,
html body .side-panel .panel-quick-menu a:focus-visible {
    transform: translateY(-2px) !important;
    color: #8f6321 !important;
    border-color: rgba(155, 116, 31, .16) !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .035) !important;
}

/* =========================
   SOCIAL
   ========================= */

html body .side-panel .social-title {
    margin: 4px 0 10px !important;
    color: #5d5348 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    font-weight: 900 !important;
    text-align: center !important;
}

html body .side-panel .social-list {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body .side-panel .social-link {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #2a2a2a !important;
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid rgba(0, 0, 0, .055) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .025) !important;
    text-decoration: none !important;
    transition:
        transform .22s ease,
        color .22s ease,
        border-color .22s ease,
        box-shadow .22s ease !important;
}

html body .side-panel .social-link i {
    color: currentColor !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

html body .side-panel .social-link:hover,
html body .side-panel .social-link:focus-visible {
    transform: translateY(-3px) !important;
    color: #8f6321 !important;
    border-color: rgba(155, 116, 31, .16) !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .04) !important;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 720px) {
    html body .side-panel {
        justify-content: flex-start !important;
        width: min(430px, 92vw) !important;
        padding: 76px 24px 30px !important;
    }

    html body .side-panel .panel-quick-menu {
        grid-template-columns: 1fr !important;
    }

    html body .side-panel .panel-info-card {
        padding: 13px 14px !important;
    }
}

@media (max-width: 520px) {
    html body .side-panel {
        width: 92vw !important;
        padding-right: 22px !important;
        padding-left: 22px !important;
    }

    html body .side-panel .info-row {
        grid-template-columns: 24px 1fr !important;
    }

    html body .side-panel .info-value {
        grid-column: 2 !important;
        text-align: right !important;
    }

    html[dir="ltr"] body .side-panel .info-value {
        text-align: left !important;
    }

    html body .side-panel .social-list {
        gap: 8px !important;
    }

    html body .side-panel .social-link {
        width: 40px !important;
        height: 40px !important;
    }
}