/* ============================================================
   QBChat → Quantum Visual memory widget (embedded iframe overlay)
   Copyright (c) 2026 Derek King / Qubble Labs LLC.
   Sibling to qbc-swap-embed.css — same structure, pink/gold tint
   to visually distinguish "expressive" from "financial" actions.
   ============================================================ */

.hbtn.qbchat-memory-btn {
    border-color: rgba(244, 114, 182, 0.55);
    color: #f472b6;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(244,114,182,0.1), rgba(251,191,36,0.08));
}
.hbtn.qbchat-memory-btn:hover {
    background: linear-gradient(135deg, rgba(244,114,182,0.22), rgba(251,191,36,0.18));
    color: #fff;
    border-color: rgba(244, 114, 182, 0.85);
}

.qbchat-memory-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-memory-ov-in 200ms cubic-bezier(0.4,0,0.2,1);
}
.qbchat-memory-overlay.open { display: flex; }
@keyframes qbc-memory-ov-in { from { opacity: 0; } to { opacity: 1; } }

.qbchat-memory-card {
    width: 100%;
    max-width: 560px;
    height: min(760px, 92vh);
    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(244,114,182,0.4);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.75), 0 0 120px rgba(244,114,182,0.14);
    overflow: hidden;
    animation: qbc-memory-card-in 260ms cubic-bezier(0.2, 0, 0, 1);
}
@keyframes qbc-memory-card-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.qbchat-memory-head {
    position: relative;
    padding: 16px 22px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(135deg, rgba(244,114,182,0.08), rgba(251,191,36,0.06));
}
.qbchat-memory-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, #7b2ff7 0%, #f472b6 55%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.qbchat-memory-mark {
    font-size: 20px;
    filter: drop-shadow(0 0 10px rgba(244,114,182,0.55));
}
.qbchat-memory-sub {
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: rgba(232,232,240,0.55);
    text-transform: uppercase;
}
.qbchat-memory-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-memory-close:hover { background: rgba(244,114,182,0.25); color: #fff; border-color: rgba(244,114,182,0.65); }

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

.qbchat-memory-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-memory-overlay { padding: 0; align-items: stretch; }
    .qbchat-memory-card { max-width: 100%; height: 100%; border-radius: 0; border: 0; }
}

/* ─── COMING-SOON variant ──────────────────────────────────────── */
.qbchat-soon-pip {
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 9px;
    letter-spacing: 1.5px;
    font-weight: 800;
    color: #fbbf24;
    background: rgba(251,191,36,0.12);
    border: 1px solid rgba(251,191,36,0.45);
    border-radius: 999px;
    vertical-align: middle;
}

.qbchat-memory-card.qbchat-memory-soon {
    height: auto;
    max-width: 520px;
    padding: 0;
    overflow: hidden;
    position: relative;
}
.qbchat-soon-art {
    height: 240px;
    background: radial-gradient(circle at 50% 60%, rgba(244,114,182,0.25), transparent 60%),
                radial-gradient(circle at 30% 30%, rgba(123,47,247,0.30), transparent 55%),
                radial-gradient(circle at 75% 25%, rgba(251,191,36,0.18), transparent 55%),
                linear-gradient(180deg, rgba(10,10,20,0.6), rgba(5,6,11,1));
    border-bottom: 1px solid rgba(244,114,182,0.18);
    position: relative;
    overflow: hidden;
}
.qbchat-soon-orb {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}
.qbchat-soon-core {
    font-size: 48px;
    line-height: 1;
    color: #fff;
    filter: drop-shadow(0 0 24px rgba(244,114,182,0.85))
            drop-shadow(0 0 60px rgba(251,191,36,0.4));
    animation: qbc-soon-pulse 2.4s ease-in-out infinite;
}
@keyframes qbc-soon-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.1); }
}
.qbchat-soon-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(244,114,182,0.35);
    pointer-events: none;
}
.qbchat-soon-ring-a { width: 120px; height: 120px; animation: qbc-soon-ring 4s linear infinite; }
.qbchat-soon-ring-b { width: 180px; height: 180px; border-color: rgba(251,191,36,0.28); animation: qbc-soon-ring 6s linear infinite reverse; }
.qbchat-soon-ring-c { width: 240px; height: 240px; border-color: rgba(123,47,247,0.20); animation: qbc-soon-ring 9s linear infinite; }
@keyframes qbc-soon-ring {
    from { transform: rotate(0deg) scale(1); opacity: 0.7; }
    50%  { opacity: 1; }
    to   { transform: rotate(360deg) scale(1.05); opacity: 0.7; }
}
.qbchat-soon-body {
    padding: 24px 28px 26px;
}
.qbchat-soon-kicker {
    font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
    font-size: 10px;
    letter-spacing: 3px;
    color: #fbbf24;
    margin-bottom: 10px;
}
.qbchat-soon-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #f472b6 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.qbchat-soon-lede {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(232,232,240,0.85);
    margin: 0 0 18px;
}
.qbchat-soon-feat {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    gap: 8px;
}
.qbchat-soon-feat li {
    font-size: 13px;
    color: rgba(232,232,240,0.75);
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}
.qbchat-soon-feat li::before {
    content: '◇';
    position: absolute;
    left: 0;
    top: 0;
    color: #f472b6;
    font-size: 11px;
}
.qbchat-soon-feat b { color: #fff; font-weight: 600; }

.qbchat-soon-status {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: rgba(244,114,182,0.06);
    border: 1px solid rgba(244,114,182,0.20);
    border-radius: 8px;
    font-size: 12px;
    color: rgba(232,232,240,0.7);
    margin-bottom: 18px;
}
.qbchat-soon-dot {
    width: 8px; height: 8px;
    background: #fbbf24;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(251,191,36,0.8);
    animation: qbc-soon-blink 1.6s ease-in-out infinite;
}
@keyframes qbc-soon-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.qbchat-soon-actions {
    display: flex; gap: 10px;
}
.qbchat-soon-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #f472b6, #fbbf24);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 160ms ease, filter 160ms ease;
}
.qbchat-soon-btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.qbchat-soon-btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(232,232,240,0.85);
}
.qbchat-soon-btn-ghost:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
