/* ── gapstoreactivlist.css — Popup programmes actifs ── */

#gsal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 56px; /* hauteur navbar */
}
#gsal-overlay.open {
    display: flex;
}

/* ── Panneau ── */
#gsal-panel {
    width: min(420px, 100vw - 16px);
    max-height: 62vh;
    background: linear-gradient(160deg, rgba(22,32,56,.97) 0%, rgba(10,16,34,.97) 100%);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 24px 24px 18px 18px;
    box-shadow:
        0 -8px 40px rgba(0,0,0,.55),
        0 0 0 1px rgba(255,255,255,.06) inset,
        0 0 36px rgba(80,140,255,.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(40px);
    opacity: 0;
    transition: transform .25s cubic-bezier(.22,1,.36,1), opacity .22s ease;
}
#gsal-overlay.open #gsal-panel {
    transform: translateY(0);
    opacity: 1;
}

/* ── Header ── */
#gsal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}
#gsal-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(200,215,255,.7);
}
#gsal-count {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,160,60,.85);
    background: rgba(255,140,30,.12);
    border: 1px solid rgba(255,140,30,.22);
    border-radius: 999px;
    padding: 2px 8px;
}
#gsal-close-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(220,50,20,.65);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s, transform .12s;
}
#gsal-close-btn:hover  { background: rgba(220,50,20,.88); }
#gsal-close-btn:active { transform: scale(.9); }

/* ── Liste ── */
#gsal-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.15) transparent;
}
#gsal-list::-webkit-scrollbar { width: 4px; }
#gsal-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 2px; }

/* ── Vide ── */
#gsal-empty {
    text-align: center;
    padding: 28px 16px;
    font-size: 12px;
    color: rgba(255,255,255,.28);
    display: none;
}
#gsal-empty.show { display: block; }

/* ── Item ── */
.gsal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,.04) 100%);
    border: 1px solid rgba(255,255,255,.10);
    cursor: pointer;
    transition: background .14s, border-color .14s, transform .11s;
}
.gsal-item:hover  {
    background: linear-gradient(180deg, rgba(100,160,255,.18) 0%, rgba(60,110,220,.10) 100%);
    border-color: rgba(120,170,255,.30);
}
.gsal-item:active { transform: scale(.97); }

.gsal-item-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
    background: rgba(255,255,255,.05);
}
.gsal-item-ico.hidden { display: none; }

.gsal-item-body {
    flex: 1;
    min-width: 0;
}
.gsal-item-name {
    font-size: 12px;
    font-weight: 700;
    color: rgba(235,242,255,.90);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gsal-item-mode {
    font-size: 10px;
    color: rgba(180,200,255,.42);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gsal-item-dismiss {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(220,50,20,.45);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .14s, transform .11s;
}
.gsal-item-dismiss:hover  { background: rgba(220,50,20,.80); }
.gsal-item-dismiss:active { transform: scale(.88); }

/* ── Footer ── */
#gsal-footer {
    padding: 10px 14px 12px;
    border-top: 1px solid rgba(255,255,255,.07);
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}
#gsal-clear-btn {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,120,80,.75);
    background: rgba(255,100,50,.10);
    border: 1px solid rgba(255,100,50,.22);
    border-radius: 999px;
    padding: 5px 14px;
    cursor: pointer;
    transition: background .14s, color .14s;
}
#gsal-clear-btn:hover { background: rgba(255,100,50,.22); color: rgba(255,140,100,.95); }
