.fb-ai-container {
    background: #0f172a;
    color: #f8fafc;
    padding: 30px;
    border-radius: 20px;
    font-family: 'Be Vietnam Pro', sans-serif;
    margin: 20px 0;
}

.fb-ai-form-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fb-ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.fb-ai-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.fb-ai-field input, .fb-ai-field textarea {
    width: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    color: white;
    padding: 12px;
    border-radius: 8px;
}

.fb-ai-upload {
    height: 180px;
    border: 2px dashed #334155;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.fb-ai-btn {
    width: 100%;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    border: none;
    padding: 15px;
    color: white;
    font-weight: 800;
    border-radius: 10px;
    margin-top: 20px;
    cursor: pointer;
}

.fb-ai-res-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.fb-ai-res-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    position: relative;
}

.fb-ai-res-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.res-body {
    white-space: pre-wrap;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.fb-ai-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #334155;
    border: none;
    color: white;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.fb-ai-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #334155;
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }
