/* Aviso do app na Play Store — independente do .show do Bootstrap */

.app-promo-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
}

.app-promo-overlay.is-open {
    display: flex !important;
    pointer-events: auto;
}

.app-promo-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(165deg, #242424 0%, #101010 100%);
    border: 1px solid rgba(255, 77, 77, 0.55);
    border-radius: 26px;
    padding: 36px 26px 22px;
    text-align: center;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 77, 77, 0.22);
    overflow: hidden;
    animation: appPromoIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes appPromoIn {
    from { transform: scale(0.86) translateY(24px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.app-promo-shine {
    position: absolute;
    top: 0;
    left: -150%;
    width: 55%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: skewX(-20deg);
    animation: appPromoShimmer 3.2s infinite;
    pointer-events: none;
}

@keyframes appPromoShimmer {
    0% { left: -150%; }
    40% { left: 150%; }
    100% { left: 150%; }
}

.app-promo-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 5;
    transition: 0.2s;
}

.app-promo-close:hover {
    background: rgba(255, 77, 77, 0.4);
    border-color: #ff4d4d;
    transform: rotate(90deg);
}

.app-promo-logo {
    width: 78px;
    height: 78px;
    margin: 0 auto 14px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 77, 77, 0.55);
    box-shadow: 0 0 28px rgba(255, 77, 77, 0.4);
    animation: appPromoFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
    background: #000;
}

.app-promo-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes appPromoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

.app-promo-tag {
    display: inline-block;
    background: rgba(255, 77, 77, 0.16);
    border: 1px solid rgba(255, 77, 77, 0.55);
    color: #ff4d4d;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 50px;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    animation: appPromoGlow 2s infinite;
}

@keyframes appPromoGlow {
    0%, 100% { box-shadow: 0 0 4px rgba(255, 77, 77, 0.2); }
    50% { box-shadow: 0 0 16px rgba(255, 77, 77, 0.55); }
}

.app-promo-title {
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 8px;
    text-shadow: 0 0 16px rgba(255, 77, 77, 0.4);
    position: relative;
    z-index: 2;
}

.app-promo-text {
    font-size: 0.88rem;
    color: #ccc;
    line-height: 1.55;
    margin: 0 0 16px;
    position: relative;
    z-index: 2;
}

.app-promo-text b,
.app-promo-highlight {
    color: #fff;
    font-weight: 800;
}

.app-promo-highlight {
    background: rgba(255, 77, 77, 0.28);
    padding: 1px 6px;
    border-radius: 4px;
}

.app-promo-benefits {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 20px;
    position: relative;
    z-index: 2;
}

.app-promo-benefits span {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #eee;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 5px 9px;
}

.app-promo-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    padding: 11px 22px;
    text-decoration: none !important;
    transition: 0.25s;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.app-promo-store-badge:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 77, 77, 0.7);
    box-shadow: 0 14px 28px rgba(255, 77, 77, 0.28);
}

.app-promo-store-icon {
    font-size: 1.9rem;
    background: linear-gradient(135deg, #00e676 0%, #2979ff 40%, #ffea00 72%, #ff3d00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-promo-store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.app-promo-store-text small {
    font-size: 0.56rem;
    color: #ccc;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.app-promo-store-text strong {
    font-size: 1.22rem;
    color: #fff;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.15;
}

.app-promo-later {
    display: block;
    margin: 14px auto 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.app-promo-later:hover { color: rgba(255, 255, 255, 0.85); }

.app-promo-mini {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 2147482500;
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 7px 12px 7px 9px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    text-decoration: none !important;
    opacity: 0.92;
    transition: opacity 0.2s, transform 0.2s;
}

.app-promo-mini:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.app-promo-mini.is-open {
    display: flex !important;
    animation: appPromoMiniIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes appPromoMiniIn {
    from { transform: translateY(18px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.app-promo-mini-icon {
    font-size: 1.05rem;
    background: linear-gradient(135deg, #00e676 0%, #2979ff 40%, #ffea00 72%, #ff3d00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-promo-mini-text {
    color: #eee;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.app-promo-mini-close {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    cursor: pointer;
    flex-shrink: 0;
}

.app-promo-mini-close:hover { background: #ff4d4d; color: #fff; }

.app-promo-banner {
    max-width: 450px;
    width: 90%;
    margin: 16px auto 6px;
    padding: 16px 16px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.92), rgba(30, 18, 18, 0.92));
    border: 1px solid rgba(0, 230, 118, 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
    transition: 0.25s;
}

.app-promo-banner:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 230, 118, 0.7);
    box-shadow: 0 14px 32px rgba(0, 230, 118, 0.15);
}

.app-promo-banner-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 77, 77, 0.45);
    background: #000;
}

.app-promo-banner-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-promo-banner-copy { flex: 1; min-width: 0; }

.app-promo-banner-kicker {
    display: block;
    color: #00e676;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.app-promo-banner-title {
    display: block;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.2;
}

.app-promo-banner-sub {
    display: block;
    color: #bbb;
    font-size: 0.72rem;
    margin-top: 2px;
}

.app-promo-banner-cta {
    flex-shrink: 0;
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

body.app-promo-open { overflow: hidden; }

body.from-native-app .app-promo-overlay,
body.from-native-app .app-promo-mini,
body.from-native-app .app-promo-banner {
    display: none !important;
}

body:has(.float-support) .app-promo-mini { bottom: 92px; }

@media (max-width: 576px) {
    .app-promo-card { padding: 32px 18px 18px; }
    .app-promo-title { font-size: 1.25rem; }
    .app-promo-logo { width: 68px; height: 68px; }
    .app-promo-store-text strong { font-size: 1.08rem; }
    .app-promo-banner { width: 95%; padding: 13px 12px; gap: 10px; }
    .app-promo-banner-cta { padding: 7px 8px; font-size: 0.58rem; }
    .app-promo-mini { bottom: 16px; right: 12px; }
}
