/* STOSPN App Banner: a neon card bottom-right (computers), a bar along the bottom (phones). */
.stospn-app-banner {
    --sab-cyan: #00f3ff;
    --sab-green: #00ff9c;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 400px;
    max-width: calc(100vw - 32px);
    padding: 14px 44px 14px 14px;
    box-sizing: border-box;
    border-radius: 16px;
    background: rgba(15, 13, 34, 0.96);
    border: 1px solid rgba(0, 255, 156, 0.55);
    box-shadow: 0 0 24px rgba(0, 255, 156, 0.25), 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.stospn-app-banner.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.stospn-app-banner * {
    box-sizing: border-box;
}

.stospn-app-banner .sab-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sab-green);
    background: rgba(0, 255, 156, 0.06);
    box-shadow: 0 0 12px rgba(0, 255, 156, 0.35);
    animation: sab-pulse 2.6s ease-in-out infinite;
}

.stospn-app-banner .sab-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--sab-cyan);
    filter: drop-shadow(0 0 4px var(--sab-cyan));
}

.stospn-app-banner .sab-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stospn-app-banner .sab-text strong {
    font-size: 0.98rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

.stospn-app-banner .sab-text span {
    font-size: 0.8rem;
    color: #a0aec0;
}

.stospn-app-banner .sab-btn {
    flex-shrink: 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--sab-green);
    color: #04140c !important;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 0 16px rgba(0, 255, 156, 0.5);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.stospn-app-banner .sab-btn:hover {
    box-shadow: 0 0 26px rgba(0, 255, 156, 0.8);
}

.stospn-app-banner .sab-btn:active {
    transform: scale(0.96);
}

.stospn-app-banner .sab-x {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a0aec0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.stospn-app-banner .sab-x:hover {
    color: #fff;
}

@keyframes sab-pulse {
    50% { box-shadow: 0 0 22px rgba(0, 255, 156, 0.6); }
}

/* Phones: a bar along the bottom of the screen */
@media (max-width: 600px) {
    .stospn-app-banner {
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        max-width: none;
        gap: 10px;
        padding: 12px 40px 12px 12px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        border-radius: 16px 16px 0 0;
        border-bottom: 0;
    }

    .stospn-app-banner .sab-icon {
        width: 40px;
        height: 40px;
    }

    .stospn-app-banner .sab-text span {
        display: none;
    }

    .stospn-app-banner .sab-text strong {
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stospn-app-banner,
    .stospn-app-banner .sab-icon {
        transition: none;
        animation: none;
    }
}
