/* ==========================================================================
   Smart App Banner Styles (Mobile Promotion)
   ========================================================================== */

.smart-app-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: max(8px, var(--safe-area-top, 0px)) max(12px, var(--safe-area-right, 0px)) 8px max(12px, var(--safe-area-left, 0px));
    background: rgba(11, 19, 43, 0.95);
    border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
    animation: smartBannerSlideDown 0.3s ease-out;
}

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

.smart-banner-close {
    background: transparent;
    border: none;
    color: var(--text-muted, #A1A1AA);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 8px;
    margin: -4px 0 -4px -4px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.smart-banner-close:hover,
.smart-banner-close:focus {
    color: var(--text-main, #FFFFFF);
    outline: none;
}

.smart-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
}

.smart-banner-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.smart-banner-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main, #FFFFFF);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smart-banner-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted, #A1A1AA);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smart-banner-action {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    min-height: 36px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Finish Screen Promo Card */
.app-promo-card {
    margin: 1.25rem 0 0.5rem 0;
    padding: 1rem 1.25rem;
    text-align: center;
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
}

.app-promo-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary, #5DFDDD);
    margin-bottom: 0.35rem;
}

.app-promo-text {
    font-size: 0.85rem;
    color: var(--text-muted, #A1A1AA);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.app-promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.google-play-icon,
.apple-store-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Guard: strictly hide mobile promotion elements on desktop screens > 600px */
@media (min-width: 601px) {
    .smart-app-banner,
    .app-promo-card {
        display: none !important;
    }
}
