/* ==========================================================================
   APP INSTALL SUGGESTION BANNER (MOBILE ONLY)
   Positioned directly below counters.
   Light mode default, dark theme adaptive, 3s dismiss-timer support.
   ========================================================================== */

#uuTopInstallBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    padding: 7px 10px;
    margin: 4px 0 0 0;
    box-shadow: 0 4px 16px rgba(20, 40, 90, 0.12);
    box-sizing: border-box;
    font-family: var(--font-body, 'Inter', system-ui, sans-serif);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    animation: uuBannerPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
    position: relative;
    pointer-events: auto !important;
    z-index: 1002;
    width: 100%;
}

/* Hide on laptops, tablets, and desktop screens completely */
@media (min-width: 769px) {
    #uuTopInstallBar {
        display: none !important;
    }
}

/* Dark Theme Support */
:root.dark-theme #uuTopInstallBar,
.dark-theme #uuTopInstallBar {
    background: #131d2e;
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

@keyframes uuBannerPopIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.uu-install-banner-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.uu-install-banner-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
    display: block;
}

.uu-install-banner-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    line-height: 1.2;
}

.uu-install-banner-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:root.dark-theme .uu-install-banner-title,
.dark-theme .uu-install-banner-title {
    color: #ffffff;
}

.uu-install-banner-sub {
    font-size: 10.5px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

:root.dark-theme .uu-install-banner-sub,
.dark-theme .uu-install-banner-sub {
    color: #94a3b8;
}

.uu-install-banner-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.uu-install-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease;
}

.uu-install-btn:active {
    transform: scale(0.94);
}

.uu-install-close-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

:root.dark-theme .uu-install-close-btn,
.dark-theme .uu-install-close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.uu-install-close-btn:hover,
.uu-install-close-btn:active {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Page container adaptation for non-dashboard pages */
.container > #uuTopInstallBar,
.main-wrapper > #uuTopInstallBar,
#profileMainContent > #uuTopInstallBar {
    margin: 8px 0 12px 0;
}
