/* ═══ CAQuick modal — injected anywhere on the page ═══ */
#caQuickModal {
    position: fixed; inset: 0; z-index: 10000000000;
    display: flex; align-items: center; justify-content: center; padding: 16px;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.caq-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(3px);
}
.caq-box {
    position: relative; background: #fff; border-radius: 14px;
    width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.caq-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid #e8edf4;
}
.caq-head-title { font-size: 16px; font-weight: 700; color: #111827; display: flex; align-items: center; gap: 7px; }
.caq-head-title i { font-size: 19px; color: #2563eb; }
.caq-close { background: none; border: none; font-size: 22px; cursor: pointer; color: #9ca3af; padding: 0; line-height: 1; }
.caq-close:hover { color: #111827; }
.caq-body { padding: 18px; }

/* Auth */
.caq-auth { text-align: center; padding: 8px 0; }
.caq-auth-icon { font-size: 44px; color: #9ca3af; margin-bottom: 10px; }
.caq-auth-icon i { font-size: 44px; }
.caq-auth-text { font-size: 14px; color: #6b7280; margin-bottom: 16px; line-height: 1.5; }
.caq-auth-btns { display: flex; gap: 8px; justify-content: center; }

/* Type selector */
.caq-types { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.caq-type { padding: 14px 8px 11px; border: 1.5px solid #e8edf4; border-radius: 10px; text-align: center; cursor: pointer; transition: all .14s; }
.caq-type:hover { border-color: #2563eb; background: #eff4ff; }
.caq-type-icon { font-size: 24px; color: #6b7280; margin-bottom: 5px; }
.caq-type-icon i { font-size: 24px; }
.caq-type:hover .caq-type-icon i { color: #2563eb; }
.caq-type-label { font-size: 12px; font-weight: 700; color: #374151; }

/* Coin context header */
.caq-coin-ctx { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #374151;
    background: #f4f6f9; border-radius: 8px; padding: 8px 11px; margin-bottom: 13px; }
.caq-selected-coin { display: flex; align-items: center; gap: 9px; padding: 10px 12px;
    background: #f4f6f9; border-radius: 10px; margin-bottom: 13px; }
.caq-selected-coin img { width: 28px; height: 28px; border-radius: 50%; }
.caq-ctx-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700;
    color: #7c3aed; background: rgba(109,40,217,.07); border-radius: 6px; padding: 4px 9px; margin-bottom: 12px; }

/* Form fields */
.caq-fg { margin-bottom: 13px; }
.caq-label { display: block; font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 5px; }
.caq-input { width: 100%; padding: 9px 11px; border: 1.5px solid #e8edf4; border-radius: 9px;
    font-size: 14px; font-family: inherit; color: #111827; box-sizing: border-box; transition: border-color .14s; }
.caq-input:focus { outline: none; border-color: #2563eb; }
.caq-textarea { resize: vertical; min-height: 48px; }
select.caq-input { appearance: auto; }
.caq-hint { font-size: 11px; color: #9ca3af; margin-top: 4px; padding: 5px 8px; background: #f4f6f9; border-radius: 6px; }
.caq-channels { display: flex; gap: 16px; font-size: 14px; }
.caq-channels label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.caq-channels input { accent-color: #2563eb; }
.caq-back { font-size: 13px; color: #2563eb; cursor: pointer; margin-bottom: 13px;
    font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.caq-back:hover { text-decoration: underline; }

/* Buttons */
.caq-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 9px;
    font-size: 14px; font-weight: 700; cursor: pointer; border: none; font-family: inherit;
    transition: all .13s; text-decoration: none; white-space: nowrap; }
.caq-btn i { font-size: 16px; }
.caq-btn-primary { background: #2563eb; color: #fff; }
.caq-btn-primary:hover { background: #1d4ed8; color: #fff; }
.caq-btn-ghost { background: transparent; color: #374151; border: 1.5px solid #d1d5db; }
.caq-btn-ghost:hover { background: #f4f6f9; color: #111827; }
.caq-btn-full { width: 100%; justify-content: center; padding: 11px; margin-top: 4px; }

/* Footer */
.caq-foot { padding: 11px 18px; border-top: 1px solid #e8edf4; text-align: center; }
.caq-manage-link { font-size: 13px; color: #2563eb; text-decoration: none; font-weight: 700; }
.caq-manage-link:hover { text-decoration: underline; }

/* Coin price in selected-coin header */
.caq-coin-price { margin-left: auto; font-size: 16px; font-weight: 800; color: #111827; white-space: nowrap; }

/* Success */
.caq-success { text-align: center; padding: 8px 0; }
.caq-success-icon { font-size: 48px; color: #16a34a; margin-bottom: 10px; }
.caq-success-icon i { font-size: 48px; }
.caq-success-text { font-size: 15px; font-weight: 700; color: #111827; margin-bottom: 16px; }
.caq-success-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
