.sas-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.sas-popup-overlay.sas-visible { opacity: 1; }
.sas-popup-box {
    background: #fff;
    border-radius: 10px;
    max-width: 640px;
    width: 92%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
}
.sas-popup-close, .sas-panel-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #555;
}
.sas-popup-heading, .sas-panel-heading {
    margin: 0 0 16px;
    font-size: 20px;
}
.sas-popup-grid, .sas-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.sas-card {
    display: block;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 10px;
    text-decoration: none;
    color: #222;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.sas-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}
.sas-card-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}
.sas-card-title {
    font-size: 14px;
    font-weight: 600;
}

.sas-category-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    max-height: 70vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    padding: 20px;
    z-index: 99998;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.sas-category-panel.sas-visible {
    opacity: 1;
    transform: translateY(0);
}
.sas-category-panel .sas-panel-grid {
    grid-template-columns: 1fr;
}

.sas-redirect-notice {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #e2e2e2;
    font-size: 14px;
}
.sas-stay-btn {
    margin-left: 10px;
    padding: 5px 12px;
    cursor: pointer;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 13px;
}
.sas-stay-btn:hover {
    background: #005177;
}
