/* ==========================================================================
   POPUP PROMOCIONAL - APP OFICIAL GOOGLE PLAY STORE
   ========================================================================== */

.app-promo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 45, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    box-sizing: border-box;
}

.app-promo-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.app-promo-modal {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 880px;
    max-height: 92vh;
    border-radius: 28px;
    box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.app-promo-overlay.is-active .app-promo-modal {
    transform: scale(1) translateY(0);
}

/* Botão Fechar */
.app-promo-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    outline: none;
    font-size: 16px;
}

.app-promo-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg) scale(1.05);
}

/* Corpo Principal (Layout 2 Colunas) */
.app-promo-body {
    display: grid;
    grid-template-columns: 340px 1fr;
    overflow-y: auto;
    max-height: 92vh;
}

/* Lado Esquerdo: Demonstração Visual do App */
.app-promo-phone-showcase {
    background: radial-gradient(circle at 50% 20%, #1e3a8a 0%, #0f172a 100%);
    padding: 35px 25px 25px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.app-promo-phone-showcase::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Mockup Realista de Smartphone */
.app-mockup-frame {
    width: 250px;
    height: 480px;
    background: #020617;
    border-radius: 36px;
    padding: 10px;
    box-shadow: 0 20px 45px -5px rgba(0, 0, 0, 0.6), 0 0 0 3px #334155, 0 0 0 5px #1e293b;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.app-mockup-frame:hover {
    transform: translateY(-4px);
}

/* Speaker / Câmera Notch */
.app-mockup-notch {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 14px;
    background: #020617;
    border-radius: 0 0 10px 10px;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.app-mockup-camera {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1e293b;
    border: 1px solid #334155;
}

/* Tela do Celular */
.app-mockup-screen {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Status Bar do celular */
.app-screen-statusbar {
    height: 24px;
    background: #0284c7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    font-size: 10px;
    color: #ffffff;
    font-weight: 600;
}

.app-screen-statusbar-icons {
    display: flex;
    gap: 5px;
    font-size: 9px;
}

/* Topo do App */
.app-screen-header {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    padding: 10px 12px 14px 12px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-screen-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.app-screen-brand img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #ffffff;
    padding: 1px;
}

/* Barra de pesquisa simulada dentro do app */
.app-screen-search {
    background: #ffffff;
    border-radius: 8px;
    padding: 6px 10px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #64748b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.app-screen-search i {
    color: #0284c7;
    font-size: 9px;
}

.app-screen-search strong {
    color: #0f172a;
}

/* Conteúdo interno da tela do app */
.app-screen-content {
    flex: 1;
    padding: 10px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Cards simulados de aparelhos */
.app-mock-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.app-mock-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.app-mock-device-name {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
}

.app-mock-badge-tag {
    font-size: 8.5px;
    background: #dcfce7;
    color: #15803d;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 700;
}

.app-mock-compat-list {
    font-size: 9px;
    color: #64748b;
    line-height: 1.3;
}

.app-mock-compat-highlight {
    color: #0369a1;
    font-weight: 600;
}

/* Card especial de login fácil */
.app-mock-login-badge {
    background: #eff6ff;
    border: 1px dashed #3b82f6;
    border-radius: 8px;
    padding: 7px;
    text-align: center;
}

.app-mock-login-badge small {
    display: block;
    font-size: 8px;
    color: #1e40af;
    font-weight: 700;
    text-transform: uppercase;
}

.app-mock-login-badge span {
    font-size: 8.5px;
    color: #2563eb;
    font-weight: 600;
}

/* Barra inferior do app */
.app-screen-nav {
    height: 38px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
}

.app-screen-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #94a3b8;
    font-size: 8px;
}

.app-screen-nav-item.is-active {
    color: #0284c7;
    font-weight: 700;
}

.app-screen-nav-item i {
    font-size: 11px;
}

/* Legenda abaixo do celular */
.app-promo-showcase-caption {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #93c5fd;
    font-weight: 500;
}

.app-promo-showcase-caption i {
    color: #60a5fa;
}

/* ==========================================================================
   LADO DIREITO: INFORMAÇÕES E VANTAGENS
   ========================================================================== */
.app-promo-details {
    padding: 36px 36px 30px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Badges de Topo */
.app-promo-header-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.app-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.app-badge-pill-green {
    background: #dcfce7;
    color: #15803d;
}

.app-badge-pill-playstore {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.app-badge-pill-playstore i {
    color: #00875a;
}

/* Título */
.app-promo-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 10px 0;
}

.app-promo-title span {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-promo-subtitle {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

/* Grid de Benefícios Chave (Os 3 pontos pedidos pelo usuário) */
.app-promo-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.app-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    transition: all 0.2s ease;
}

.app-benefit-item:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.app-benefit-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.app-benefit-icon-shield {
    background: #dcfce7;
    color: #16a34a;
}

.app-benefit-icon-key {
    background: #eff6ff;
    color: #2563eb;
}

.app-benefit-icon-bolt {
    background: #fef3c7;
    color: #d97706;
}

.app-benefit-content h5 {
    margin: 0 0 3px 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-benefit-content p {
    margin: 0;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.45;
}

.app-benefit-content strong {
    color: #1e293b;
}

/* Call to Action & Botoes */
.app-promo-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-btn-playstore-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #0f9d58 0%, #0b8043 100%);
    color: #ffffff !important;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 16px;
    font-size: 15.5px;
    font-weight: 700;
    box-shadow: 0 8px 24px -4px rgba(15, 157, 88, 0.45);
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.app-btn-playstore-cta:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(15, 157, 88, 0.55);
    color: #ffffff !important;
}

.app-btn-playstore-cta i.fab {
    font-size: 22px;
}

.app-btn-playstore-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.app-btn-playstore-text small {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    font-weight: 600;
}

.app-btn-playstore-text span {
    font-size: 16px;
    font-weight: 800;
}

/* Rodapé do Modal */
.app-promo-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
    gap: 8px;
}

.app-promo-dismiss-link {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px 0;
    font-size: 12px;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.app-promo-dismiss-link:hover {
    color: #0f172a;
}

.app-promo-security-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #16a34a;
    font-weight: 600;
    font-size: 11.5px;
}

/* ==========================================================================
   BOTÃO DE GATILHO NO BANNER DA TABELA
   ========================================================================== */
.btn-tabela-app-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #16a34a !important;
    border: 1.5px solid #16a34a;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-tabela-app-trigger:hover {
    background: #f0fdf4;
    border-color: #15803d;
    color: #15803d !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 820px) {
    .app-promo-body {
        grid-template-columns: 1fr;
    }

    .app-promo-phone-showcase {
        padding: 25px 20px 20px 20px;
    }

    .app-mockup-frame {
        width: 220px;
        height: 380px;
    }

    .app-promo-details {
        padding: 25px 20px 20px 20px;
    }

    .app-promo-title {
        font-size: 20px;
    }

    .app-promo-modal {
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .app-promo-phone-showcase {
        display: none; /* No mobile bem pequeno, foca direto na mensagem e no botão de download */
    }

    .app-promo-details {
        padding: 24px 18px 20px 18px;
    }

    .app-promo-title {
        font-size: 18px;
    }

    .app-promo-subtitle {
        font-size: 13px;
    }

    .app-benefit-content h5 {
        font-size: 13px;
    }

    .app-benefit-content p {
        font-size: 11.5px;
    }
}
