/* ============================================================
   Quantum Bubble Chat — Features CSS
   Copyright (c) 2026 Derek King / Qubble Labs LLC. All Rights Reserved.
   Covers: credit chip, top-up modal, gift picker, gift bubbles,
   photo bubbles, lightbox, deposit tabs.
   ============================================================ */

/* ========== CREDIT CHIP ========== */
.qbc-chip {
    background: linear-gradient(135deg, rgba(123,47,247,0.2), rgba(0,212,255,0.2));
    border: 1px solid rgba(0,212,255,0.35);
    color: #e8e8f0;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.qbc-chip:hover { filter: brightness(1.25); transform: translateY(-1px); }
.qbc-chip[data-low="1"] {
    border-color: rgba(244,114,182,0.6);
    background: linear-gradient(135deg, rgba(244,114,182,0.25), rgba(250,85,65,0.2));
    animation: qbc-pulse 2s ease-in-out infinite;
}
.qbc-emoji { font-size: 15px; line-height: 1; filter: drop-shadow(0 0 8px rgba(123,47,247,0.6)); }
.qbc-unit { color: #8888a8; font-size: 10px; }

@keyframes qbc-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244,114,182,0.4); }
    50% { box-shadow: 0 0 12px 4px rgba(244,114,182,0.5); }
}

/* ========== ICON BUTTONS ========== */
.qbc-icon-btn {
    background: rgba(18,18,31,0.6);
    border: 1px solid rgba(123,47,247,0.25);
    color: #e8e8f0;
    font-size: 18px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}
.qbc-icon-btn:hover { border-color: rgba(0,212,255,0.6); background: rgba(0,212,255,0.12); transform: translateY(-1px); }

/* ========== OVERLAY MODAL (shared) ========== */
.qbc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5,5,10,0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overscroll-behavior: contain;
}
.qbc-overlay.open { display: flex; }

.qbc-modal {
    background: linear-gradient(135deg, rgba(18,18,31,0.96), rgba(10,10,15,0.96));
    border: 1px solid rgba(123,47,247,0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
    padding: 24px 28px;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    color: #e8e8f0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.qbc-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.qbc-modal-head h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    background: linear-gradient(135deg, #7b2ff7, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}
.qbc-close {
    background: transparent;
    border: none;
    color: #8888a8;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.qbc-close:hover { color: #fff; }

.qbc-topup-reason {
    background: rgba(244,114,182,0.12);
    border-left: 3px solid rgba(244,114,182,0.8);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.qbc-balance-big { text-align: center; padding: 20px 0; }
.qbc-balance-label { display: block; font-size: 0.7rem; letter-spacing: 2px; color: #8888a8; text-transform: uppercase; }
.qbc-balance-num {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7b2ff7, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}
.qbc-balance-unit { color: #8888a8; margin-left: 6px; }

.qbc-pricing { background: rgba(10,10,15,0.6); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.qbc-pricing-row { display: flex; justify-content: space-between; font-size: 0.82rem; padding: 4px 0; color: #c8c8d8; }
.qbc-pricing-row span:last-child { color: #00d4ff; font-family: var(--font-mono, monospace); }

/* ========== DEPOSIT TABS ========== */
.qbc-deposit-tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid rgba(123,47,247,0.2); }
.qbc-tab {
    background: transparent;
    border: none;
    color: #8888a8;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.qbc-tab:hover { color: #e8e8f0; }
.qbc-tab.active { color: #00d4ff; border-bottom-color: #00d4ff; }

.qbc-step { display: flex; gap: 10px; margin-bottom: 14px; font-size: 0.85rem; line-height: 1.45; }
.qbc-step-num {
    flex: 0 0 24px; height: 24px; width: 24px; border-radius: 50%;
    background: linear-gradient(135deg, #7b2ff7, #00d4ff);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.75rem; color: #fff;
}
.qbc-step a { color: #00d4ff; text-decoration: none; border-bottom: 1px dashed rgba(0,212,255,0.4); }
.qbc-step a:hover { border-bottom-style: solid; }

.qbc-addr-row { margin: 10px 0; }
.qbc-addr-row label { display: block; font-size: 0.7rem; color: #8888a8; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.qbc-addr {
    display: flex; align-items: center; gap: 8px;
    background: rgba(10,10,15,0.6);
    border: 1px solid rgba(123,47,247,0.2);
    border-radius: 8px;
    padding: 8px 10px;
}
.qbc-addr code { flex: 1; font-family: var(--font-mono, monospace); font-size: 0.75rem; color: #00d4ff; overflow-x: auto; white-space: nowrap; }
.qbc-addr button {
    background: linear-gradient(135deg, #7b2ff7, #00d4ff);
    border: none; border-radius: 6px; padding: 5px 10px;
    color: #fff; font-size: 0.7rem; letter-spacing: 1px; cursor: pointer;
}
.qbc-accepted { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.75rem; color: #8888a8; }
.qbc-chip-sm {
    background: rgba(123,47,247,0.2); border: 1px solid rgba(123,47,247,0.4);
    padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; color: #e8e8f0;
}
.qbc-howto { list-style: none; padding: 0; margin: 0; font-size: 0.85rem; line-height: 1.5; }
.qbc-howto li { padding: 8px 0; border-bottom: 1px dashed rgba(123,47,247,0.15); }
.qbc-howto li:last-child { border-bottom: none; }
.qbc-howto code { background: rgba(10,10,15,0.6); padding: 1px 6px; border-radius: 4px; font-size: 0.78rem; color: #00d4ff; }
.qbc-note { background: rgba(0,212,255,0.08); border-left: 3px solid rgba(0,212,255,0.5); padding: 8px 12px; border-radius: 6px; font-size: 0.78rem; color: #c8c8d8; margin-top: 10px; }

/* ========== HONESTY MECHANISM — balance tooltip + debit toast ========== */
.qbc-balance-tip {
    position: absolute;
    z-index: 9999;
    min-width: 260px;
    background: rgba(10,10,20,0.97);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,212,255,0.30);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #c8c8d8;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}
.qbc-balance-tip[hidden] { display: none; }
.qbc-tip-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
}
.qbc-tip-row span { color: #7d7d99; }
.qbc-tip-row b { color: #00d4ff; font-weight: 600; }
.qbc-tip-foot {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(123,47,247,0.18);
    text-align: center;
}
.qbc-tip-foot a {
    color: #00d4ff;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.qbc-debit-toast {
    position: fixed;
    bottom: 18px;
    left: 18px;
    z-index: 10000;
    background: rgba(10,10,20,0.94);
    color: #e8e8f0;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid rgba(244,114,182,0.30);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.3px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 280ms ease, transform 280ms ease;
    pointer-events: auto;
    box-shadow: 0 8px 22px rgba(0,0,0,0.45);
}
.qbc-debit-toast.visible { opacity: 1; transform: translateY(0); }
.qbc-debit-toast a {
    color: #00d4ff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(0,212,255,0.45);
    margin-left: 4px;
}

/* ── Quick-pay (in-chat wallet top-up modal) ── */
.qbc-quick-pay {
    margin: 18px 0;
    padding: 16px;
    background: linear-gradient(168deg, rgba(123,47,247,0.10), rgba(0,212,255,0.06), rgba(10,10,20,0.85));
    border: 1px solid rgba(123,47,247,0.30);
    border-radius: 12px;
}
.qbc-quick-pay__head {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
    color: #00d4ff; margin-bottom: 12px;
}
.qbc-quick-pay__pkgs {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px;
}
.qbc-quick-pay__pkg {
    padding: 10px 6px;
    background: rgba(10,10,20,0.6);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    color: #e8e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 150ms ease;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.qbc-quick-pay__pkg small { font-size: 11px; color: #888; font-weight: 400; }
.qbc-quick-pay__pkg:hover { border-color: rgba(0,212,255,0.5); transform: translateY(-1px); }
.qbc-quick-pay__pkg.selected {
    border-color: #00d4ff;
    background: rgba(0,212,255,0.18);
    box-shadow: 0 0 0 2px rgba(0,212,255,0.55), 0 0 18px rgba(0,212,255,0.30);
    color: #ffffff;
    transform: translateY(-1px);
}
.qbc-quick-pay__pkg.selected small { color: #00d4ff; }
.qbc-quick-pay__pkg--pop { position: relative; }
.qbc-quick-pay__pkg--pop::after {
    content: 'POPULAR';
    position: absolute; top: -7px; right: -5px;
    background: linear-gradient(135deg, #7b2ff7, #00d4ff);
    color: white; font-size: 8px; padding: 2px 5px; border-radius: 3px; letter-spacing: 0.1em;
}
.qbc-quick-pay__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.qbc-quick-pay__connect {
    padding: 11px 22px;
    background: linear-gradient(135deg, #14f195, #00d985);
    color: #05060b; border: none; border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(20,241,149,0.30), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: transform 120ms ease, box-shadow 200ms ease, filter 120ms ease;
}
.qbc-quick-pay__connect:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(20,241,149,0.55); filter: brightness(1.06); }
.qbc-quick-pay__connect:active { transform: translateY(0); }
.qbc-quick-pay__status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; color: #888aa0;
}
.qbc-quick-pay__send {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #14f195, #00d4ff);
    color: #05060b; border: none; border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 200ms ease;
}
.qbc-quick-pay__send:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(20,241,149,0.45); }
.qbc-quick-pay__progress {
    margin-top: 12px; padding: 10px 12px;
    background: rgba(10,10,20,0.75);
    border-left: 3px solid #00d4ff;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; color: #b8b8d0;
}
.qbc-quick-pay__alt {
    display: block; margin-top: 12px;
    font-size: 10px; color: #888aa0; text-decoration: none; text-align: center;
    border-top: 1px dashed rgba(255,255,255,0.10); padding-top: 10px;
}
.qbc-quick-pay__alt:hover { color: #00d4ff; }

/* ── Credit (top-up) toast — celebratory, bigger, bottom-right ── */
.qbc-credit-toast {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 10001;
    min-width: 260px;
    background: linear-gradient(165deg, rgba(20, 241, 149, 0.12), rgba(10,10,20,0.97));
    color: #e8e8f0;
    padding: 14px 18px 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(20,241,149,0.45);
    box-shadow: 0 18px 44px rgba(0,0,0,0.55), 0 0 0 1px rgba(20,241,149,0.08), inset 0 1px 0 rgba(255,255,255,0.05);
    font-family: 'JetBrains Mono', monospace;
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    transition: opacity 320ms ease, transform 380ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.qbc-credit-toast.visible { opacity: 1; transform: translateY(0) scale(1); }
.qbc-credit-toast__big {
    font-family: 'Orbitron', 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #14f195;
    text-shadow: 0 0 16px rgba(20,241,149,0.55);
    margin-bottom: 4px;
}
.qbc-credit-toast__sub {
    font-size: 11px;
    color: #b8b8d0;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}
.qbc-credit-toast__bal {
    font-size: 11px;
    color: #8888a8;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 7px;
    margin-top: 4px;
}
.qbc-credit-toast__bal b { color: #ffffff; font-weight: 600; }
.qbc-credit-toast a {
    display: inline-block;
    margin-top: 6px;
    color: #00d4ff;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 0.4px;
    border-bottom: 1px dashed rgba(0,212,255,0.5);
}

/* ========== TOP-UP CARDS (Path C / manual bridge) ========== */
.qbc-topup-card { display: block; }
.qbc-topup-pkg-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}
.qbc-topup-pkg {
    position: relative;
    background: rgba(18,18,31,0.65);
    border: 1px solid rgba(123,47,247,0.30);
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.4,0,0.2,1);
}
.qbc-topup-pkg:hover {
    border-color: rgba(0,212,255,0.55);
    background: rgba(0,212,255,0.06);
    transform: translateY(-2px);
}
.qbc-topup-pkg-active {
    border-color: #00d4ff;
    background: rgba(0,212,255,0.10);
    box-shadow: 0 0 16px rgba(0,212,255,0.30);
}
.qbc-topup-pkg-popular {
    border-color: rgba(20,241,149,0.45);
}
.qbc-topup-pkg-tag {
    position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    font-size: 9px; letter-spacing: 1.4px;
    background: #14f195; color: #05060b;
    padding: 2px 8px; border-radius: 999px;
    font-weight: 800;
}
.qbc-topup-pkg-amt {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px; font-weight: 700;
    color: #00d4ff;
}
.qbc-topup-pkg-sol {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #c8c8d8;
    margin-top: 2px;
}
.qbc-topup-pkg-time {
    font-size: 10px;
    color: #8888a8;
    margin-top: 4px;
}

.qbc-topup-steps { margin-bottom: 18px; }
.qbc-email-template {
    background: rgba(10,10,15,0.6);
    border: 1px solid rgba(123,47,247,0.18);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 0.78rem;
}
.qbc-email-row { display: flex; gap: 10px; padding: 3px 0; align-items: flex-start; }
.qbc-email-row > span { flex: 0 0 60px; color: #8888a8; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.qbc-email-row > code { flex: 1; color: #e8e8f0; font-family: 'JetBrains Mono', monospace; font-size: 11px; white-space: pre-wrap; }
.qbc-email-body code { white-space: pre-wrap; }
.qbc-email-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 9px;
    background: linear-gradient(135deg, #7b2ff7, #00d4ff);
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    cursor: pointer;
}
.qbc-email-btn:hover { filter: brightness(1.1); }

.qbc-topup-notes ul { list-style: none; padding: 0; margin: 14px 0 0; font-size: 0.78rem; line-height: 1.5; }
.qbc-topup-notes li { padding: 6px 0 6px 14px; color: #b8b6cb; position: relative; }
.qbc-topup-notes li::before { content: '◇'; position: absolute; left: 0; color: #f472b6; font-size: 10px; top: 7px; }
.qbc-topup-notes b { color: #e8e8f0; }

/* ========== NON-TOKEN DISCLAIMER FOOT ========== */
.qbc-nontoken-foot {
    margin-top: 20px;
    padding: 12px 14px;
    background: rgba(123,47,247,0.06);
    border: 1px solid rgba(123,47,247,0.18);
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.5;
    color: #8888a8;
    text-align: center;
    letter-spacing: 0.2px;
}

/* ========== GIFT PICKER ========== */
.qbc-gift-wide { max-width: 520px; }
.qbc-gift-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.qbc-gift-tile {
    background: rgba(18,18,31,0.7);
    border: 1px solid rgba(123,47,247,0.2);
    border-radius: 12px;
    padding: 14px 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #e8e8f0;
    text-align: center;
}
.qbc-gift-tile:hover { border-color: rgba(0,212,255,0.5); transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.qbc-gift-emoji { font-size: 32px; line-height: 1; margin-bottom: 6px; }
.qbc-gift-name { font-size: 0.72rem; letter-spacing: 0.5px; }
.qbc-gift-cost { font-size: 0.7rem; color: #00d4ff; font-family: var(--font-mono, monospace); margin-top: 2px; }
.qbc-gift-note { margin-top: 12px; font-size: 0.72rem; color: #8888a8; text-align: center; }

/* ========== GIFT BUBBLES IN CHAT ========== */
.bubble--gift {
    text-align: center;
    background: linear-gradient(135deg, rgba(123,47,247,0.2), rgba(0,212,255,0.15), rgba(236,72,153,0.15));
    border: 1px solid rgba(0,212,255,0.4);
    animation: qbc-gift-float 4s ease-in-out infinite;
}
.qbc-gift-emoji-large { font-size: 56px; line-height: 1.1; filter: drop-shadow(0 0 20px currentColor); margin: 4px 0; }
.qbc-gift-meta { font-size: 0.72rem; color: #c8c8d8; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }
.qbc-gift-note-text { font-size: 0.8rem; color: #e8e8f0; margin-top: 6px; font-style: italic; }

.bubble--sparkle .qbc-gift-emoji-large { animation: qbc-sparkle 1.5s ease-in-out infinite; }
.bubble--burn .qbc-gift-emoji-large { animation: qbc-burn 0.8s ease-in-out infinite alternate; }
.bubble--shimmer { box-shadow: 0 0 20px rgba(103,232,249,0.5); }
.bubble--royal { border-color: rgba(251,191,36,0.6); box-shadow: 0 0 30px rgba(251,191,36,0.3); }
.bubble--cosmos { background: linear-gradient(135deg, #1e0a3f, #3d0f66, #001a33); border-color: rgba(168,85,247,0.6); }
.bubble--quantum .qbc-gift-emoji-large { animation: qbc-quantum 2s linear infinite; }
.bubble--beat .qbc-gift-emoji-large { animation: qbc-heartbeat 1s ease-in-out infinite; }
.bubble--twinkle .qbc-gift-emoji-large { animation: qbc-twinkle 0.6s ease-in-out infinite alternate; }
.bubble--launch .qbc-gift-emoji-large { animation: qbc-launch 1.8s ease-in-out infinite; }

.bubble--fading { opacity: 0; transform: scale(0.9); transition: all 0.8s ease-out; }

@keyframes qbc-gift-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(1deg); }
}
@keyframes qbc-sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 10px #fff); }
    25% { transform: scale(1.1) rotate(-5deg); filter: drop-shadow(0 0 18px #ffd700); }
    75% { transform: scale(1.05) rotate(5deg); filter: drop-shadow(0 0 18px #00d4ff); }
}
@keyframes qbc-burn {
    from { transform: scale(1); filter: drop-shadow(0 0 15px #f97316); }
    to   { transform: scale(1.08); filter: drop-shadow(0 0 25px #dc2626); }
}
@keyframes qbc-quantum {
    0%   { filter: hue-rotate(0deg) drop-shadow(0 0 15px #7b2ff7); }
    50%  { filter: hue-rotate(180deg) drop-shadow(0 0 20px #00d4ff); }
    100% { filter: hue-rotate(360deg) drop-shadow(0 0 15px #7b2ff7); }
}
@keyframes qbc-heartbeat {
    0%, 100% { transform: scale(1); }
    20% { transform: scale(1.18); }
    40% { transform: scale(1); }
    60% { transform: scale(1.1); }
}
@keyframes qbc-twinkle {
    from { transform: scale(1); opacity: 1; }
    to   { transform: scale(1.15); opacity: 0.7; }
}
@keyframes qbc-launch {
    0%, 100% { transform: translateY(0) rotate(-45deg); }
    50% { transform: translateY(-20px) rotate(-45deg); }
}

.qbc-gift-spark {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
}

/* ========== PHOTO BUBBLES ========== */
.bubble--photo { padding: 8px; }
.qbc-photo-img {
    max-width: 280px;
    max-height: 340px;
    border-radius: 10px;
    cursor: zoom-in;
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.qbc-lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.94);
    display: flex; align-items: center; justify-content: center;
    z-index: 999999; cursor: zoom-out;
}
.qbc-lightbox img { max-width: 95vw; max-height: 95vh; border-radius: 8px; box-shadow: 0 0 80px rgba(0,212,255,0.2); }
.qbc-lightbox .qbc-close {
    position: absolute; top: 20px; right: 24px;
    background: rgba(18,18,31,0.8);
    color: #fff; font-size: 32px;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(123,47,247,0.4);
}

/* ========== SWAP (SLATEWRAP) ========== */
.hbtn.swap { border-color: rgba(251,191,36,0.45); color: #fbbf24; font-family: var(--font-mono, monospace); font-weight: 600; }
.hbtn.swap:hover { background: rgba(251,191,36,0.12); }

.qbc-swap-modal { max-width: 440px; }
.qbc-swap-meta {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.78rem; color: #c8c8d8; margin-bottom: 14px;
    padding: 8px 12px; border-radius: 10px;
    background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.25);
}
.qbc-swap-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #34d399; box-shadow: 0 0 8px #34d399;
    animation: qbc-pulse-dot 2s ease-in-out infinite;
}
@keyframes qbc-pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.qbc-swap-row { margin-bottom: 12px; }
.qbc-swap-row label {
    display: block; font-size: 0.7rem; color: #8888a8;
    letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 5px;
}
.qbc-swap-row select,
.qbc-swap-row input {
    width: 100%; padding: 11px 12px;
    background: rgba(5,6,11,0.6);
    border: 1px solid rgba(123,47,247,0.25); border-radius: 10px;
    color: #e8e8f0; font-size: 0.95rem; outline: none;
    font-family: 'JetBrains Mono', monospace;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.qbc-swap-row select:focus,
.qbc-swap-row input:focus {
    border-color: rgba(0,212,255,0.55);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.12);
}
.qbc-swap-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.qbc-swap-diag {
    font-size: 0.85rem; color: #c8c8d8; background: rgba(10,10,15,0.6);
    border: 1px solid rgba(123,47,247,0.2); padding: 12px 14px;
    border-radius: 10px; margin: 10px 0; font-family: 'JetBrains Mono', monospace;
    line-height: 1.5;
}

.qb-quote { display: flex; flex-direction: column; gap: 6px; }
.qb-quote-row { display: flex; justify-content: space-between; font-size: 0.85rem; }
.qb-quote-row span { color: #8888a8; }
.qb-quote-row b { color: #00d4ff; font-family: 'JetBrains Mono', monospace; }
.qb-quote-row.small { font-size: 0.75rem; }

.qbc-swap-submit {
    width: 100%; margin-top: 14px;
    padding: 13px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, #fbbf24, #7b2ff7, #00d4ff);
    background-size: 200% 200%;
    color: #fff; font-family: 'Orbitron', sans-serif;
    font-weight: 700; letter-spacing: 2px; font-size: 0.85rem;
    cursor: pointer; transition: transform 0.15s, box-shadow 0.2s;
    animation: qbc-swap-grad 7s ease-in-out infinite;
}
.qbc-swap-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(251,191,36,0.3), 0 0 40px rgba(123,47,247,0.2);
}
@keyframes qbc-swap-grad {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
.qbc-swap-footer {
    margin-top: 12px; font-size: 0.72rem; color: #8888a8; line-height: 1.5;
    text-align: center; font-style: italic;
}

/* ========== MOBILE TWEAKS ========== */
@media (max-width: 640px) {
    .qbc-modal { padding: 20px 18px; }
    .qbc-balance-num { font-size: 2.2rem; }
    .qbc-gift-grid { grid-template-columns: repeat(3, 1fr); }
    .qbc-gift-emoji-large { font-size: 44px; }
    .qbc-photo-img { max-width: 85vw; }
}
