/* ============================================================
   QBChat → Qubble swap widget (embedded iframe overlay)
   Copyright (c) 2026 Derek King / Qubble Labs LLC.
   ============================================================ */

.hbtn.qbchat-swap-btn {
    border-color: rgba(251, 191, 36, 0.55);
    color: #fbbf24;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(251,191,36,0.08), rgba(123,47,247,0.08));
}
.hbtn.qbchat-swap-btn:hover {
    background: linear-gradient(135deg, rgba(251,191,36,0.18), rgba(123,47,247,0.18));
    color: #fff;
    border-color: rgba(251, 191, 36, 0.8);
}

.qbchat-swap-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 11, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: qbc-swap-ov-in 200ms cubic-bezier(0.4,0,0.2,1);
}
.qbchat-swap-overlay.open { display: flex; }
@keyframes qbc-swap-ov-in { from { opacity: 0; } to { opacity: 1; } }

.qbchat-swap-card {
    width: 100%;
    max-width: 600px;
    height: min(720px, 90vh);
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(18,18,31,0.98), rgba(10,10,15,0.99));
    border: 1px solid rgba(123,47,247,0.35);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.75), 0 0 120px rgba(123,47,247,0.12);
    overflow: hidden;
    animation: qbc-swap-card-in 260ms cubic-bezier(0.2, 0, 0, 1);
}
@keyframes qbc-swap-card-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.qbchat-swap-head {
    position: relative;
    padding: 16px 22px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(135deg, rgba(251,191,36,0.06), rgba(123,47,247,0.06));
}
.qbchat-swap-title {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fbbf24 0%, #a855f7 45%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.qbchat-swap-mark {
    font-size: 20px;
    filter: drop-shadow(0 0 10px rgba(123,47,247,0.45));
}
.qbchat-swap-sub {
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: rgba(232,232,240,0.55);
    text-transform: uppercase;
}
.qbchat-swap-close {
    position: absolute; top: 14px; right: 14px;
    background: rgba(18,18,31,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e8e8f0;
    width: 30px; height: 30px;
    border-radius: 50%;
    font-size: 18px; line-height: 1;
    cursor: pointer;
    transition: all 160ms cubic-bezier(0.4,0,0.2,1);
}
.qbchat-swap-close:hover { background: rgba(244,114,182,0.2); color: #fff; border-color: rgba(244,114,182,0.55); }

.qbchat-swap-card iframe {
    flex: 1;
    width: 100%;
    border: 0;
    background: #0a0a0f;
    display: block;
}

.qbchat-swap-foot {
    padding: 10px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 10px;
    color: rgba(232,232,240,0.55);
    text-align: center;
    letter-spacing: 1px;
}

@media (max-width: 640px) {
    .qbchat-swap-overlay { padding: 0; align-items: stretch; }
    .qbchat-swap-card { max-width: 100%; height: 100%; border-radius: 0; border: 0; }
}
