.sticky-notice-bar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    transition: transform 0.35s ease, opacity 0.35s ease;
    direction: rtl;
		font-weight:bold;
    text-align: center;
    line-height: 1.6;
}

.sticky-notice-top    { top: 0; }
.sticky-notice-bottom { bottom: 0; }

/* حالت مخفی */
.sticky-notice-bar.sn-hidden {
    opacity: 0;
    pointer-events: none;
}
.sticky-notice-top.sn-hidden    { transform: translateY(-100%); }
.sticky-notice-bottom.sn-hidden { transform: translateY(100%); }

.sticky-notice-content {
    flex: 1;
}

.sticky-notice-content a {
    color: inherit;
    text-decoration: underline;
}

/* دکمه بستن */
.sticky-notice-close {
    position: absolute;
    left: 14px;
    top: 70%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: inherit;
    font-size:20px;
    line-height: 1;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sticky-notice-close:hover {
    background: rgba(255,255,255,0.3);
}

@keyframes sn-slidein-bottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes sn-slidein-top {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes sn-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    70%  { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.sticky-notice-bottom {
    animation: sn-slidein-bottom 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards,
               sn-pulse 1s ease 0.6s 2;
}

.sticky-notice-top {
    animation: sn-slidein-top 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards,
               sn-pulse 1s ease 0.6s 5;
}



@media (max-width: 768px) {
.sticky-notice-bottom { bottom: 60px !important; }
}

@media (max-width: 480px) {
    .sticky-notice-bottom { bottom: 60px !important; }
}
