/**
 * Floating CTA Bar
 */

/* FIX #2: COMPACT FLOATING CTA BAR */
.floating-cta-bar {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    width: calc(100% - 32px);
    max-width: 480px;
    background: rgba(17, 17, 27, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: bottom 0.4s ease;
}

.floating-cta-bar.visible {
    bottom: 16px;
}

.floating-cta-bar.dismissed {
    display: none;
}

.floating-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.floating-tool-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    min-width: 0;
}

.floating-logo {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.floating-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.floating-logo span {
    font-size: 14px;
    font-weight: var(--weight-bold);
    color: var(--brand-primary);
}

.floating-name {
    font-size: 14px;
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-overflow: ellipsis;
    display: block;
}

.floating-cta-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--brand-gradient);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: var(--weight-semibold);
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-base);
    white-space: nowrap;
    flex-shrink: 0;
}

.floating-cta-btn svg {
    width: 14px;
    height: 14px;
}

.floating-cta-btn:hover {
    box-shadow: var(--glow-purple);
    transform: translateY(-1px);
}

.floating-dismiss {
    position: absolute;
    right: -6px;
    top: -6px;
    width: 22px;
    height: 22px;
    background: #1a1a2e;
    border: 1px solid var(--border-default);
    border-radius: 50%;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    padding: 0;
}

.floating-dismiss svg {
    width: 12px;
    height: 12px;
}

.floating-dismiss:hover {
    color: var(--text-primary);
    background: var(--glass-bg-hover);
}