/* Trade Bargains Growth Engine — Frontend Popup */
#tbge-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.6);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: tbge-fade-in .25s ease;
}
#tbge-overlay.tbge-active { display: flex; }

@keyframes tbge-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#tbge-modal {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    max-width: 440px;
    width: calc(100% - 32px);
    text-align: center;
    position: relative;
    animation: tbge-slide-up .3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

@keyframes tbge-slide-up {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

#tbge-close {
    position: absolute;
    top: 14px; right: 16px;
    font-size: 22px;
    cursor: pointer;
    background: none;
    border: none;
    color: #9ca3af;
    line-height: 1;
    padding: 4px 8px;
}
#tbge-close:hover { color: #374151; }

#tbge-logo {
    max-height: 48px;
    margin: 0 auto 20px;
    display: block;
}

#tbge-badge {
    display: inline-block;
    background: #fff8f0;
    color: #c2670a;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid #fde68a;
}

#tbge-headline {
    font-size: 24px;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 8px;
    line-height: 1.2;
}

#tbge-sub {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 24px;
    line-height: 1.5;
}

#tbge-email {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    margin-bottom: 10px;
    outline: none;
    transition: border-color .15s;
}
#tbge-email:focus { border-color: #F7931E; }
#tbge-email.tbge-error { border-color: #dc2626; }

#tbge-cta {
    width: 100%;
    padding: 14px;
    background: #F7931E;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
}
#tbge-cta:hover { opacity: .92; }
#tbge-cta:active { transform: scale(.98); }

#tbge-success {
    display: none;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    font-size: 15px;
    font-weight: 600;
    padding: 14px;
    margin-top: 12px;
}

.tbge-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 12px;
    color: #9ca3af;
}
.tbge-trust-dot {
    width: 4px; height: 4px;
    background: #d1d5db;
    border-radius: 50%;
}

@media (max-width: 480px) {
    #tbge-modal { padding: 32px 24px; }
    #tbge-headline { font-size: 20px; }
}
