/* Trade Pulse Technologies — Chatbot Styles */

/* --- Site-wide WhatsApp + Telegram floating buttons --- */
.tpt-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tpt-float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, opacity 0.15s ease;
    text-decoration: none;
}
.tpt-float-btn:hover { transform: scale(1.08); opacity: 0.92; }
.tpt-wa { background: #25D366; }
.tpt-tg { background: #229ED9; }

/* --- Homepage real-proof strip --- */
.proof-strip { padding: 4rem 0; background: var(--bg-alt, #0e0e0e); }
.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.proof-card {
    background: var(--card-bg, #161616);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 16px;
    overflow: hidden;
}
.proof-card img { width: 100%; height: auto; display: block; }
.proof-card p { padding: 1rem; font-size: 0.95rem; color: var(--text-muted, #b8b8b8); }
.proof-cta { text-align: center; margin-top: 1rem; }

/* --- Live account / payout proof strip --- */
.payout-strip { padding: 4rem 0; background: var(--bg, #0b0b0b); }
.payout-note {
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-muted, #8a8a8a);
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.proof-card--slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border-style: dashed;
    background: transparent;
}
.slot-inner {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted, #8a8a8a);
}
.slot-inner i { font-size: 2rem; display: block; margin-bottom: 0.5rem; color: var(--accent, #ffcc33); }
.entry-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent, #ffcc33);
    color: #000;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    z-index: 2;
}

.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
}

.chatbot-icon {
    background: var(--accent);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 204, 51, 0.4);
    font-size: 1.5rem;
}

.chatbot-icon:hover {
    transform: scale(1.1);
    background: #fff;
}

.chatbot-box {
    display: none;
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #0f172a;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.chatbot-box.active {
    display: block;
}

.chatbot-header {
    background: var(--secondary);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--accent);
}

.close-chat {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
}

.chat-messages {
    height: 360px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

.bot-message,
.user-message {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    line-height: 1.5;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    background: var(--secondary);
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    background: var(--accent);
    color: var(--primary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 600;
}

.chatbot-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
    background: var(--secondary);
}

.chatbot-input-area input {
    flex: 1;
    padding: 0.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: #fff;
    outline: none;
    font-family: 'Outfit', sans-serif;
}

.chatbot-input-area input:focus {
    border-color: var(--accent);
}

.chatbot-input-area button {
    background: var(--accent);
    color: var(--primary);
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 700;
}

.chatbot-input-area button:hover {
    background: #fff;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.8rem 1rem;
    align-self: flex-start;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}

.quick-replies {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
    align-self: flex-start;
}

.quick-reply {
    background: rgba(255, 204, 51, 0.1);
    color: var(--accent);
    border: 1px solid rgba(255, 204, 51, 0.3);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
}

.quick-reply:hover {
    background: var(--accent);
    color: var(--primary);
}

@media (max-width: 480px) {
    .chatbot-box {
        width: 300px;
        height: 450px;
        right: -20px;
    }
}

/* --- Unified "terminal shot" framing (proof / payout / results / products) --- */
.tpt-shot {
    background: #0d0f14;
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    transition: transform .25s ease, box-shadow .25s ease;
}
.tpt-shot:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(255,204,51,0.18); }
.tpt-shot img { width: 100%; height: auto; display: block; }
.tpt-shot figcaption {
    padding: 0.7rem 0.9rem;
    font-size: 0.82rem;
    color: var(--text-muted, #b8b8b8);
    border-top: 1px solid var(--border, #2a2a2a);
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}
.tpt-shot figcaption b { color: var(--accent, #ffcc33); font-weight: 600; }

/* --- Responsive masonry gallery (results page) --- */
.tpt-gallery {
    column-count: 3;
    column-gap: 1.5rem;
}
.tpt-gallery .tpt-shot {
    cursor: zoom-in;
    margin: 0 0 1.5rem;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
}
@media (max-width: 900px) { .tpt-gallery { column-count: 2; } }
@media (max-width: 560px) { .tpt-gallery { column-count: 1; } }

/* lightbox (shared) */
#galleryLightbox {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.94);
    z-index: 99998;
    cursor: zoom-out;
    align-items: center; justify-content: center;
}
#galleryLightbox img { max-width: 92vw; max-height: 92vh; border-radius: 12px; object-fit: contain; }
#galleryLightbox .lb-close {
    position: absolute; top: 1.5rem; right: 2rem;
    background: none; border: none; color: #fff; font-size: 2.5rem; line-height: 1; cursor: pointer;
}
