/* ── Install App Banner ── */
/* Professional minimal design with benefits */

.install-banner {
    position: fixed;
    bottom: 70px;
    left: 12px;
    right: 12px;
    max-width: 380px;
    margin: 0 auto;
    background: #111827;
    color: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06);
    z-index: 9999;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(.22,1,.36,1), opacity 0.3s;
    opacity: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.install-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

.install-banner.hidden {
    transform: translateY(120%);
    opacity: 0;
}

/* ── Close button ── */
.ib-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.5);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.ib-close:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ── Header row ── */
.ib-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-right: 20px;
}

.ib-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--event-primary, #667eea);
    box-shadow: 0 3px 10px rgba(102,126,234,0.3);
}
.ib-icon svg { width: 18px; height: 18px; color: #fff !important; }

.ib-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #fff !important;
}
.ib-subtitle {
    font-size: 10.5px;
    color: rgba(255,255,255,0.5) !important;
    margin-top: 1px;
    line-height: 1.3;
}

/* ── Benefits row ── */
.ib-benefits {
    display: flex;
    gap: 5px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.ib-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 100px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.7) !important;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.05);
}
.ib-chip svg { width: 10px; height: 10px; flex-shrink: 0; color: rgba(255,255,255,0.45) !important; }

/* ── iOS instructions ── */
.ib-ios-steps {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}
.ib-ios-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.8) !important;
    line-height: 1.4;
}
.ib-ios-step + .ib-ios-step { margin-top: 8px; }
.ib-ios-num {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--event-primary, #667eea);
    color: #fff !important;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ib-ios-step svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: rgba(255,255,255,0.45) !important;
}

/* ── Action buttons ── */
.ib-actions {
    display: flex;
    gap: 8px;
}

.ib-btn {
    flex: 1;
    padding: 9px 14px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all 0.2s;
    letter-spacing: -0.01em;
}

.ib-btn-install {
    background: var(--event-primary, #667eea);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(102,126,234,0.3);
}
.ib-btn-install:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

.ib-btn-later {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7) !important;
    border: 1px solid rgba(255,255,255,0.1);
}
.ib-btn-later:hover {
    background: rgba(255,255,255,0.12);
    color: #fff !important;
}

/* ── Responsive ── */
@media (max-width: 440px) {
    .install-banner { left: 8px; right: 8px; padding: 12px 14px; bottom: 68px; }
    .ib-title { font-size: 12px; }
    .ib-chip { font-size: 9px; padding: 2px 6px; }
    .ib-btn { padding: 8px 10px; font-size: 11px; }
}
