/* NOTICE POPUP */
.notice-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,var(--popup-overlay-op, 0.5));
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
}
.notice-popup-overlay.open {
    opacity: 1;
    visibility: visible;
}

.notice-popup {
    position: relative;
    background: var(--popup-bg, #fff);
    color: var(--popup-text, #333);
    border-radius: var(--popup-radius, 8px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.35s ease, opacity 0.35s ease;
}
.notice-popup-overlay.open .notice-popup {
    transform: scale(1) translateY(0);
}

.notice-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    color: inherit;
    z-index: 2;
    transition: background 0.2s;
}
.notice-popup-close:hover {
    background: rgba(0,0,0,0.15);
}

.notice-popup-inner {
    padding: 30px;
    text-align: center;
}

.notice-popup-image {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.notice-popup-title {
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.notice-popup-content {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
}
.notice-popup-content p {
    margin-bottom: 10px;
}

.notice-popup-btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
}
.notice-popup-btn:hover {
    transform: translateY(-1px);
}

/* Width variants */
.notice-popup.small { max-width: 400px; }
.notice-popup.medium { max-width: 600px; }
.notice-popup.large { max-width: 800px; }
.notice-popup.full_width { max-width: 95%; }

/* Animations */
.notice-popup.anim-fade_in {
    opacity: 0;
    transform: none;
}
.notice-popup-overlay.open .notice-popup.anim-fade_in {
    opacity: 1;
}

.notice-popup.anim-zoom_in {
    transform: scale(0.7);
    opacity: 0;
}
.notice-popup-overlay.open .notice-popup.anim-zoom_in {
    transform: scale(1);
    opacity: 1;
}

.notice-popup.anim-slide_down {
    transform: translateY(-50px);
    opacity: 0;
}
.notice-popup-overlay.open .notice-popup.anim-slide_down {
    transform: translateY(0);
    opacity: 1;
}

.notice-popup.anim-slide_up {
    transform: translateY(50px);
    opacity: 0;
}
.notice-popup-overlay.open .notice-popup.anim-slide_up {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 576px) {
    .notice-popup-inner { padding: 20px; }
    .notice-popup-title { font-size: 1.2rem; }
    .notice-popup-content { font-size: 0.875rem; }
}

/* SCROLLING NOTICE TICKER */
.scrolling-bar {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    white-space: nowrap;
    box-sizing: border-box;
}
.scrolling-bar .scrolling-icon {
    flex-shrink: 0;
    padding: 0 12px;
    display: flex;
    align-items: center;
    z-index: 1;
    position: relative;
}
.scrolling-bar .scrolling-track {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.scrolling-bar .scrolling-content {
    display: inline-flex;
    white-space: nowrap;
    will-change: transform;
}
.scrolling-bar .scrolling-item {
    display: inline-flex;
    align-items: center;
    padding: 0 30px;
    white-space: nowrap;
}
.scrolling-bar .scrolling-item a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.scrolling-bar .scrolling-item a:hover {
    border-bottom-color: currentColor;
}
.scrolling-bar.pause-on-hover:hover .scrolling-content {
    animation-play-state: paused !important;
}
@keyframes marquee-ltr {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0%); }
}
@keyframes marquee-rtl {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
